[SciPy-User] Calculating avgerage values on 20 minute time frequency
Fri Mar 18 13:23:06 CDT 2011
On Mar 18, 2011, at 12:28 PM, Michael T Tate <firstname.lastname@example.org> wrote:
> I have a time series date set that contains a date/time field and data fields (sonic temperature, WS-U, WS-V, WS-W). The data are recorded at 10hz. I would like to calculate an average for each of the data fields on a 20min frequency so it can be matched up with data collected by another instrument.
> It is pretty straightforward to calculate hourly averages using convert from scikits.timeseries.
> Does anyone have any ideas on how I would calculate 20min averages for this data?
What I do with my sonic data is reshape the data array such that the new time dimension is of desired length (in your case, 10*60*20 =12,000) and then take the average over the appropriate axis.
> Thanks in advance
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User