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).
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.
Value
A new RasterLayer object, and in some cases the side effect of a new file on disk.
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 writeRasteroverwrite if TRUE, "filename" will be overwritten if it exists
progress Character. Valid values are "text", "tcltk", "windows" (on that platform only) and ""
}