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

Home » Public Forums » archive » How to obtain running averages for different time scales in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to obtain running averages for different time scales in IDL? [message #87392 is a reply to message #87388] Thu, 30 January 2014 10:43 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> 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 do not use the Convol function ever, but you can do it using Smooth().... See Phil Blitzer's answer here:
https://groups.google.com/forum/#!topic/comp.lang.idl-pvwave /rIl0HsZtpGE

Adding to that, look at the EDGE_TRUNCATE keyword in Smooth()

samples_per_second = 1
nSamples = 86400 * samples_per_second
seconds_per_minute = 60

time = findgen(nSamples)
data = randomu(0, nSamples)
data_avg = smooth(data, samples_per_second*seconds_per_minute)

residue = data - data_avg
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: trigrid + triangulate -> zero values -> ignore zeros on cgcontour
Next Topic: How many selfs do I have?

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

Current Time: Sun Oct 12 12:15:46 PDT 2025

Total time taken to generate the page: 1.51770 seconds