oggm.shop.gcm_climate.process_cmip_data#

oggm.shop.gcm_climate.process_cmip_data(gdir, filesuffix='', fpath_temp=None, fpath_precip=None, y0=None, y1=None, **kwargs)[source]#

Read, process and store the CMIP5 and CMIP6 climate data for this glacier.

It stores the data in a format that can be used by the OGGM mass balance model and in the glacier directory.

Currently, this function is built for the CMIP5 and CMIP6 projection simulations that are on the OGGM servers.

Parameters
filesuffixstr

append a suffix to the filename (useful for ensemble experiments).

fpath_tempstr

path to the temp file

fpath_precipstr

path to the precip file

y0int

start year of the CMIP data processing. Default is None which processes the entire timeseries. Set this to the beginning of your bias correction/ projection period minus half of bc period to make process_cmip_data faster.

y1int

end year of the CMIP data processing. Set this to the end of your projection period plus half of bc period. Default is None to process the entire time series, same as y0.

**kwargs: any kwarg to be passed to ref:`process_gcm_data`

Notes

Files written to the glacier directory:
gcm_data.nc

The monthly GCM climate timeseries stored in a netCDF file.