# Insert points into a 2d grid [closed]

I have a list of single point values that I want to insert into a grid.

point_values = [1, 4, 5, ...]

point_lats = [-12.101, -12.1023, -12.1031, ...]

point_lons = [155.511, 155.520, 155.533, ...]

the grid latitudes and longitudes are currently in 2d arrays of 2030 x 1350

latitudes = array of shape 2030 x 1350 of latitudes

longitudes = array of shape 2030 x 1350 of longitudes

how could I insert the points into the 2D grid if a point falls within the grid boundaries?

## closed as unclear what you're asking by Jan Doggen, uhoh, trond hansen, Semidiurnal Simon, BillDOeJul 26 at 21:43

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• This looks more like a programming question (belonging on Stack Overflow) but is currently very unclear. What do these arrays represent? What grid boundaries are you talking about? – Jan Doggen Jul 25 at 11:11
• this is to match up satellite observations from a lidar (calipso) to MODIS data. i would think this is earth science considering i'm doing it to observe earth processes. – Alyson Douglas Jul 25 at 13:18
• Although this question is about remote sensing, you likely will get helpful answers from Geographic Information Systems stack exchange. – haresfur Jul 26 at 0:50

With inverse distance weighting, the distance variable is usually raised to a power n, i.e. $${1/d^n}$$. Choosing the appropriate value of $$n$$ is the tricky part. When geologists used inverse distance weighting, prior to primary using geostatistics, typically the value of $$n$$ used was 2, but values between 1 and 3 have been used for different deposits.