Skip to main content

Hestia's earth engine.

Project description

Hestia Earth Engine

Pipeline Status Coverage Report

Hestia's utilities to make queries to Earth Engine.

Getting Started

  1. Sign up for a Google Cloud Account
  2. Enable the Earth Engine API
  3. Create a Service Account with Earth Engine access
  4. Set the service account JSON credentials in the following file: ee-credentials.json
  5. Set the following environment variable:
# path to the ee-credentials.json file saved at previous step
EARTH_ENGINE_KEY_FILE=./ee-credentials.json

Install

  1. Install Python 3 (we recommend using Python 3.6 minimum)
  2. Install the module:
pip install hestia_earth.earth_engine

Usage

from hestia_earth.earth_engine import init_gee, run

# call this only once during a session
init_gee()
# fetch sand content for a specific location
data = {
  "ee_type": "raster",
  "collections": [
    {
      "collection": "users/hestiaplatform/T_SAND",
      "fields": "first"
    }
  ],
  "coordinates": [
    {
      "latitude": -11.77,
      "longitude": -45.7689
    }
  ]
}
result = run(data)
assert result == [81]

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

hestia_earth_earth_engine-0.6.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

hestia_earth_earth_engine-0.6.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file hestia_earth_earth_engine-0.6.0.tar.gz.

File metadata

File hashes

Hashes for hestia_earth_earth_engine-0.6.0.tar.gz
Algorithm Hash digest
SHA256 b36c227e24c7adf9188307c640a655470b8126af3ec00e872e8264bd8e69cb70
MD5 716e78eba5d0ee23d4983ca91db73712
BLAKE2b-256 17f5244799faf24b906d1eb75400bae11b6d93b159025c50301d2b0545c855d7

See more details on using hashes here.

File details

Details for the file hestia_earth_earth_engine-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hestia_earth_earth_engine-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a58a8b95fc77f92ded2e9d4576add12aa8fdb4d5b9c1cf0ec7e9c4d5b7c08039
MD5 431b8368e337edb4df1ab3333c26be59
BLAKE2b-256 7986c78405ad9d6a145fc0eae6bfccd62cb5e34a6377d8013a031430ed865d43

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