Project a RasterArray object
The method implemets the projectRaster
function for RasterArray
class objects.
projectRaster( from, to, res, crs, method = "bilinear", alignOnly = FALSE, over = FALSE, filename = "", ... ) ## S4 method for signature 'RasterArray' projectRaster( from, to, res, crs, method = "bilinear", alignOnly = FALSE, over = FALSE )
from |
A |
to |
|
res |
single or (vector of) two numerics. To, optionally, set the output resolution if 'to' is missing |
crs |
character or object of class 'CRS'. PROJ.4 description of the coordinate reference system. In projectRaster this is used to set the output CRS if 'to' is missing, or if 'to' has no valid CRS |
method |
method used to compute values for the new RasterLayer. Either 'ngb' (nearest neighbor), which is useful for categorical variables, or 'bilinear' (bilinear interpolation; the default value), which is appropriate for continuous variables. |
alignOnly |
|
over |
|
filename |
|
... |
additional arguments as for |
A projected RasterArray
class object.
# project first three to mollweide data(dems) suppressWarnings( mollDem <- projectRaster(dems[1:3], crs=CRS("+proj=moll")) )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.