Replies: 2 comments
-
I don't think so. You can do |
Beta Was this translation helpful? Give feedback.
0 replies
-
@willirath if the problem is that you don't know the dimensions of the dataset until after you've opened it, you could always open first then chunk afterwards, I think the result is the same: chunks = {'x': 5}
ds = xr.open_dataset("example.nc")
if 'y' in ds.dims:
chunks['y'] = 1
ds = ds.chunk(chunks=chunks) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way of over-specifying chunks upon opening a dataset without throwing an error?
Currently, giving chunk sizes along dimensions that are not present in the dataset fails with a
ValueError
:Beta Was this translation helpful? Give feedback.
All reactions