How to obtain running averages for different time scales in IDL? [message #87388] |
Thu, 30 January 2014 08:00  |
atmospheric physics
Messages: 121 Registered: June 2010
|
Senior Member |
|
|
Hello,
Can anyone provide me information on how to compute running averages for different time scales for a variable, which is a function of time @ 1 sec resolution?
I wanted to obtain the running averages of the variable at different time stamps, say 1, minute, 5 minutes, 15 minutes, 30 minutes, 1 hour etc. and then calculate the residue of the running average values of the variable w.r.t the raw variable data. Any IDL examples will be of great help.
Thanks in advance...
|
|
|
Re: How to obtain running averages for different time scales in IDL? [message #87389 is a reply to message #87388] |
Thu, 30 January 2014 08:23   |
Mats Löfdahl
Messages: 263 Registered: January 2012
|
Senior Member |
|
|
Den torsdagen den 30:e januari 2014 kl. 17:00:56 UTC+1 skrev Madhavan Bomidi:
> Hello,
>
>
>
> Can anyone provide me information on how to compute running averages for different time scales for a variable, which is a function of time @ 1 sec resolution?
>
>
>
> I wanted to obtain the running averages of the variable at different time stamps, say 1, minute, 5 minutes, 15 minutes, 30 minutes, 1 hour etc. and then calculate the residue of the running average values of the variable w.r.t the raw variable data. Any IDL examples will be of great help.
>
>
>
> Thanks in advance...
I'm not sure what you mean by wanting the running average at just a number of time stamps. Is this similar to what you want to do?
IDL> a=randomn(seed,1000)
IDL> cgplot,a
IDL> N=10
IDL> b=convol(a,replicate(1.,N)/N)
IDL> cgplot,/over,b,color='red'
IDL> N=100
IDL> b=convol(a,replicate(1.,N)/N)
IDL> cgplot,/over,b,color='blue'
Then you just have to figure out N for the time scales you are interested in.
|
|
|
|