datazoom.amazonia
The datazoom.amazonia package facilitates access to official Brazilian Amazon data, including agriculture, deforestation, production. The package provides functions that download and pre-process selected datasets.
Installation
You can install the released version of datazoom.amazonia from
CRAN with:
install.packages("datazoom.amazonia")And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("datazoompuc/datazoom.amazonia")| PRODES | Yearly deforestation |
| DETER | Alerts on forest cover changes |
| DEGRAD | Forest degradation |
| Imazon | Deforestation pressure in the Amazon |
| IBAMA | Environmental fines |
| MapBiomas | Land cover and land use |
| TerraClimate | Climate data |
| SEEG | Greenhouse gas emission estimates |
| CENSOAGRO | Agriculture activities |
| IPS | Amazon Social Progress Index |
| DATASUS | Causes of mortality and availability of hospital beds |
| IEMA | Access to electricity in the Amazon region |
| Population | Population |
| COMEX | Brazilian international trade |
| BACI | Global international trade |
| PIB-Munic | Municipal GDP |
| CEMPRE | Central register of companies |
| PAM | Agricultural production |
| PEVS | Forestry and extraction |
| PPM | Livestock farming |
| SIGMINE | Mining |
| ANEEL | Energy development |
| EPE | Energy consumption |
| Legal Amazon Municipalities | Dataset with brazilian cities and whether they belong to the Legal Amazon |
| The ‘googledrive’ package | Troubleshooting and information for downloads from Google Drive |
Environmental Data
PRODES
The PRODES project uses satellites to monitor deforestation in Brazil’s Legal Amazon. The raw data reports total and incremental (year-by-year) low-cut deforested area at the municipality level, going back to the year 2000.
Data is collected based on the PRODES-year, which starts at August 1st and ends on July 31st. Accordingly, 2018 deforestation data covers the period from 01/08/2017 to 31/07/2018.
INPE’s most recent data is now published at TerraBrasilis. We have refrained from updating to this new source, as it only contains detailed spatial data, rather than agregated, municipality-level data.
Options:
dataset:
"deforestation"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.
language: you can choose between Portuguese
("pt")and English("eng")
Examples:
# Download treated data (raw_data = FALSE)
# in portuguese (language = 'pt').
data <- load_prodes(
raw_data = FALSE,
language = "pt"
)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:
- dataset: there are two options:
"deter_amz"for data from the Amazon"deter_cerrado"for data from the Cerrado
- 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.
- 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
)DEGRAD
The DEGRAD project uses satellites to monitor degradation of forest areas. Raw data is available as simple features (sf) objects, read from shapefiles. The project was substituted in 2016 by DETER-B. Accordingly, data is available from 2007 up to 2016.
Original documentation for this data is very scarce, users beware. Some things to keep in mind are:
Event data is organized through yearly editions (DEGRAD 2007-2016). Inside a given edition however, there may be data from different years (events that happened in 2015 inside DEGRAD 2016 for example).
This package provides degradation data with municipality identification.
It does this by intersecting DEGRAD geometries with IBGE’s municipality
geometries from the year 2019. CRS metadata however is missing from the
original data source. A best effort approach is used and a CRS is
assumed
(proj4string: "+proj=longlat +ellps=aust_SA +towgs84=-66.8700,4.3700,-38.5200,0.0,0.0,0.0,0.0 +no_defs").
Options:
dataset:
"degrad"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.
time_period: picks the years for which the data will be downloaded
language: you can choose between Portuguese
("pt")and English("eng")
Examples:
# download treated data (raw_data = TRUE) related to forest degradation
# from 2010 to 2012 (time_period = 2010:2012).
data <- load_degrad(
dataset = "degrad",
raw_data = FALSE,
time_period = 2010:2012
)Imazon
Loads data categorizing each municipality by the level of deforestation pressure it faces. The categories used by Imazon have three levels, ranging from 0 to 3.
Options:
dataset:
"imazon_shp"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.
language: you can choose between Portuguese
("pt")and English("eng")
Examples:
# Download treated data
data <- load_imazon(raw_data = FALSE)