Last chance! 50% off unlimited learning
Sale ends in
method="bilinear"
, in which case values are locally interpolated (using the resample
function).disaggregate(x, fact, ...)
method
Characer. Should be missing or 'bilinear' for bilinear interpolation
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. "text", "window", or "" (the default, no progress bar)
}aggregate
r <- raster(ncols=10, nrows=10)
rd <- disaggregate(r, fact=c(10, 2))
ncol(rd)
nrow(rd)
r[] <- 1:ncell(r)
rd <- disaggregate(r, fact=c(4, 2), method='bilinear')
Run the code above in your browser using DataLab