Learn R Programming

raster (version 1.8-3)

rectify: rectify a Raster object

Description

rectify changes a rotated Raster* object into a non-rotated (rectangular) object. This is wrapper function around resample.

Usage

rectify(x, ext, res, method='ngb', filename='', ...)

Arguments

x
Raster* object to be rectified
ext
Optional. Extent object or object from which an Extent object can be extracted
res
Optional. Single or two numbers to set the resolution
method
Method used to compute values for the new RasterLayer, should be "bilinear" for bilinear interpolation, or "ngb" for nearest neighbor
filename
Character. Output filename
...
Additional arguments. See Details

Value

  • A RasterLayer or RasterBrick object, and, in some cases, the side-effect of a file with the values of the new RasterLayer

Details

The following additional arguments can be passed, to replace default values for this function rll{ overwrite Logical. If TRUE, "filename" will be overwritten if it exists format Character. Output file type. See writeRaster datatype Character. Output data type. See dataType progress Character. "text", "window", or "" (the default, no progress bar) }