TS_SMOOTH function [message #89246] |
Fri, 08 August 2014 02:04 |
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
|
|
|