oggm.shop.cru.process_cru_data#
- oggm.shop.cru.process_cru_data(gdir, tmp_file=None, pre_file=None, y0=None, y1=None, output_filesuffix=None)[source]#
Processes and writes the CRU baseline climate data for this glacier.
Interpolates the CRU TS data to the high-resolution CL2 climatologies (provided with OGGM) and writes everything to a NetCDF file.
- Parameters:
- gdir
oggm.GlacierDirectory
the glacier directory to process
- tmp_filestr
path to the CRU temperature file (defaults to the current OGGM chosen CRU version)
- pre_filestr
path to the CRU precip file (defaults to the current OGGM chosen CRU version)
- 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 end 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)
- gdir
Notes
- Files written to the glacier directory:
- climate_historical.nc
The historical monthly climate timeseries stored in a netCDF file.