Description Usage Arguments Value
Converts Lon/Lat to start and count suitable for extracting points
1 | subset_points(x, y = NULL, lon = c(-180, 180), lat = c(-90, 90))
|
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 |
a list of start/count elements, one per xy input. For inputs that fall beyond the bounds of the data then NA is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.