radproc.core.hdf5_to_hydrologicalSeasons

radproc.core.hdf5_to_hydrologicalSeasons(HDFFile, year_start, year_end=0)

Calculates the precipitation sums of the hydrological summer and winter seasons (May - October and November - April).

Imports all months of the specified years, resamples them to monthly precipitation sums, merges them together to one DataFrame and resamples the latter to half-annual precipitation sums. Note: The Data are truncated to the period May of year_start to October of year_end before resampling!

Parameters:
HDFFile : string
Path and name of the HDF5 file containing monthly datasets.
year_start : integer
First year for which data are to be loaded. The months January to April of this year are not contained in the precipitation sums!
year_end : integer (optional, default: start_year)
Last year for which data are to be loaded. The months November and December of this year are not contained in the precipitation sums!
Returns:
df : pandas DataFrame
resampled to precipitation sums of hydrological summer and winter seasons. In contrast to most other resampling functions from radproc, the index labels the beginning of each resampling period, e.g. the index 2001-05-01 describes the period from May to October 2001.

Note

All resampling functions set the label of aggregated intervals at the right, hence every label describes the precipitation accumulated in the previous interval period.