get_navigation | R Documentation |
Handy if you are doing multiple extractions - just compute the extraction navigation once and resuse it (not that computing is slow.)
get_navigation( x, bb = get_bounds(x), time = get_loc(x, "time")[1:3], lev = get_loc(x, "lev")[1:5] )
x |
ncdf4 object |
bb |
a 4 element bounding box for subsetting ordered as
|
time |
POSIXct vector of one or more times to retrieve. These are matched the
closest known times in the object. See |
lev |
numeric vector of one or more levels. These are matched the
closest known levels in the object. See |
a list of extraction navigation elements
obb, otime, olev: original request inputs
ilon, ilat, itime, ilev: index into dimensions for obb, otime and olev
lons, lats, times, levs: full real world dimension values
dx, dy: x and y resolution
xlim, ylim: limits envelope
index: list of array (slab) indices as in [start, count] form
stbb: st_bbox object
time_index, lev_index: full sequential indices into times and levs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.