credit.xr_sampler#
Attributes#
Classes#
given a conf and datetime, samples an xarray with only variables specified in conf["data"] |
Module Contents#
- class credit.xr_sampler.XRSamplerByYear(config_path, conf=None)#
given a conf and datetime, samples an xarray with only variables specified in conf[“data”] WARNING: only compatible with single zarr store for all variables - excludes static variables - only compatible with files with the year in their filename
future features: - keep variables based on predict.save_vars - handle multiple zarr stores
- filenames#
- variables = []#
- current_file_year = -1#
- __call__(timestamp: numpy.datetime64)#
- credit.xr_sampler.config = '/glade/work/dkimpara/CREDIT_runs/cesm_rollout/model.yml'#