Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / IDL Reference / I/O - GRIB / GRIB_FIND_NEAREST

GRIB_FIND_NEAREST

GRIB_FIND_NEAREST

The GRIB_FIND_NEAREST procedure finds the four nearest points of a latitude/longitude point.

Examples


See GRIB_GET_VALUES for a general example using the GRIB routines.

Syntax


GRIB_FIND_NEAREST, Ghandle, Lon, Lat [, MODE=Array] [, LATITUDES=Array] [, LONGITUDES=Array] [, INDEXES=Array] [, VALUE=Array] [, DISTANCES=Array])

Arguments


Ghandle

A GRIB handle.

Lon

Longitude of the point for which to search.

Lat

Latitude of the point for which to search.

Keywords


MODE

Set this keyword to the numeric mode. The default value is 4 (GRIB_NEAREST_SAME_POINT).

Mode Values

Description

1

GRIB_NEAREST_SAME_GRID

4

GRIB_NEAREST_SAME_POINT

The value can be ORed together. For example, MODE=5 sets both modes.

LATITUDES

Returns an array of latitude values of the nearest points.

LONGITUDES

Returns an array of longitude values of the nearest points.

INDEXES

Returns an array of indexes of the nearest points.

VALUES

Returns an array of values of the nearest points.

DISTANCES

Returns an array of distance values from the nearest points.

Version History


8.1

Introduced



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us