Skip to main content

Python library for post-fire assessment and wildfire analysis using Google Earth Engine.

Project description

wildfire-analyser

Python project for analyzing wildfires in natural reserves.

Installation and Usage

Follow the steps below to install and test wildfire-analyser inside an isolated environment:

mkdir /tmp/test
cd /tmp/test

python3 -m venv venv
source venv/bin/activate

pip install wildfire-analyser

Required Files Before Running the Client

Before running the client, you must prepare two items:


1. Add a GeoJSON polygon

Create a folder named polygons in the project root and place your ROI polygon file inside it:

/tmp/test/
├── polygons/
│   └── your_polygon.geojson
└── venv/

An example GeoJSON file is available in the repository.


2. Create the .env file with GEE authentication data

In the project root, add a .env file containing your Google Earth Engine authentication variables.

A .env template is also available in the GitHub repository.

/tmp/test/
├── .env
├── polygons/
└── venv/

Running the Client

After adding the .env file and your GeoJSON polygon:

python3 -m wildfire_analyser.client \
  --roi polygons/aoi.geojson \
  --start-date 2023-07-31 \
  --end-date 2023-08-30 \
  --days-before-after 1

This will start the analysis process, generate the configured deliverables, and save the output files in the current directory.

Setup Instructions for Developers

  1. Clone the repository
git clone git@github.com:camargo-advanced/wildfire-analyser.git
cd wildfire-analyser
  1. Create a virtual environment
python3 -m venv venv
  1. Activate the virtual environment
source venv/bin/activate
  1. Install dependencies Make sure the virtual environment is activated, then run:
pip install -r requirements.txt
  1. Configure environment variables Copy your version of .env file to the root folder with your GEE authentication credentials. A template file .env.template is provided as an example.

  2. Run the sample client application

python3 -m wildfire_analyser.client

Useful Commands

  • Deactivate the virtual environment:
deactivate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wildfire_analyser-0.2.5.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wildfire_analyser-0.2.5-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file wildfire_analyser-0.2.5.tar.gz.

File metadata

  • Download URL: wildfire_analyser-0.2.5.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for wildfire_analyser-0.2.5.tar.gz
Algorithm Hash digest
SHA256 a478bd42ab783209dabbd5d74640b6ec3f0c3add852112d2b00722750b77e885
MD5 0a3cf39d534bd0c4ef84d752694f2d64
BLAKE2b-256 1ab5564152320983cd67ba05cb9af7bc1a674a9312fa6f257a3dd1555319ad3b

See more details on using hashes here.

File details

Details for the file wildfire_analyser-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for wildfire_analyser-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b0f9cb595e0571b82a4bbad2cb3d480b207ba240ce6a3e0768cf24d996fd989f
MD5 a1f356f77f89a7106efdf6e2d42b8299
BLAKE2b-256 379c7ba338105625a4b1338fa6911f01251fe99ab122511a22bf640b2c92f0a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page