Skip to content

Error when accessing MRI-ESM2-0 #561

Answered by andersy005
axelschweiger asked this question in Q&A
Discussion options

You must be logged in to vote

@axelschweiger, thank you for filing this report. It appears the issue you are running had to do with mixed datetime types. One solution is to tell xarray to use cftime when decoding the time coordinates.

In [6]: dset_dict = cat.to_dataset_dict(xarray_open_kwargs={'use_cftime': True})

--> The keys in the returned dictionary of datasets are constructed as follows:
        'activity_id.institution_id.source_id.experiment_id.table_id.grid_label'
 |████████████████████████████████████████████████████████████████████████████████████████████████████| 100.00% [2/2 00:17<00:00]
In [7]: dset_dict
Out[7]: 
{'ScenarioMIP.MRI.MRI-ESM2-0.ssp585.SImon.gn': <xarray.Dataset>
 Dimensions:             (time

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@axelschweiger
Comment options

Answer selected by andersy005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #560 on January 23, 2023 04:37.