download.lu.ecors: Download Land Use images

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

download.lu.ecorsR Documentation

Download Land Use images

Description

Download from Google Earth Engine all Land Use images selected by get.lu.ecors function.

Usage

download.lu.ecors(
  x,
  exp.degree = 0.05,
  images.folder = getwd(),
  clear.prov = F
)

Arguments

x

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

exp.degree

number of degrees to expand (and in all directions) the extent of downloaded images (decimal degree format).

images.folder

local folder to save images files.

clear.prov

delete ALL files from temporary folder (ecors_temp) in your Google Drive account after download?

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"))

library(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.site",
     buffer1=10000, buffer2=NULL, buffer3=NULL, cumulative.surroundings=F)

#download
download.lu.ecors(x=lu2000_2010, exp.degree=0.05, images.folder=getwd(), clear.prov=F)

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