Skip to main content

Advanced landscape metrics analysis using Google Earth Engine

Project description

🌍 GeeAdvance

Python Version License Documentation

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:

  1. Getting Started with GEE Authentication
  2. Loading and Visualizing GEE Datasets
  3. Calculating Area and Edge Metrics
  4. Shape and Core Metrics
  5. Aggregation and Diversity Metrics
  6. Exporting Data and Results
  7. 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

🙏 Acknowledgments

📚 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


Download files

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

Source Distribution

geeadvance-0.1.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

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

geeadvance-0.1.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

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

Hashes for geeadvance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 283f45ecd002f3d831487d492f515d8bd2f383d979675515939f62c58cbcadc2
MD5 c542879b24bd68131003360b2826838a
BLAKE2b-256 ba376f41fdf964053af2e45c342c1fe31782b348cbc29d036b0e3f98c8c1ba08

See more details on using hashes here.

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

Hashes for geeadvance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a08c8cde139b88bf668c8fe1f56711bd31e34954e34af0b8bf2ba8a539436fbf
MD5 319b2b32deba031596a4c6cb1b4402fd
BLAKE2b-256 fd6816edd78585ffc1b7c15aa98e245d48ba17de524a86ced13457c6098ae6d3

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