downscaleNcdf | R Documentation |
Downscale NetCDF file
downscaleNcdf(gridData, year = NULL, month = NULL, lon = NULL, lat = NULL)
gridData |
A hyfo list file from |
year |
A vector of the target year. e.g. |
month |
A vector of the target month. e.g. |
lon |
A vector of the range of the downscaled longitude, should contain a max value
and a min value. e.g. |
lat |
A vector of the range of the downscaled latitude, should contain a max value
and a min value. e.g. |
A downscaled hyfo list file.
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)
# Then write to your work directory
nc1 <- downscaleNcdf(nc, year = 2006, lon = c(-2, -0.5), lat = c(43.2, 43.7))
nc2 <- downscaleNcdf(nc, 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 https://yuanchao-xu.github.io/hyfo/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.