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.5.2.tar.gz (12.8 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.5.2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hestia_earth_earth_engine-0.5.2.tar.gz
Algorithm Hash digest
SHA256 4e68312fd47e9e645c5ea9a194117afbad17df72e6fac70e16f95866d67c0255
MD5 45a84b39eae7f3c5e89988d208f705c9
BLAKE2b-256 bfcea3b96ff534717a7d71e51867d3d88d1b3fa763d102064fe41a5dc75103c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hestia_earth_earth_engine-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab8610406b56126a4ac79a29d426717d64da867930cf2de0a86c80cbf41c317b
MD5 0953c243bf11a29293878b99b8eabcc0
BLAKE2b-256 4b199044c190455e261921e9627fadb71ecd37564a1f164ab9e975002f93c1cf

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