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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 726c9698575f61b531d74cb7e871ab5402735da7b1fdcfbf956cfb4e82e70620 |
|
MD5 | bf93c180b4ef4921a6218a4e57a39c69 |
|
BLAKE2b-256 | 0f2549953926242ceae06edb43175c46394d422526d4b053677582e45c6dde20 |
Close
Hashes for hestia_earth_earth_engine-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a26175264bce22c047d276050cfa5d47ac072538647e12012207c7a375c6724b |
|
MD5 | 537fb89542354f256588d1b6bf65cc80 |
|
BLAKE2b-256 | a70b65b5c8f77418ed34dc3dcd76f0846f74b4deb2e5d14ce701f4759ea500bd |