getCovariateRasters {disaggregation}R Documentation

Get a RasterStack of covariates from a folder containing .tif files

Description

Looks in a specified folder for raster files. Returns a RasterStack of the rasters cropped to the extent specified by the shape parameter.

Usage

getCovariateRasters(directory, file_pattern = ".tif$", shape)

Arguments

directory

Filepath to the directory containing the rasters.

file_pattern

Pattern the filenames must match. Default is all files ending in .tif .

shape

An object with an extent that the rasters will be cropped to.

Value

A RasterStack of the raster files in the directory

Examples

## Not run: 
  getCovariateRasters('/home/rasters', '.tif$', shape)
 
## End(Not run)


[Package disaggregation version 0.1.4 Index]