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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cad7d64acea273434df7acc2c663ba9b8380692656f3f10f037af6244f716ea |
|
MD5 | 18e972853f909ad8477c8610716a0b05 |
|
BLAKE2b-256 | de9fee58c10b1c9cffac453e6d326a0e7dc81564dd1c6d9ff771af5574012b54 |
Close
Hashes for hestia_earth_earth_engine-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be98473dbdeb322bf61e6a556448d55f1f9f979505606875bf418f926009d304 |
|
MD5 | 5a00d885dabc41358e236343ea5f0390 |
|
BLAKE2b-256 | c28e1c932033528ec5c61091ec42b53eaaf939c6f03c890eda7fa21e8d667f58 |