loadNcdf | R Documentation |
Load NetCDF file
loadNcdf(filePath, varname, tz = "GMT", ...)
filePath |
A path pointing to the NetCDF file, version3. |
varname |
A character representing the variable name, you can use |
tz |
A string representing the time zone, default is GMT, if you know what time zone is
you can assign it in the argument. If |
... |
Several arguments including Year, month, lon, lat
type in |
A list object from hyfo
containing the information to be used in the analysis,
or biascorrection.
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
Santander MetGroup (2015). ecomsUDG.Raccess: R interface to the ECOMS User Data Gateway. R package version 2.2-6. http://meteo.unican.es/ecoms-udg
# 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)
nc <- loadNcdf(filePath, varname)
# you can directly add your downscale information to the argument.
nc1 <- loadNcdf(filePath, varname, year = 2006, lon = c(-2, -0.5), lat = c(43.2, 43.7))
nc2 <- loadNcdf(filePath, varname, year = 2005, month = 3:8, lon = c(-2, -0.5),
lat = c(43.2, 43.7))
# More examples can be found in the user manual on http://yuanchao-xu.github.io/hyfo/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.