oggm.tasks.process_custom_climate_data#
- oggm.tasks.process_custom_climate_data(gdir, y0=None, y1=None, output_filesuffix=None)[source]#
Processes and writes the climate data from a user-defined climate file.
The input file must have a specific format (see OGGM/oggm-sample-data ->test-files/histalp_merged_hef.nc for an example).
This is the way OGGM used to do it for HISTALP before it got added to the shop.
- Parameters:
- gdir
oggm.GlacierDirectory
the glacier directory to process
- 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 ending 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). This year will be included, i.e. 2019 means the data will end at 2019-12-01
- output_filesuffixstr
this adds a suffix to the output file (useful to avoid overwriting previous experiments)
- gdir
Notes
- Files written to the glacier directory:
- climate_historical.nc
The historical monthly climate timeseries stored in a netCDF file.