[SciPy-User] scikits.timeseries: How to define frequency of 15minutes

Georges Schutz georges.schutz@internet...
Fri Apr 16 11:42:41 CDT 2010


Hi again

I have an other situation where I think custom frequencies would be of 
interest. I often have the situation that data from different sources 
(different sampling - frequencies) are used in one analysis method and 
often, at leased until know, we used 2h mean values over all de datasets 
to feed the models.

The timeseries.convert() method using np.ma.mean is a very convenient 
way of producing coherent data but restricted to the frequencies that 
exist in the defined list.

I suppose there are other such methods where a custom frequency would be 
of interest.

Georges Schutz


On 16/04/2010 14:33, Dharhas Pothina wrote:
> Hi George,
>
> For the 15 minute data you can use the minutely frequency and for the 30 second frequency you can use the second frequency, for the 2hr, 6hr use the hourly frequency. That is what I do when analyzing data from data loggers. Or if you are pulling in multiple datasets and want to treat them all the same just use the highest frequency you expect to see for all of them (in this case seconds)
>
> You will end up with a timeseries with missing dates which is fine for most work. Some of the timeseries toolkit functions however choke on this and you have to use the fill_missing_dates function to fill them. This will insert the missing dates at the frequency you chose earlier and mask those values. It makes the timeseries a lot larger because of all the masked values but will work for any analysis you are doing.
>
> - dharhas
>
>>>> Georges Schutz<georges.schutz@internet.lu>  4/16/2010 4:35 AM>>>
> I have a data logger giving me a value all 15 minutes. I would like to
> use DateArray from scikits.timeseries to handle this time series.
> I do not see how to define a frequency that is out of the specified
> constants. Is there a possibility?
>
> If I use the guess_freq() on that time data it returns 8000 ('T') which
> is a minutely frequency. Using this the has_missing_dates() gave me a
> True what is obvious as it checks for a resolution of one minute.
>
> The situation is the same for other timeseries that I have with a
> frequency of 30 seconds or 2 hours, 6 hours, ...
>
> As I am new to the use of scikits.timeseries and scipy in general so I
> may have missed an obvious way to do this.
>
> Thanks for your help
>
> Georges Schutz
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list