Hestia's earth engine.
Project description
Hestia Earth Engine
Hestia's utilities to make queries to Earth Engine.
Getting Started
- Sign up for a Google Cloud Account
- Enable the Earth Engine API
- Create a Service Account with Earth Engine access
- Set the service account JSON credentials in the following file:
ee-credentials.json
- Set the following environment variable:
# path to the ee-credentials.json file saved at previous step
EARTH_ENGINE_KEY_FILE=./ee-credentials.json
Install
- Install Python
3
(we recommend using Python3.6
minimum) - 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
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
Built Distribution
Close
Hashes for hestia-earth-earth-engine-0.4.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65769c57e8891ae96e79576f9c9646e3d7d7f3bdfaaa677e0371eac2c3cf1e6f |
|
MD5 | 67e45d157b0e0b697716e7be135fa986 |
|
BLAKE2b-256 | 7e23277ab5db650e9ac5be62e2adab649b122b06810480ddc629394651320c7e |
Close
Hashes for hestia_earth_earth_engine-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94d5d3d7da6fe11e9f847ff661eb4db6c0379e940b09bbd980ad40ecd00ab22e |
|
MD5 | a738427c65b9fdafc6ddc44a6fd40fe3 |
|
BLAKE2b-256 | 9fb3bf0410158819e9f29de0a04625ea18c16016202b5f46110243914f0e4ff5 |