Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open_mdsdataset can't chunk by time when read_grid=True #282

Open
ds4g15 opened this issue Aug 23, 2021 · 0 comments
Open

open_mdsdataset can't chunk by time when read_grid=True #282

ds4g15 opened this issue Aug 23, 2021 · 0 comments

Comments

@ds4g15
Copy link

ds4g15 commented Aug 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant