Description Usage Arguments Value
View source: R/prepare_rasters.R
Prepare environmental raster layers by loading them from the folder and cropping to the project extent. In that process rasters are aligned to the same grid and extent and converted to ASCII rasters. This function works only for continuous rasters.
1 | prepare_rasters(folder_in, folder_out = folder_in, extent, ref_raster)
|
folder_in |
filename (character) or Raster object. Supported file types are the "native" raster package format and those that can be read via rgdal |
folder_out |
filename (character). Folder where prepared data will be saved. Default is to save them in the same folder where original rasters are stored. |
extent |
Extent object, or any object from which an Extent object can be extracted such as: a 2x2 matrix (first row: xmin, xmax; second row: ymin, ymax), vector (length=4; order= xmin, xmax, ymin, ymax) or list (with at least two elements, with names 'x' and 'y') |
ref_raster |
filename (character) or Raster object. Supported file types are the "native" raster package format and those that can be read via rgdal |
New rasters prepared for analysis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.