comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » TS_SMOOTH function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
TS_SMOOTH function [message #89246] Fri, 08 August 2014 02:04
atmospheric physics is currently offline  atmospheric physics
Messages: 121
Registered: June 2010
Senior Member
Dear All,

I have a float array of 1 X 86400 dimensions. I want to compute the 'central moving averages' at different widths (i.e., Nvalues). So, I am using TS_SMOOTH. Though I don't have any problem using this function, I find it very slow if I have to generate the 'central moving averages' for different widths, say

Nvalues = 2^(indgen(12)+1) + 1

= [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096] + 1

Now my questions are:

(a) What is the maximum possible width (or 'Nvalues') of a data array with dimensions as above or say 1 x m dimensions? Is there any formula to determine this before basing on the data dimensions?

(b) I can't define the vector array of 'Nvalues' and so this function works for single column or row dimensional data.

(c) Can anyone suggest me if there is a better function for faster computation of central moving averages of a particular data with vector array of 'Nvalues'?

Looking forward for your suggestions,
Thanks in advance,
Madhavan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL procedure and function names
Next Topic: cgContour with different clipping

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:40:46 PDT 2025

Total time taken to generate the page: 0.00489 seconds