Q: Lat/Lon to gridpoint interpolation [message #4096] |
Mon, 24 April 1995 00:00 |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Hey folks,
I have two arrays, one is latitude and the other longitude. These
lat/lons correspond to satellite sensor fields-of-view on the earth
surface, and are irregularly spaced. I am trying to come up with a method
of finding the array indices closest to a given lat/lon, without having to
do a search of the lat/lon arrays. This is so that I can lay a coastline over
an un-resampled satellite image. I have already found a couple of ways to
do it by array searching, and it's a bit cumbersome.
I can't figure out how to do it using a simple fitting algorithm. What I want
to do is this:
lat is an x by y real array
lon is an x by y real array
I want to find the fractional x, y corresponding to a given lat, lon.
Any suggestions?
|
|
|