Deltares / xugrid

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

Pad barycentric interpolation result with centroid locator #149

Open Huite opened 10 months ago

Huite commented 10 months ago

An inconsistency of the regridding method is that the barycentric method is confined to the voronoi tesselation of the grid.

This means that "beyond" the centroids, the barycentric interpolator doesn't find any values. Ideally, we could generate something smooth here, but that greatly complicates things. A pragmatic solution (for now) is to pad the area by locating centroids.

Huite commented 9 months ago

There is still a potential inconsistency with the OverlapRegridder.

Any overlap with a source face is sufficient to assign a value. The centroid would actually have to be located in the source face...