
Combine compatible potentiometric surfaces
ps_surface_ensemble.RdCalculates a cellwise ensemble and method-spread layers from compatible head surfaces. Method spread is disagreement among supplied surfaces, not statistical uncertainty, and an ensemble is not automatically more accurate than a component method.
Arguments
- surfaces
Named compatible one-layer head rasters or a
potentiomap_result.- statistic
Cellwise mean, median, named weighted mean, or quantiles.
- weights
Named nonnegative weights for
weighted_mean. Attributeoriginmay record how they were derived.- probabilities
Quantile probabilities.
- support
Use only the intersection or allow the union of finite cells.
- minimum_methods
Minimum finite component count. The default is all methods for intersection and one for union.
- method_metadata
Optional named metadata list supplementing raster metadata.
Examples
r <- terra::rast(nrows = 2, ncols = 2, xmin = 0, xmax = 2, ymin = 0, ymax = 2,
crs = "EPSG:26920", vals = 1:4)
e <- ps_surface_ensemble(list(a = r, b = r + 2))
e$ensemble
#> class : SpatRaster
#> size : 2, 2, 1 (nrow, ncol, nlyr)
#> resolution : 1, 1 (x, y)
#> extent : 0, 2, 0, 2 (xmin, xmax, ymin, ymax)
#> coord. ref. : NAD83 / UTM zone 20N (EPSG:26920)
#> source(s) : memory
#> name : mean
#> min value : 2
#> max value : 5
# The spread records method disagreement, not a confidence interval.