Learn R Programming

FIELDimageR (version 0.3.1)

fieldArea: Percentage of object area

Description

It calculates the percentage of object area in the entire mosaic or per plot using the fieldShape file.

Usage

fieldArea(
  mosaic,
  areaValue = 0,
  fieldShape = NULL,
  n.core = NULL,
  plot = TRUE,
  na.rm = FALSE
)

Arguments

mosaic

object mask of class stack from the function fieldMask.

areaValue

referent value of object area in the image.

fieldShape

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.

n.core

number of cores to use for multicore processing (Parallel).

plot

if is TRUE the crop image and fieldShape will be plotted.

na.rm

logical. Should missing values (including NaN) be used?.

Value

A list with two element

  • areaPorcent is the percentage of object area per plot represented in DataFrame.

  • fieldShape is the new fieldShape format SpatialPolygonsDataFrame.

Details

fieldArea