radproc.core.hdf5_to_months

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

Wrapper for load_years_and_resample() to import all months of the specified years, merge them together to one DataFrame and resample the latter to monthly precipitation sums.

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.
year_end : integer (optional, default: year_start)
Last year for which data are to be loaded.
Returns:
df : pandas DataFrame
resampled to monthly precipitation sums.

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.