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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6f32cb12567ac41c18284dd5c1afade35725469e59504fb45353ed927f27045 |
|
MD5 | 8352b4b4f607968c6a4513e767b6914b |
|
BLAKE2b-256 | 0f2e862cb42e61d893d1dd25c46b98c5bee1e4ae9d2804004bc01a99649241cd |
Close
Hashes for hestia_earth_earth_engine-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0c80b8433a4aa161d6d1b802262924d3caaa84bc5be877af848c184c4af759b |
|
MD5 | 84d342fba0bd56f4165399e48365af11 |
|
BLAKE2b-256 | 6c5a3274e86bd09f3634553cc8c3363f6fd5cc22999c9a94028810a136fed044 |