Skip to main content

A Python package that extends Google Earth Engine

Project description

https://img.shields.io/pypi/v/eemont.svg https://img.shields.io/badge/License-MIT-blue.svg https://img.shields.io/badge/Documentation-0.1.7-green.svg https://img.shields.io/badge/Donate-buy%20me%20a%20coffee-yellow.svg https://static.pepy.tech/personalized-badge/eemont?period=total&units=international_system&left_color=grey&right_color=lightgrey&left_text=Downloads

The eemont package extends Google Earth Engine with pre-processing and processing tools for the most used satellite platforms.

How does it work?

Earth Engine classes, such as ee.Image and ee.ImageCollection, are extended with eemont. New methods are added to these classes to make the code more fluid.

Look at this simple example where a Sentinel-2 collection is pre-processed and processed in just one step:

import ee, eemont

ee.Authenticate()
ee.Initialize()

point = ee.Geometry.Point([-76.21, 3.45])

S2 = (ee.ImageCollection('COPERNICUS/S2_SR')
    .filterBounds(point)
    .closest('2020-10-15') # Extended (pre-processing)
    .maskClouds(prob = 70) # Extended (pre-processing)
    .scale() # Extended (pre-processing)
    .index(['NDVI','NDWI','BAIS2'])) # Extended (processing)

And just like that, the collection was pre-processed and processed!

Installation

Install the latest eemont version from PyPI by running:

pip install eemont

Features

The following features are extended through eemont:

point = ee.Geometry.Point([-76.21, 3.45]) # Example ROI
  • Overloaded operators (+, -, *, /, //, %, **, <<, >>, &, |, <, <=, ==, !=, >, >=, -, ~):

S2 = (ee.ImageCollection('COPERNICUS/S2_SR')
    .filterBounds(point)
    .sort('CLOUDY_PIXEL_PERCENTAGE')
    .first()
    .maskClouds()
    .scale())

N = S2.select('B8')
R = S2.select('B4')
B = S2.select('B2')

EVI = 2.5 * (N - R) / (N + 6.0 * R - 7.5 * B + 1.0) # Overloaded operators
  • Clouds and shadows masking:

S2 = (ee.ImageCollection('COPERNICUS/S2_SR')
    .maskClouds(prob = 65, cdi = -0.5, buffer = 300) # Clouds and shadows masking
    .first())
  • Image scaling:

MOD13Q1 = ee.ImageCollection('MODIS/006/MOD13Q1').scale() # Image scaling
  • Spectral indices computation (vegetation, burn, water and snow indices):

L8 = (ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
    .filterBounds(point)
    .maskClouds()
    .scale()
    .index(['GNDVI','NDWI','BAI','NDSI'])) # Indices computation
  • Closest image to a specific date:

S5NO2 = (ee.ImageCollection('COPERNICUS/S5P/OFFL/L3_NO2')
    .filterBounds(point)
    .closest('2020-10-15')) # Closest image to a date

Supported Platforms

The Supported Platforms for each method can be found in the eemont documentation.

  • Masking clouds and shadows supports Sentinel Missions (Sentinel-2 SR and Sentinel-3), Landsat Missions (SR products) and some MODIS Products. Check all details in User Guide > Masking Clouds and Shadows > Supported Platforms.

  • Image scaling supports Sentinel Missions (Sentinel-2 and Sentinel-3), Landsat Missions and most MODIS Products. Check all details in User Guide > Image Scaling > Supported Platforms.

  • Spectral indices computation supports Sentinel-2 and Landsat Missions. Check all details in User Guide > Spectral Indices > Supported Platforms.

  • Getting the closest image to a specific date supports all image collections with the system:time_start property.

License

The project is licensed under the MIT license.

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

eemont-0.1.7.tar.gz (14.2 kB view details)

Uploaded Source

File details

Details for the file eemont-0.1.7.tar.gz.

File metadata

  • Download URL: eemont-0.1.7.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for eemont-0.1.7.tar.gz
Algorithm Hash digest
SHA256 e07b1dfff0e29598676dc86c72f0840fabec4978d5a3e9dbb2ff5c0b12db37cd
MD5 383302b3e8f76a6ce5c82b949f4b4ab5
BLAKE2b-256 f589e054eded34d4f81aec04e932c3328234d22ceb3af5d589f6b7c2d1d98fd5

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