Deltares / xugrid

Xarray and unstructured grids
https://deltares.github.io/xugrid/
MIT License
64 stars 8 forks source link

regridder to_dataset method returns undersized n #233

Closed Huite closed 5 months ago

Huite commented 5 months ago

I'm having a target grid with ny * nx values, but the resulting __regrid_n is smaller.

This is likely due to the fact that the scipy matrix is initialized without an explicit shape argument. In that case, it'll infer the shape using the highest index.