subsetNC | R Documentation |
Subset a NetCDF file by a spatial extent (x,y), time or variable and output it as a raster stack
subsetNC(
files,
startdate = NA,
enddate = NA,
ext = "",
varid = "",
filename = "",
format = "raster",
overwrite = FALSE
)
files |
|
startdate |
|
enddate |
|
ext |
|
varid |
|
filename |
|
format |
|
overwrite |
|
A numeric
raster stack with the cropped NetCDF data.
files <- list.files(paste0(system.file(package="processNC"), "/extdata"),
pattern="tas.*\\.nc", full.names=TRUE)
subsetNC(files, ext=c(8.5, 14, 47, 51), startdate=1990, enddate=1999)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.