subset_points: Converts Lon/Lat to start and count suitable for extracting...

Description Usage Arguments Value

Description

Converts Lon/Lat to start and count suitable for extracting points

Usage

1
subset_points(x, y = NULL, lon = c(-180, 180), lat = c(-90, 90))

Arguments

x

either a vector of longitude or a 2d array [lon,lat] or a data.frame with lon,lat columns

y

numeric vector, if x is a vector, otherwise NULL

lon

numeric vector of lons to select from - these come from the LON attribute in nc

lat

numeric vector of lats to select from - these come from the LAT attribute in nc

Value

a list of start/count elements, one per xy input. For inputs that fall beyond the bounds of the data then NA is returned.


btupper/spnc documentation built on May 13, 2019, 8:44 a.m.