Description Usage Arguments Value
rasterPrep
The desktop version of GARP requires all input environmental layers to be of the same spatial resolution and extent and saved as an ".asc". This function resamples input rasters to the same cell size and extent of a sample raster.
User can define sample raster in res.raster
or define the number of cells in each row of the raster with cells
. If both res.raster
and cell
parameters are NULL
,
raster with the largest cell size will be automatically defined as the sample raster. The user can also crop rasters to a mask of the study area with mask = "mask filename"
.
1 2 3 4 5 6 7 8 |
file.path |
location of rasters to resample and crop |
res.raster |
optional; a raster object to resample and crop all other rasters to |
cells |
optional; a numeric value representing the number of cells per row to resample rasters |
mask |
optional; a spatial object specifying extent to crop rasters |
rescale |
logical; should each raster be centered on the mean and scaled by the standard deviation? |
output.path |
a file path specifying where the output rasters should be saved |
For each raster within file.path
, a new ACII file, resampled to the spatial resolution of the sample raster and spatial extent of the sample raster (res.raster
) or mask
file,
will be returned to output.path
with the same name and "_resample"
appended to the file name.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.