View source: R/nctools-auxiliar.R
ncvar_dim | R Documentation |
Get dimension names for each variable in a ncdf file
ncvar_dim(nc, varid = NULL, value = FALSE)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.