You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the really useful module! I think I've discovered an issue with open_mdsdataset (though I haven't been using it long and this might just be down to me).
It seems that after looping over iteration numbers and opening the corresponding model output (each producing a dataset with 'time' as a coordinate, open_mdsdataset then reads the model grid, inserting a dataset for which 'time' is not a coordinate, before chunking. If supplying an argument such as chunks={'time':1200, 'face':1,'j':90,'i':90}, this results in the following error (from xarray/core/dataset.py):
ValueError: some chunks keys are not dimensions on this object: {'time'}
If I remove the time key from the chunks dict, or set read_grid=False, everything works as expected.
The text was updated successfully, but these errors were encountered:
Hi, thanks for the really useful module! I think I've discovered an issue with open_mdsdataset (though I haven't been using it long and this might just be down to me).
It seems that after looping over iteration numbers and opening the corresponding model output (each producing a dataset with 'time' as a coordinate, open_mdsdataset then reads the model grid, inserting a dataset for which 'time' is not a coordinate, before chunking. If supplying an argument such as
chunks={'time':1200, 'face':1,'j':90,'i':90}
, this results in the following error (fromxarray/core/dataset.py
):ValueError: some chunks keys are not dimensions on this object: {'time'}
If I remove the time key from the
chunks
dict, or setread_grid=False
, everything works as expected.The text was updated successfully, but these errors were encountered: