Deltares / xugrid

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

Check "mode" method on regridder: re-using weights for frequency counts is not a good idea! #145

Closed Huite closed 1 year ago

Huite commented 1 year ago

The mode function uses the weights array to accumulate. This is obviously a bad idea for repeated calls.

The regridder in imod-python didn't have this issue, because the weights were computed on the fly.