powered by
The function remap aggregates data into a new grid resolution.
remap
remap(x, y)# S4 method for Raster remap(x, y)# S4 method for data.table remap(x, y)# S4 method for character remap(x, y)
# S4 method for Raster remap(x, y)
# S4 method for data.table remap(x, y)
# S4 method for character remap(x, y)
Raster* object; data.table
Raster* object; data.table (see details); filename (character, see details)
numeric
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.
if (FALSE) { download_data("gldas-vic", tempdir(), timestep = "yearly") r <- raster::brick(paste0(tempdir(), "/gldas-vic_tp_mm_land_194801_201412_025_yearly.nc")) s <- remap(r, 1) }
Run the code above in your browser using DataLab