oggm.tasks.process_lmr_data#
- oggm.tasks.process_lmr_data(gdir, fpath_temp=None, fpath_precip=None, ensemble_member=None, version='v2.1', year_range=('1951', '1980'), filesuffix='', output_filesuffix='', **kwargs)[source]#
Read, process and store the Last Millennium Reanalysis (LMR) data for this glacier.
LMR v2.1 data: https://atmos.washington.edu/~hakim/lmr/LMRv2/ LMR data:
LMR data is annualised in anomaly format relative to 1951-1980. (2.1 or online) We create synthetic timeseries from the reference data.
It stores the data in a format that can be used by the OGGM mass balance model and in the glacier directory.
- Parameters:
- fpath_tempstr
path to the temp file (default: LMR v2.1 from server above)
- fpath_precipstr
path to the precip file (default: LMR v2.1 from server above)
- versionstr
Version is ‘v2.1’ or ‘online’. Default is ‘v2.1’. ‘online’ is the latest version from the server.
- year_rangetuple of str
the year range for which you want to compute the anomalies. Default for LMR is (‘1951’, ‘1980’)
- ensemble_memberint
the ensemble member to use (default is the ensemble mean). An integer between 0 and 19.
- filesuffixstr
Same as output_filesuffix but deprecated
- output_filesuffixstr
append a suffix to the filename (useful for ensemble experiments).
- **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.