Closed yt87 closed 1 year ago
Hi @yt87 !
I think this is because you are using xESMF
0.7.1, which doesn't support spatial chunks when regridding. I believe the confusion comes from ReadTheDocs : the link you provided is the documentation of the "latest" xESMF, which means the "master branch" here on github, which does have this new feature.
Our doc setup might be broken because the "stable" version (0.7.1) seems not accessible... I'll open an issue.
One solution for your issue is to install xESMF from source, but beware that there might be some issues that haven't been fixed yet.
Thanks. Another solution, which I chose, is to rechunk the dataset before invoking regridder. Regarding documentation, maybe you could use the numpy and python practice: add a note that a particular feature is introduced in version x.y.z
The example in the doc: https://xesmf.readthedocs.io/en/latest/notebooks/Dask.html fails for spatial chunking. I combined the code from all the IPython cells:
The result is an exception:
This issue seems to be related to #https://github.com/dask/dask/issues/4299
My environment: