prepare_rasters: Prepare rasters

Description Usage Arguments Value

View source: R/prepare_rasters.R

Description

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.

Usage

1
prepare_rasters(folder_in, folder_out = folder_in, extent, ref_raster)

Arguments

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

Value

New rasters prepared for analysis


grgurev/sdmflowR documentation built on Feb. 26, 2021, 10:57 a.m.