hourly_to_daily#

geobricks.hourly_to_daily(data, *, mode='sum', to_file=False)[source]#

Converts a hourly dataset to daily values. Implemented only for netCDF so far.

Parameters#

dataTYPE

DESCRIPTION.

mode{‘mean’, ‘max’, ‘min’, ‘sum’}, default ‘sum’

DESCRIPTION.

to_filebool or path (str or pathlib.Path), default False

If True and if data is a path (str or pathlib.Path), the resulting dataset will be exported to a file with the same pathname and the suffix ‘_daily’. If to_file is a path, the resulting dataset will be exported to this specified filepath.

Returns#

datarsmplTYPE

DESCRIPTION.

If to_file argument is used, the resulting dataset can also be exported to a file.