fldmean | R Documentation |
The function fldmean
computes the spatial weighted average for each timestep.
fldmean(x)
## S4 method for signature 'Raster'
fldmean(x)
## S4 method for signature 'data.table'
fldmean(x)
## S4 method for signature 'character'
fldmean(x)
x |
Raster* object; data.table (see details); filename (character, see details) |
If 'x' is a data.table, its columns should be named: "lon", "lat", "date", and "value"
If 'x' is a filename, it should point to a *.nc file.
data.table
## Not run:
download_data("gldas-vic", tempdir(), timestep = "yearly")
r <- raster::brick(paste0(tempdir(),
"/gldas-vic_tp_mm_land_194801_201412_025_yearly.nc"))
s <- fldmean(r)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.