Loads data on deforestation in the Legal Amazon region.

load_prodes(
  dataset = "deforestation",
  raw_data = FALSE,
  time_period = 2025,
  language = "eng"
)

Arguments

dataset

A dataset name. Can be one of "deforestation", "residual_deforestation", "native_vegetation", "hydrography", "non_forest", or "clouds".

raw_data

A boolean setting the return of raw (TRUE) or processed (FALSE) data.

time_period

A numeric indicating for which years the data will be loaded, in the format YYYY. Can be any vector of numbers, such as 2010:2012.

  • Between 2007 - 2025 for dataset "deforestation". Deforestation for 2007 includes all cumulative deforestation up to 2007. For other years, deforestation is incremental

  • Between 2010 - 2025 for dataset "residual_deforestation"

  • Only 2025 for all other datasets

language

A string that indicates in which language the data will be returned. Portuguese ("pt") and English ("eng") are supported.

Value

A tibble with the selected data if raw_data is FALSE, and a SpatRaster is TRUE.

Examples

if (FALSE) { # interactive()
### DO NOT RUN ###
# download treated deforestation data for 2025
deforestation <- load_prodes(
  dataset = "deforestation",
  raw_data = FALSE,
  time_period = 2025,
  language = "eng"
)

# download treated deforestation data for 2008 to 2025
deforestation_series <- load_prodes(
  dataset = "deforestation",
  raw_data = FALSE,
  time_period = 2008:2025,
  language = "eng"
)

# download treated residual deforestation data for 2020
residual <- load_prodes(
  dataset = "residual_deforestation",
  raw_data = FALSE,
  time_period = 2020,
  language = "eng"
)
}