Skip to contents

nc_dimensions returns a list with the index, names, units, length and values of all the dimensions of the input file or "NetCDF" (as defined in RNetCDF) object.

Usage

nc_dimensions(x)

Arguments

x

Filename of netCDF archive or NetCDF object.

Value

A list with index, name, units, length and values for each dimension included in the netCDF archive.

Examples

if (FALSE) {
# In the case the input object is a file:
concfile <- c("extdata/conc_farm.nc")
nc_dimensions(concfile)

# In the case the input object is a 'NetCDF' object:
concfile <- c("extdata/conc_farm.nc")
nc <- RNetCDF::open.nc(concfile)
nc_deadlines(nc)
}