Interpolation over an irregular grid

后端 未结 6 1710
不知归路
不知归路 2020-12-01 01:30

So, I have three numpy arrays which store latitude, longitude, and some property value on a grid -- that is, I have LAT(y,x), LON(y,x), and, say temperature T(y,x), for some

6条回答
  •  一个人的身影
    2020-12-01 02:17

    Am I right in thinking your data grids look something like this (red is the old data, blue is the new interpolated data)?

    alt text http://www.geekops.co.uk/photos/0000-00-02%20%28Forum%20images%29/DataSeparation.png

    This might be a slightly brute-force-ish approach, but what about rendering your existing data as a bitmap (opengl will do simple interpolation of colours for you with the right options configured and you could render the data as triangles which should be fairly fast). You could then sample pixels at the locations of the new points.

    Alternatively, you could sort your first set of points spatially and then find the closest old points surrounding your new point and interpolate based on the distances to those points.

提交回复
热议问题