View source: R/functions_netCDF.R
get_data_dims | R Documentation |
XYZT or SZT data dimensions for interacting with netCDFs
get_data_dims(
data_str = c("xyzt", "xyt", "xyz", "xy", "szt", "st", "sz", "s"),
dims = NULL
)
data_str |
A character string describing the dimensions of |
dims |
An integer vector. |
A named integer vector with six elements for
sites, for a spatial representation of data as sites
x coordinate, for a gridded spatial representation
y coordinate, for a gridded spatial representation
vertical levels
temporal units
x <- array(dim = c(17, 15, 12, 100))
get_data_dims("xyzt", dim(x))
get_data_dims("xyzt", c(17, 15, 12, 100))
get_data_dims("xyt", c(17, 15, 100))
get_data_dims("xyz", c(17, 15, 12))
get_data_dims("xy", c(17, 15))
get_data_dims("xy", c(17, 15, 3))
get_data_dims("szt", c(17 * 15, 12, 100))
get_data_dims("xy", c(17 * 15))
get_data_dims("xy", c(17 * 15, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.