Skip to contents

In the given grid, the point closest to the (Lon,Lat) co-ordinates is found. This function is obsolete. Use point.interp.

Usage

lalopoint(geo, lon, lat, minimise='proj', mask=NULL)

Arguments

geo

A geofield, FAfile, geodomain, FAframe object.

lon,lat

longitude and latitude.

minimise

Which "distance" to minimise: can be 'lalo' (minimise lat-lon) or 'proj' (minimise geographical distance in the projection).

mask

Take the closest point where mask==TRUE.

Value

A list with following members:

data

The value of the field in the chosen grid point. If data is not a geofield, this is set to NA.

lonlat

The actual coordinates of the chosen grid point.

index

The matrix indices of the chosen grid point.

See also