Skip to main content

A collection of tools to work with Google Earth Engine Python API

Project description

License: MIT conventional commit Black badge prettier badge pre-commit PyPI version Conda-forge version build Test Coverage Documentation Status

Google Earth Engine tools

https://raw.githubusercontent.com/gee-community/geetools/main/docs/_static/logo.svg

Google Earth Engine is a cloud-based service for geospatial processing of vector and raster data. The Earth Engine platform has a JavaScript and a Python API with different methods to process geospatial objects.

The geetools package extends the Google Earth Engine Python API with pre-processing and processing tools for the most used satellite platforms by adding utility methods for different Earth Engine Objects that are friendly with the Python method chaining using the geetools namespace.

There is JavaScript module that you can import from the code editor that has similar functions (not exactly the same) and it’s available here.

Installation

pip install geetools

Why using it ?

New utility methods and constructors are added to most of the GEE classes. They can be simple wrapper for repetitive tasks, complex algorithm or mandatory preprocessing steps. The goal is to make the code more fluid and easy to read for researchers, students and analysts.

The package design is mostly performing server-side computation making it also very friendly with commercial users of Earth Engine.

This small example wrapping of the excellent ee_extra package functionalities shows how to preprocess sentinel 2 data in 5 lines of code:

import ee
import geetools #noqa: F401
import pygaul # another gee-community package to access FAO GAUl 2015 dataset

# we assume you are already authenticated to GEE
ee.Initialize.geetools.from_account("toto") # yes we also support multi users

amazonas = pygaul.Items(name="Amazonas").centroid()

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

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

geetools-1.2.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

geetools-1.2.0-py3-none-any.whl (98.7 kB view details)

Uploaded Python 3

File details

Details for the file geetools-1.2.0.tar.gz.

File metadata

  • Download URL: geetools-1.2.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for geetools-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a436f6396a244eedadca155d7ec913cb2f8cb4c856e2be034b41ebce87c9849b
MD5 5ff8205b48e57b431ce66973d7f5de63
BLAKE2b-256 bb66523aaea91292c51c57c71bc95f2f507d2b8554b150cffa68baae6a162d56

See more details on using hashes here.

File details

Details for the file geetools-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: geetools-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 98.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for geetools-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67ca45baef728aba6c6416ef3e9483acdcab6b598f7271d5c715fe58888c7d91
MD5 a5a97a42e3f6d94565294fde6e37bac2
BLAKE2b-256 85773ea38b1261770d3c541fb9bf9fc4e112b74b712e9f94a592ea0dbc30c59b

See more details on using hashes here.

Supported by

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