nearest_points: Get 4 or 16 nearest gridpoints

Description Usage Arguments Details Value

View source: R/tusk.R

Description

Get four or sixteen nearest gridpoints for a lon/lat pair.

Usage

1
nearest_points(coords, netcdf, data_set = "ts401", npoints = 4)

Arguments

coords

the coordinates to find the nearest gridpoints for as list with $lon and $lat in decimal degrees (negative for degrees west/south)

netcdf

the ncdf object holding the relevant data

data_set

the kind of data used (see ?supported_sets) for details

Details

The returned list of gridpoint coordinates can be used for interpolation

Value

a list holding four or sixteen lists, with each holding a lat/lot


cszang/tusk documentation built on May 14, 2019, 12:27 p.m.