Previous SAXO Documentation Assistant: Overview Next

Interpolation/

neighbor.pro

find the closest point of (P0) within a list of np1 points P1 which can be on a sphere

neighbor Maps

result = neighbor(p0lon, p0lat[, neighlon][, neighlat], SPHERE=SPHERE, DISTANCE=DISTANCE, RADIANS=RADIANS)

Return value

index giving the P1[index] point that is the closest point of (P0)

Parameters

p0lon        in required type: scalar

longitudes of point P0.

p0lat        in required type: scalar

latitudes of point P0.

neighlon        in optional

neighlat        in optional

Keywords

SPHERE       

to activate if points are located on a sphere.

DISTANCE       

dis, to get back the distances between P0 and the np1 points P1 in the variable dis.

RADIANS       

if set, inputs and angular outputs are in radians, otherwise degrees.

Examples

 IDL> print, neighbor(-105.15,40.02,[-0.07,100,50],[51.30,20,0], $
 IDL> distance=dis)
                  0
 IDL> print, dis
             105.684      206.125      160.228

    

Version history

Version

$Id: neighbor.pro 238 2007-03-27 13:43:18Z pinsard $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) October 2003

 


  Produced by IDLdoc 2.0.