getNcdfVar | R Documentation |
Get variable name in the NetCDF file. After knowning the name, you can use loadNcdf
to load
the target variable.
getNcdfVar(filePath)
filePath |
A path pointing to the netCDF file. |
The names of the varialbes in the file.
David Pierce (2015). ncdf4: Interface to Unidata netCDF (Version 4 or Earlier) Format Data Files. R package version 1.14.1. https://CRAN.R-project.org/package=ncdf4
# First open the test NETcDF file.
filePath <- system.file("extdata", "tnc.nc", package = "hyfo")
# Then if you don't know the variable name, you can use \code{getNcdfVar} to get variable name
varname <- getNcdfVar(filePath)
# More examples can be found in the user manual on https://yuanchao-xu.github.io/hyfo/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.