ncvar_dim: Get dimension names for each variable in a ncdf file

View source: R/nctools-auxiliar.R

ncvar_dimR Documentation

Get dimension names for each variable in a ncdf file

Description

Get dimension names for each variable in a ncdf file

Usage

ncvar_dim(nc, varid = NULL, value = FALSE)

Arguments

nc

An open connection to a netCDF file as in nc_open(file).

varid

What variable to read the data from. Can be a string with the name of the variable or an object of class ncvar4. If set to NA, the function will determine if there is only one variable in the file and, if so, read from that, but if there are multiple variables in the file, an error is generated.

value

If TRUE, return a list with the value of the dimensions, not only the names of them.


roliveros-ramos/nctools documentation built on Aug. 13, 2022, midnight