spatial_predict.Rd
This function is used to spatially predict a trained model on a SpatRaster
object with the predictors. Additionally users can opt in to calculate the
Area of Applicability based on link{CAST}[aoa]
.
spatial_predict( model, predictors, AOA = TRUE, mode = "raw", ncores = 1, mask = NULL, ... )
model | A model object. |
---|---|
predictors | A spatRaster with the predictor variables. |
AOA | A logical indicating if the Area of Applicability shall be calculated.
Defaults to FALSE. Can be quite a costly calculation. Check the documentation of
|
mode | A character vector indicating the behavior of |
ncores | An integer specifying the number of cores to be used for parallel computations. |
mask | A spatRaster object with at the same resoultion as the predictor stack. All raster cells unqual to NA will be masked out of the predictor stack to omit predictions at these locations |
... | Additional arguments used for |
A SpatRaster object with at least one layer which is the classification
result. Depending if and how the AOA is calculated two additional layers are
possible representing the AOA itself and the DI. Check link{CAST}[aoa]
for more information.
Darius Görgen (MapTailor Geospatial Consulting GbR) info@maptailor.net
Maintainer: MAPME-Initiative contact@mapme-initiative.org
Contact Person: Dr. Johannes Schielein
Copyright: MAPME-Initiative
License: GPL-3