extract_SFSW2_cells_from_raster: Extract the weighted mean (and sample quantiles) for raster...

Description Usage Arguments Value See Also

View source: R/Spatial_Functions.R

Description

Extract the weighted mean (and sample quantiles) for raster cells or rectangles.

Usage

1

Arguments

x

A raster::Raster object from which data are extracted

y

Either A raster::RasterLayer OR raster resolution (of rectangles) as a numeric vector of length two or a matrix with two columns. If a raster::RasterLayer, then values of data are resampled and extracted for !NA cells. If the latter, then the vector or matrix represents the rectangle extent/resolution in x- and y-coordinates. If a matrix, then rows must match coords.

...
  • method A character string. The method argument passed to reaggregate_raster. Default is “block” which is the fastest.

  • coords Cell centers (corresponding to !NA cells of y) that are represented by a two-column matrix of xy-coordinates. If not provided, then y must be a raster::RasterLayer and cell centers are extracted from y.

  • probs A numeric vector of probabilities with values in [0, 1] at which sample quantiles are returned.

Value

A matrix with rows corresponding to the !NA cells of y and columns to layers of x.

See Also

extract


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on Aug. 14, 2020, 5:17 p.m.