ESDS-Leipzig / cubo

On-Demand Earth System Data Cubes (ESDCs) in Python
https://cubo.readthedocs.io/en/latest/
MIT License
164 stars 9 forks source link

EE initialization #12

Closed ryali93 closed 1 month ago

ryali93 commented 8 months ago

If you do not have a project registered in gcloud, it is better to remove this and leave it outside, I think the initialization should depend on the user https://github.com/ESDS-Leipzig/cubo/blob/21a5f5acd83f49152e1c70acc90005016510c652/cubo/cubo.py#L148

khdlr commented 2 months ago

In newer versions of earthengine-api, this actually leads to an error message: ee.Initialize: no project found. Call with project= or see http://goo.gle/ee-auth

This even persists when the user correctly initializes with ee.Initialize(project="..."), as cubo re-initializes ee without any valid project. Removing the line mentioned by @ryali93 fixes this issue.

davemlz commented 1 month ago

This is true. Working on it ;)

davemlz commented 1 month ago

Done. This will be available in the next version or by installing directly from github ;)

Cheers!