aggregateNC | R Documentation |
Aggregate one or multiple NetCDF Files over time and/or space
aggregateNC(infile, outfile, var, startdate, enddate, group_col = "year")
infile |
|
outfile |
|
var |
|
startdate |
|
enddate |
|
group_col |
|
A NetCDF with temporal values averaged over the specified area.
## Not run:
file <- list.files(paste0(system.file(package="processNC"), "/extdata"),
pattern="tas.*\\.nc", full.names=TRUE)[4]
temp <- tempfile(fileext=".nc")
aggregateNC(infile=file, outfile=temp, var="tas", startdate="2001", enddate="2010")
terra::rast(temp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.