cordex.preprocessing.member_id_to_dset_id

cordex.preprocessing.member_id_to_dset_id#

member_id_to_dset_id(ds_dict)[source]#

Expand the member coordinate into the dataset id

If there are more than two members in the dataset, the function will give back a dict with new dataset ids containing the member in the key and a dataset for each member. This is useful for creating and ensemble dataset to avoid sparse datasets.

Parameters:

ds_dict (dict) – CORDEX ensemble with dataset ids as keys and datasets as items.

Returns:

ds_dict (dict) – CORDEX ensemble with keys expanded to the member id.