motleyStack: Stack rasters with differing extents.

Description Usage Arguments Value

View source: R/spatial.R

Description

The native raster::stack function fails if the input layers don't have identical extents. This is a workaround that extends each input layer by a buffer, and then intersects them. It will only work if all input layers share other key spatial characteristics like resolution, projection, etc.

Usage

1

Arguments

x

Layers to stack, as a vector of raster file paths or a list of raster layers.

intersect

Logical: Should only the minimum intersection of the input layers be retained? (If FALSE, the default, layers will be extended to ratain all data.)

Value

A raster stack.


matthewkling/ecoclim documentation built on May 21, 2019, 1:04 p.m.