It calculates the percentage of object area in the entire mosaic or per plot using the fieldShape file.
fieldArea(
mosaic,
areaValue = 0,
fieldShape = NULL,
n.core = NULL,
plot = TRUE,
na.rm = FALSE
)
object mask of class stack from the function fieldMask
.
referent value of object area in the image.
evaluate the object area percentage per plot using the fieldShape as reference. If fieldShape=NULL, the object area percentage will be calculated directly for the entire original image.
number of cores to use for multicore processing (Parallel).
if is TRUE the crop image and fieldShape will be plotted.
logical. Should missing values (including NaN) be used?.
A list with two element
areaPorcent
is the percentage of object area per plot represented in DataFrame
.
fieldShape
is the new fieldShape
format SpatialPolygonsDataFrame
.
fieldArea