get_loc: Retrieve geospatial information about a grads resource

View source: R/nc.R

get_locR Documentation

Retrieve geospatial information about a grads resource

Description

Retrieve geospatial information about a grads resource

Usage

get_loc(x, what = "time")

get_time(x, shift = -2)

get_lon(x)

get_lat(x)

get_lev(x)

Arguments

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.

Value

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

Functions

  • get_time: retrieve POSIXct times

  • get_lon: retrieve numeric longitudes

  • get_lat: retrieve numeric latitudes

  • get_lev: retrieve numeric levels


BigelowLab/nam218grads documentation built on Oct. 4, 2022, 2:01 a.m.