NCAR / icar

The Intermediate Complexity Atmospheric Research model (ICAR)
MIT License
72 stars 53 forks source link

Geographic interpolation bug fix #41

Closed gutmann closed 6 years ago

gutmann commented 6 years ago

Fixes interpolation issue #35

Geographic interpolation from curved grids would occasionally pick the wrong grid cells to interpolate from in specific edge cases.

This pull request selects the correct grid cells, and changes the interpolation from a pure 4-point bilinear to a 3 point triangular mesh interpolation.