melodies_monet.util.read_grid_util

Functions

read_grid_models(config, date_str[, model])

Read grid data models

read_grid_obs(config, obs_vars, date_str[, obs])

Read grid data obs

melodies_monet.util.read_grid_util.read_grid_models(config, date_str, model=None)

Read grid data models

Parameters

config (dict): configuration dictionary date_str (str yyyy-mm-m_abbr-dd-ddd): date string model: specific model to read optional, if not specified all models in config[‘models’] will be read

Returns

model_datasets (dict of xr.Dataset): dictionary of model datasets filenames (dict of str): dictionary of filenames

melodies_monet.util.read_grid_util.read_grid_obs(config, obs_vars, date_str, obs=None)

Read grid data obs

Parameters

config (dict): configuration dictionary obs_vars (dict of dict): nested dictionary keyed by obs set name and obs variable name date_str (str yyyy-mm-m_abbr-dd-ddd): date string obs: specific observation to read, optional, if not specified all obs in obs_vars will be read

Returns

obs_datasets (dict of xr.Dataset): dictionary of obs datasets filenames (dict of str): dictionary of filenames