oggm.tasks.process_dummy_cru_file(gdir, sigma_temp=2, sigma_prcp=0.5, seed=None, y0=None, y1=None, output_filesuffix=None)[source]

Create a simple baseline climate file for this glacier - for testing!

This simply reproduces the climatology with a little randomness in it.

TODO: extend the functionality by allowing a monthly varying sigma

Parameters: gdir : GlacierDirectory the glacier directory sigma_temp : float the standard deviation of the random timeseries (set to 0 for constant ts) sigma_prcp : float the standard deviation of the random timeseries (set to 0 for constant ts) seed : int the RandomState seed y0 : int 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) y1 : int 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_filesuffix : str this add a suffix to the output file (useful to avoid overwriting previous experiments)

Notes

Files writen to the glacier directory:
climate_historical.nc
The historical monthly climate timeseries stored in a netCDF file.