Closed roxyboy closed 3 years ago
I managed to get this work so I'm going to close this but information I found in the xarray issues may aid other users.
The ContainsArrayError was originating from me not deleting pre-existing temp_store
and target_store
but I was then getting weird errors of ValueError: Final chunk of Zarr array must be the same size or smaller than the first.
Running
del ds2_rechunked['dzetaF'].encoding['chunks']
del ds2_rechunked['dzetaFx'].encoding['chunks']
del ds2_rechunked['dzetaFy'].encoding['chunks']
del ds2_rechunked['zdz'].encoding['chunks']
del ds2_rechunked['zxdz'].encoding['chunks']
del ds2_rechunked['zydz'].encoding['chunks']
did the trick for me.
I have the following xarray/zarr array that I'm trying to rechunk:
I've tried the following but I'm getting a
ContainsArrayError
:Could someone advise what I'm doing wrong here? The examples in the documentation seem to only have one variable per dataset but is the error stemming from my dataset having multiple variables?