Closed dennissergeev closed 2 years ago
iris-esmf-regrid
. We really appreciate it and will get back to you as soon as possible. Awesome job 👍Thanks for highlighting this @dennissergeev , I'm working on a fix in #136.
thanks very much for the quick fix @stephenworsley !
🐛 Bug Report
Firstly, apologies for reporting a bug in a non-main branch. I am using the
unstructured_scheme
branch to work with LFRic output.A
ValueError
occurs if I applyesmf_regrid.experimental.unstructured_scheme.regrid_unstructured_to_rectilinear()
on cubes that are chunked along the time and/or vertical dimension. This situation is quite common when cubes are loaded from multiple files, so I would really appreciate if you fix this bug or provide a workaround.My current workaround is to rechunk the data and merge all chunks into one. It works for now, but can become a memory problem for large datasets.
Interestingly, having chunks along the horizontal (mesh) dimension works fine.
Thanks.
How To Reproduce
Steps to reproduce the behaviour:
This results in a `ValueError`: "Dimension 1 has 1 blocks, adjust_chunks specified with 2 blocks"
```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /tmp/ipykernel_23260/3888724239.py inExpected behaviour
Regridding that works on an arbitrarily chunked array.
Environment
esmf_regrid
version: 0.3.dev0iris
version: 3.2.dev0