moving average of a large array [message #51516] |
Thu, 23 November 2006 07:47 |
envi35@yahoo.ca
Messages: 48 Registered: March 2005
|
Member |
|
|
Hi, I want to calculate the moving average of a large array:
data[800,800,365]. The moving average is for the 3rd dimension - day of
year. But TS_SMOOTH only works for a vector. Anyone knows if there is
another function in IDL that I could use? I probably can use TS_SMOOTH
and for loops to get this, but it will be slow. In addition, there are
invalid data in my array as well.
I've read discussions in this list about adding Dimension and NAN
keywords to other functions, such as Total, Median, etc., which are
very useful. Why nobody cares about TS_SMOOTH? Or am I asking a silly
question? Is there an obvious way to calculate the moving average of a
large array?
Thanks,
Jenny
|
|
|