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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec7d54d50161a4435e7749cb0ce568d6a1ea0cfcb79d8ba0d53ac058cd121d1 |
|
MD5 | e269ddbd4066c5739039f8a983d0f83a |
|
BLAKE2b-256 | 50dfbd2ebf2402e82c91bb23629704c08b2dea8d3d3f849ddc612d27d8f54f37 |
Close
Hashes for hestia_earth_earth_engine-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a68ad736006d1a6038b9be9b58f1b4c754c5297ee1d368a792e3c50e1ce3af |
|
MD5 | 7656c5d1b54e7516d2dc3ceebd57786d |
|
BLAKE2b-256 | 69e7d7dec8ebb316ec39266adfd499f2eb5d2496b16ca985d411db8dfe7e01c8 |