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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a432e227926ff0ce2c8a77ea99b0e794ec578283d5944f69229d6a8719532aad |
|
MD5 | 09f70ed7840033d5a6f460942a61c33a |
|
BLAKE2b-256 | 6848fd58e5c933edfd875a001ebd048f578b5abe61c8424d89b73f12ae936d27 |
Close
Hashes for hestia_earth_earth_engine-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c51d69eb15a916ac01f98c8952a3a0b42abd5c30590fe13e908f83afd2d65582 |
|
MD5 | 4216884fce1ce8e3bb99bfd00a5db183 |
|
BLAKE2b-256 | 8c6211c9118031c5afc1b80e4d0a90c72af2b05bbdbecc93e912d9d53f3db3e1 |