subset_nav: Craft subset indices into a ncdf array

Description Usage Arguments Value See Also

Description

Craft subset indices into a ncdf array

Usage

1
subset_nav(bb = NULL, lon = c(-180, 180), lat = c(-90, 90))

Arguments

bb

numeric, four element bounding box [left, right, bottom, top]

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 indices in x and y, counts in x and y and a possibly updated copy of bb vector of [left, right, bottom, top]

See Also

http://r.789695.n4.nabble.com/Lat-Lon-NetCDF-subset-td3394326.html


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