download_landcover: Download Landcover

download_landcoverR Documentation

Download Landcover

Description

Download the Land Cover 100 m from the Copernicus Global Land Service and copy it to its corresponding folder.

Usage

download_landcover(
  mainPath,
  country,
  alwaysDownload = FALSE,
  mostRecent = FALSE
)

Arguments

mainPath

character; the parent directory of the country folder

country

character; the country folder name

alwaysDownload

logical; should the raster always be downloaded, even if it has already been downloaded? If FALSE and if the raster has already been downloaded the user is interactively asked whether they want to download it again or not.

mostRecent

logical; should the most recent boundary shapefile be selected to define the required landcover tiles? If FALSE and if there are multiple available inputs, the user is interactively asked to select the input based on file creation time.

Details

The function downloads the landcover tiles from the AWS cloud and determines the file names based on the extent of the boundary shapefile. If there are multiple tiles, it produces a mosaic.


ptimoner/inAccMod documentation built on Aug. 31, 2023, 12:15 a.m.