issues: 538380868
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
538380868 | MDU6SXNzdWU1MzgzODA4Njg= | 3627 | Error time slicing for some CMIP6 models | 57364981 | closed | 0 | 10 | 2019-12-16T12:25:42Z | 2019-12-16T15:42:56Z | 2019-12-16T15:42:56Z | NONE | Hi there, I'm using xarray's ```python Function to load data: df_data has the catalogue of the variable of interestdef load_data(df_data, source_id, expt_id): """ Load data for given variable, source and expt ids. """ uri = df_data[(df_data.source_id == source_id) & (df_data.experiment_id == expt_id)].zstore.values[0]
Just test with 1 model for now:source_ids_tmp = ['CESM2'] for model_name in source_ids_tmp: print('\n\nStarting ' + model_name +'\n') ds_hist = load_data(df_mon_tas, model_name, experiment_ids[0]).sel(time=slice('1976', '2005')) ``` Problem DescriptionHowever, the time slicing fails with the following error:
Looking at the Dataset metedata, the
For another CMIP6 model (MIROC6), the time slicing works fine. That model has the following metadat for
When the Thanks, Mike Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3627/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |