Skip to content

Analyzing and visualizing deforestation data in the Legal Amazon using DETER data and Streamlit

Notifications You must be signed in to change notification settings

lucasaltm/DETER_Data_Analysis

Repository files navigation

Amazon Deforestation Monitor

The DETER system, short for "Real-Time Deforestation Detection", is a system developed by the Brazilian National Institute for Space Research (INPE), aimed at monitoring and identifying changes in forest cover within the Legal Amazon in Brazil. This system is essential for environmental enforcement and combating illegal deforestation, providing crucial data for prevention and control actions. Through high-resolution satellite images, DETER can detect areas of deforestation and forest degradation with high precision and almost in real-time. This information is made available periodically, allowing for a swift response from environmental authorities.

This project aims to analyze DETER data to monitor and visualize deforestation in the Legal Amazon. Geoprocessing and data visualization libraries were used to create charts and maps that show the extent and distribution of deforestation, facilitating the understanding of patterns and trends.

The project was developed using Streamlit and is deployed online at this link. The application is available in English and Portuguese, with the option to select the desired language in the sidebar of the page.

Project Details

  1. Data Sources:

    • DETER Alerts: Deforestation alert data provided by INPE, available in shapefile and CSV formats. Available at TerraBrasilis.
    • IBGE Regional Meshes: Geospatial data from IBGE. Available at IBGE.
  2. Libraries:

    • Pandas: Library for tabular data analysis.
    • Geopandas: Library for geospatial data manipulation.
    • Matplotlib and Seaborn: Libraries for creating static charts.
    • Folium: Library for creating interactive maps.
    • Streamlit: Platform for building interactive web applications.
  3. Project Components:

    • Jupyter Notebooks: Scripts for data processing and visualization.
      • Graphs_DETER.ipynb: Contains functions to generate charts of deforestation classes, occurrence counts, and other statistics.
      • Maps_DETER.ipynb: Contains functions to generate interactive maps showing the geographical distribution of deforestation alerts.
    • Streamlit Application: Web interface for interactively visualizing charts and maps.
      • app.py: Main script that sets up the page, downloads necessary data, loads texts in different languages, and organizes the visualization sections.
  4. Usage:
    To install the required dependencies, run:

pip install -r requirements.txt

To start the Streamlit application, run:

streamlit run app.py
  1. Visualizations:
  • Charts: The charts in this project provide an analysis of deforestation statistics, showcasing patterns and trends across different regions and time periods.
Deforestation by State Occurrence Counts by Class Deforestation by Class
Deforestation by Municipality Deforestation in Conservation Units Statistics by State
Damage Over the Years Yearly Analysis Trend Analysis
  • Maps: Interactive maps showing the location of deforestation alerts and their respective classes.
Overview of deforestation statistics for each state Overview of deforestation in cities of a selected state Overview of deforestation in conservation units
  • Streamlit Application: Serves as an interactive interface where users can explore the visualizations and analyses of deforestation data. It allows users to dynamically select different parameters and view the corresponding charts and maps.

About

Analyzing and visualizing deforestation data in the Legal Amazon using DETER data and Streamlit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published