oggm.tasks.process_dummy_cru_file#
- 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:
- gdirGlacierDirectory
the glacier directory
- sigma_tempfloat
the standard deviation of the random timeseries (set to 0 for constant ts)
- sigma_prcpfloat
the standard deviation of the random timeseries (set to 0 for constant ts)
- seedint
the RandomState seed
- 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 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_filesuffixstr
this add a suffix to the output file (useful to avoid overwriting previous experiments)
Notes
- Files written to the glacier directory:
- climate_historical.nc
The historical monthly climate timeseries stored in a netCDF file.