Advanced landscape metrics analysis using Google Earth Engine
Project description
🌍 GeeAdvance
GeeAdvance is a Python package for advanced landscape metrics analysis using Google Earth Engine (GEE). It implements landscape ecology metrics similar to the R landscapemetrics package, enabling comprehensive spatial pattern analysis of GEE-derived imagery and datasets.
🚀 Features
- 🔐 Standard GEE Authentication - Seamless integration with Google Earth Engine
- 📊 Comprehensive Landscape Metrics - Implementation of metrics from landscapemetrics
- Area & Edge Metrics
- Shape Metrics
- Core Area Metrics
- Aggregation Metrics
- Diversity Metrics
- 🗺️ GEE Integration - Direct analysis of GEE imagery and datasets
- 📥 Export Capabilities - Download results as GeoTIFF and other formats
- 📚 Beginner-Friendly - Extensive tutorials and documentation
📦 Installation
pip install geeadvance
Or install from source:
git clone https://github.com/pulakeshpradhan/geeadvance.git
cd geeadvance
pip install -e .
🔑 Quick Start
1. Authenticate with Google Earth Engine
import ee
import geeadvance
# Standard GEE authentication
ee.Authenticate()
ee.Initialize(project='your-project-id')
2. Calculate Landscape Metrics
# Load a land cover dataset
dataset = geeadvance.load_dataset('MODIS/006/MCD12Q1',
start_date='2020-01-01',
end_date='2020-12-31')
# Define region of interest
roi = ee.Geometry.Rectangle([77.0, 20.0, 78.0, 21.0])
# Calculate landscape metrics
metrics = geeadvance.calculate_metrics(dataset, roi, scale=500)
# Get specific metrics
area_metrics = geeadvance.area_metrics(dataset, roi)
shape_metrics = geeadvance.shape_metrics(dataset, roi)
diversity_metrics = geeadvance.diversity_metrics(dataset, roi)
print(metrics)
3. Export Results
# Export as GeoTIFF
geeadvance.export_tif(dataset, roi, 'output_landcover.tif')
# Export metrics as CSV
metrics.to_csv('landscape_metrics.csv')
📖 Documentation
Full documentation is available at: https://pulakeshpradhan.github.io/geeadvance/
🎓 Tutorials
Check out our beginner-friendly tutorials:
- Getting Started with GEE Authentication
- Loading and Visualizing GEE Datasets
- Calculating Area and Edge Metrics
- Shape and Core Metrics
- Aggregation and Diversity Metrics
- Exporting Data and Results
- Complete Workflow Example
🌟 Implemented Metrics
Area & Edge Metrics
- CA - Class Area
- PLAND - Percentage of Landscape
- TE - Total Edge
- ED - Edge Density
Shape Metrics
- SHAPE - Shape Index
- FRAC - Fractal Dimension
- PARA - Perimeter-Area Ratio
- CIRCLE - Related Circumscribing Circle
Core Area Metrics
- TCA - Total Core Area
- CPLAND - Core Area Percentage of Landscape
- CAI - Core Area Index
Aggregation Metrics
- AI - Aggregation Index
- CLUMPY - Clumpiness Index
- COHESION - Patch Cohesion Index
- DIVISION - Landscape Division Index
Diversity Metrics
- SHDI - Shannon's Diversity Index
- SHEI - Shannon's Evenness Index
- SIDI - Simpson's Diversity Index
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
👤 Author
Pulakesh Pradhan
- Email: pulakesh.mid@gmail.com
- GitHub: @pulakeshpradhan
🙏 Acknowledgments
- Inspired by the R landscapemetrics package
- Built on Google Earth Engine
📚 Citation
If you use this package in your research, please cite:
@software{geeadvance2026,
author = {Pradhan, Pulakesh},
title = {GeeAdvance: Landscape Metrics for Google Earth Engine},
year = {2026},
url = {https://github.com/pulakeshpradhan/geeadvance}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geeadvance-0.1.0.tar.gz.
File metadata
- Download URL: geeadvance-0.1.0.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
283f45ecd002f3d831487d492f515d8bd2f383d979675515939f62c58cbcadc2
|
|
| MD5 |
c542879b24bd68131003360b2826838a
|
|
| BLAKE2b-256 |
ba376f41fdf964053af2e45c342c1fe31782b348cbc29d036b0e3f98c8c1ba08
|
File details
Details for the file geeadvance-0.1.0-py3-none-any.whl.
File metadata
- Download URL: geeadvance-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a08c8cde139b88bf668c8fe1f56711bd31e34954e34af0b8bf2ba8a539436fbf
|
|
| MD5 |
319b2b32deba031596a4c6cb1b4402fd
|
|
| BLAKE2b-256 |
fd6816edd78585ffc1b7c15aa98e245d48ba17de524a86ced13457c6098ae6d3
|