[SciPy-user] converting hourly series to annual unneccessaryly masks data

Timmie timmichelsen@gmx-topmail...
Thu Jan 8 11:40:58 CST 2009


Hello,
I would like to build an average over a hourly timeseries stretching over more
than one year. I converted it to annual and now many data got masked.


In [83]: test = ts.time_series(np.arange(17520), start_date=ts.now('H'))

In [84]: test
Out[84]:
timeseries([    0     1     2 ..., 17517 17518 17519],
           dates = [08-Jan-2009 18:00 ... 08-Jan-2011 17:00],
           freq  = H)


In [85]: test = ts.time_series(np.arange(17520), start_date=ts.now('H'))

In [86]: atest = test.convert('A')

In [87]: test
Out[87]:
timeseries([    0     1     2 ..., 17517 17518 17519],
           dates = [08-Jan-2009 18:00 ... 08-Jan-2011 17:00],
           freq  = H)


In [88]: atest
Out[88]:
timeseries(
 [[-- -- -- ..., -- -- --]
 [8574 8575 8576 ..., -- -- --]
 [17334 17335 17336 ..., -- -- --]],
           dates =
 [2009 ... 2011],
           freq  = A-DEC)

I entered it at: 
http://scipy.org/scipy/scikits/ticket/84

I'd be glad to receive a comment on waht is happening here.

Thanks in advanve.
Timmie



More information about the SciPy-user mailing list