quantify.lu.ecors: Quantify the pixels of each Land Use class

View source: R/quantify.lu.ecors.R

quantify.lu.ecorsR Documentation

Quantify the pixels of each Land Use class

Description

Generate tables of number of pixels of each Land Use class in each reference polygon (site, samples, polygons - as defined in function get.lu.ecors) in each year.

Usage

quantify.lu.ecors(
  x,
  save.format = "ods",
  save.metadata = T,
  spreadsheet.folder = getwd()
)

Arguments

x

lu.ecors object (from get.lu.ecors).

save.format

select save results in "ods" or "RData" format (or both). Set to NULL if you do not want to save files.

save.metadata

should save metadadata (txt)?

spreadsheet.folder

local folder to save files.

Value

List with result tables and metadata. If enabled, ods (recomended) or RData files will be saved with result tables an metadata.

Examples

#get a lu.ecors class object
FAL.IBGE.JBB<-sf::st_read(system.file("extdata/FAL.IBGE.JBB.gpkg", package="ecors"))
test.points<-sf::st_read(system.file("extdata/Points_tests.gpkg", package="ecors"))
test.plots<-sf::st_read(system.file("extdata/Plots_tests.gpkg", package="ecors"))

lu2000_2010<-get.lu.ecors(site=FAL.IBGE.JBB, points=test.points, plots=test.plots,
     polygons=NULL, id.column=1, projected=F, custom.crs=32723,
     collection.lu="mapbiomas6", years=c(2000,2010), resolution=30, evaluate="surroundings.samples",
     buffer1=500, buffer2=1000, buffer3=2000, cumulative.surroundings=F)

table2000_2010<-quantify.lu.ecors(x=lu2000_2010, save.format=c("ods"))

fredtaka/ecors documentation built on Aug. 26, 2022, 6:58 a.m.