disaggregate

0th

Percentile

Disaggregate

Disaggregate a RasterLayer to create a new RasterLayer with a higher resolution (smaller cells). The values in the new RasterLayer are the same as in the larger original cells unless you specify method="bilinear", in which case values are locally interpolated (using the resample function).

Keywords
spatial
Usage
disaggregate(x, fact, ...)
Arguments
x
a RasterLayer object
fact
degree of aggregation or disaggregation expressed as number of cells (horizontally and vertically). See details
...
additional arguments. See Details.
Details

Fact can be a single integer or two integers c(x,y), in which case the first one is the horizontal disaggregation factor and y the vertical disaggreation factor. If a single integer values is supplied, cells are disaggregated with the same factor in x and y direction. If no filename is specified, and the resulting RasterLayer is too large to hold in memory, it is saved to a temporary file. The following additional arguments can be passed, to replace default values for this function rll{ filename Filename for the output RasterLayer format Character. Output file type. See writeRaster overwrite if TRUE, "filename" will be overwritten if it exists progress Character. Valid values are "text", "tcltk", "windows" (on that platform only) and "" }

Value

  • A new RasterLayer object, and in some cases the side effect of a new file on disk.

See Also

aggregate

Aliases
  • disaggregate
  • disaggregate,RasterLayer,numeric-method
Examples
r <- raster(ncols=10, nrows=10)
rd <- disaggregate(r, fact=c(10, 5))
ncol(rd)
nrow(rd)
r[] <- 1:ncell(r)
rd <- disaggregate(r, fact=c(10, 5), method='bilinear')
Documentation reproduced from package raster, version 1.0.0-1, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.