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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a942e3158e439e8fd7748a5c051246d054e01b0c13e0ea1b6ac3ef677f71581b |
|
MD5 | a1f41be8b02fad23484325beb80d11ac |
|
BLAKE2b-256 | 49ac0837ae4b76f762aea7d515f8bcf43d67637f32477d1589461348f274abaf |
Close
Hashes for hestia_earth_earth_engine-0.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c00b42c49e98f1ab8bd4c3c3cf08d3e9c737fa83e6846a5c1a644d7b1e676bd8 |
|
MD5 | 10d5694152d5c9cc7b1dfa5e5c8867fd |
|
BLAKE2b-256 | d8f652580e1fc8a4674b194d4bb98a2064be0a8420e54ca116cb65b84375e702 |