topneighbor Maps
Return value
index giving the P1[index] point that is the closetest point
of (P0)
Parameters
p0lon
in
required
p0lat
in
required
neighlon
neighlat
Keywords
sphere
distance
radians
Examples
IDL> Result = neighbor(lon0, lat0, lon1, lat1)
IDL> print, neighbor(-105.15,40.02,[-0.07,100,50],[51.30,20,0], $
distance=dis)
0
IDL> print, dis
105.684 206.125 160.228
Version history
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
October 2003