Replies: 2 comments
|
I don't think so. You can do |
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) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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:All reactions