Get a list of names of data variables.
nc.get.variable.list(f, min.dims = 1)
The file (an object of class
The minimum number of dimensions a variable must have to be included.
This function returns the names of any data variables found in the file – that is, variables which are NOT dimension variables, dimension bounds variables, climatology bounds variables, coordinate variables, or grid mapping variables.
Optionally, one may require that the variables have a minimum number of dimensions; this can eliminate unwanted variables left in files.
A character vector naming all of the data variables found.
1 2 3 4 5 6 7
## Get dimension axes from file by inferring them from dimension names ## Not run: f <- nc_open("pr.nc") var.list <- nc.get.variable.list(f) nc_close(f) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.