Learn R Programming

CAWaR (version 0.0.2)

extract2: extract2

Description

Extract of values from multi-extent raster objects with a spatial object.

Usage

extract2(x, y, x.date, out.date, time.buffer = c(365, 365))

Arguments

x

A character vector with the paths to RasterLayer objects or a list of RasterLayers.

y

An object of class SpatialPoints or SpatialPolygons.

x.date

Object of class Date with the acquisition dates of each element in x.

out.date

Object of class Date with the desired output dates.

time.buffer

Two-element, numeric vector.

Value

A list object.

Details

Creates a rectangular fishnet in a SpatialPolygons format based on the extent of x and the value of y which defines the spatial resolution.