rectify changes a rotated Raster* object into a non-rotated (rectangular) object. This is wrapper function around resample
.
rectify(x, ext, res, method='ngb', filename='', ...)
Raster* object to be rectified
Optional. Extent object or object from which an Extent object can be extracted
Optional. Single or two numbers to set the resolution
Method used to compute values for the new RasterLayer, should be "bilinear" for bilinear interpolation, or "ngb" for nearest neighbor
Character. Output filename
Additional arguments as for writeRaster
RasterLayer or RasterBrick object