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
    }
  ]
}
run(data)
assert data == [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.4.7.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

hestia_earth_earth_engine-0.4.7-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file hestia-earth-earth-engine-0.4.7.tar.gz.

File metadata

File hashes

Hashes for hestia-earth-earth-engine-0.4.7.tar.gz
Algorithm Hash digest
SHA256 6beb468f36e93488ae92ec67e4f9f6593705a12456043eea09ad552f1eb34a5c
MD5 bf80ceca495b509c526fca807d705dee
BLAKE2b-256 7d61a1b55bdb4e47e8b34d068624b985c7a88032cf1745b2a0cb86207035147d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hestia_earth_earth_engine-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 455955fba38fce960a785f21eb8adf4c6f74fdd9b39614fb788ba9294b9174f2
MD5 364c0ae186947dc9cfb70c77798fd138
BLAKE2b-256 b7652d6a78473e2d6e30e9184aea798755a2b85e45781e3ddcd5d1717e3a1f71

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