filterNC | R Documentation |
Crop NetCDF file
filterNC(file, startdate, enddate, outfile)
file |
|
startdate |
|
enddate |
|
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)[4]
temp <- tempfile(fileext=".nc")
filterNC(file=file, startdate=2005, enddate=2007, outfile=temp)
terra::plot(terra::rast(temp))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.