# DETER

DETER uses satellite surveillance to detect and report changes in forest cover across the Legal Amazon and the Cerrado biome. Each data point consists of a warning, describing which type of change has affected a certain area of forest at a given date. Broadly speaking, it makes a distinction between events of deforestation, degradation and logging. The data extracted here spans from 2016 onward in the Amazon, and from 2018 onward in the Cerrado.

The raw DETER data shows one warning per row, with each row also containing a municipality. However, many warnings actually overlap with 2 or up to 4 municipalities, which are not shown in the original data. Therefore, when the option `raw_data = FALSE` is selected, the original spatial information is intersected with a municipalities map of Brazil, and each warning can be split into more than one row, with each row corresponding to a municipality.

Options:

1. dataset: there are two options:
   - `"deter_amz"` for data from the Amazon
   - `"deter_cerrado"` for data from the Cerrado
2. raw_data: there are two options:
   - `TRUE`: if you want the data as it is originally.
   - `FALSE`: if you want the treated version of the data.
3. language: you can choose between Portuguese `("pt")` and English `("eng")`

Examples:

    # Download treated data (raw_data = FALSE) from Amazonia (dataset = "deter_amz")
    deter_amz <- load_deter(
      dataset = "deter_amz",
      raw_data = FALSE
    )