remapNC | R Documentation |
Remap NetCDF file
remapNC(gridfile, infile, outfile)
gridfile |
|
infile |
|
outfile |
|
A NetCDF file containing the croped data.
## Not run:
file <- list.files(paste0(system.file(package="processNC"), "/extdata"),
pattern="tas.*\\.nc", full.names=TRUE)[1]
temp <- tempfile(fileext=".nc")
gridfile <- paste0(system.file(package="processNC"), "/extdata/euro-cordex_grid_bav.txt")
remapNC(gridfile=gridfile, infile=file, outfile=temp)
raster::plot(raster::stack(temp))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.