oggm.tasks.process_ecmwf_data

On this page

oggm.tasks.process_ecmwf_data#

oggm.tasks.process_ecmwf_data(gdir, dataset=None, ensemble_member=0, y0=None, y1=None, output_filesuffix=None)[source]#

Processes and writes the ECMWF baseline climate data for this glacier.

Extracts the nearest timeseries and writes everything to a NetCDF file.

Parameters:
datasetstr

‘ERA5’, ‘ERA5L’, ‘CERA’, ‘ERA5L-HMA’, ‘ERA5dr’. Defaults to cfg.PARAMS[‘baseline_climate’]

ensemble_memberint

for CERA, pick an ensemble member number (0-9). We might make this more of a clever pick later.

y0int

the starting year of the timeseries to write. The default is to take the entire time period available in the file, but with this kwarg you can shorten it (to save space or to crop bad data)

y1int

the starting year of the timeseries to write. The default is to take the entire time period available in the file, but with this kwarg you can shorten it (to save space or to crop bad data)

output_filesuffixstr

this add a suffix to the output file (useful to avoid overwriting previous experiments)

Notes

Files written to the glacier directory:
climate_historical.nc

The historical monthly climate timeseries stored in a netCDF file.