src / pysoilmap / ee.py

initialize

initialize()[source]

Initialize Google Earth Engine.

Authenticate if necessary, otherwise reuse existing credentials.

Logs in using a Service Account if etiher of the environment variables EE_KEY_DATA or EE_KEY_FILE is set.

See [1] for infos on setting up a service account.

[1]: https://developers.google.com/earth-engine/guides/service_account