get_loc | R Documentation |
Retrieve geospatial information about a grads resource
get_loc(x, what = "time") get_time(x, shift = -2) get_lon(x) get_lat(x) get_lev(x)
x |
ncdf4 object |
what |
character, one of 'time', 'lon', 'lat', 'lev' or 'all' |
shift |
numeric, see oce in days If the time unit in the file is actually hours then we automatically convert to hours (so shift = 2 internally becomes 48) Set to zero to not shift. |
varies by value of what
lon, lat, lev
numeric vectors
time
POSIXct vector
all
list of lon, lat, lev, time
vectors
POSIXct times
numeric longitude locations
numeric latitude locations
numeric level locations
get_time
: retrieve POSIXct times
get_lon
: retrieve numeric longitudes
get_lat
: retrieve numeric latitudes
get_lev
: retrieve numeric levels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.