The resampling occurs from the date stated for the following month (i.e. 2017-07-31 is an average from 2017-07-31 to 2017-08-31. Ideally though, we would like the resampling to occur on the first of each month. Then we can produce timestamps that look more like this:
We use
pandas.DataFrame.resample
for resampling ourLevel 3
hourly product to daily and monthly products.https://github.com/GEUS-Glaciology-and-Climate/pypromice/blob/89fe4e44b274a04b775b343e617f2144a375e03c/src/pypromice/aws.py#L783
It appears that the resampling for the monthly product produces ambiguous time stamps. This is an example from
CEN1
:The resampling occurs from the date stated for the following month (i.e.
2017-07-31
is an average from2017-07-31
to2017-08-31
. Ideally though, we would like the resampling to occur on the first of each month. Then we can produce timestamps that look more like this:Or, to make it even less ambiguous, maybe something like this: