getInfo: Extract information from image using the fieldShape file as...

Description Usage Arguments Details Value References Examples

View source: R/getInfo.R

Description

Function that use raster::extract() to extract information from the original image using fieldShape file as reference.

Usage

1
  getInfo(mosaic,fieldShape,fun = "mean",plot=F,buffer=NULL,n.core=NULL,...)

Arguments

mosaic

object of class stack.

fieldShape

plot shape file, please use first the function fieldShape().

fun

function to summarize the values (e.g. mean).

plot

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

buffer

negative values should be used to remove boundaries from neighbor plot (normally the unit is meters, please use values as 0.1 = 10 cm).

n.core

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

...

please see raster::extract() for more options.

Details

The function returns a data frame with values by plots, and a new reduced image with format stack.

Value

List with a data frame with values by plot and experimental field image with format stack.

References

Matias et al. (2019) FIELDimageR: A R Package to Analyze Orthomosaic Images from Agricultural Field Trials. (submitted)

Examples

1
  ##see Vignette at https://github.com/filipematias23/FIELDimageR

angel30mpa/ampa documentation built on Feb. 22, 2020, 12:17 a.m.