nc_coord_var: Get Coordinate Variables for Given Variable
Description
In NetCDF, variables are defined along dimensions and are said to have "coordinate
variables" that define the (typically spatio-temporal) positions of the data's cells.
Usage
nc_coord_var(x, variable = NULL, ...)
# S3 method for character
nc_coord_var(x, variable = NULL, ...)
# S3 method for NetCDF
nc_coord_var(x, variable = NULL, ...)
Value
tibble with "variable", "X", "Y", "Z", "T", and "bounds" columns that reference
variables by name.
Arguments
x
NetCDF source
variable
variable name of interest.
If not included, all variables will be returned.
...
ignored
Details
This function attempts to identify the X, Y, Z, and T coordinate variables for each
data variable in the provided NetCDF source. The NetCDF-CF attribute conventions are
used to make this determination.
All variables that can be related to a spatio-temporal axis, including coordinate
variables are returned. For coordinate variables, a "bounds" column is included in
the response indicating which variable contains bounds information.