environmentaltools.download.initialize_earth_engine

environmentaltools.download.initialize_earth_engine(project_id: str) None[source]

Initialize Google Earth Engine with authentication.

Attempts to initialize Earth Engine with existing credentials. If that fails, triggers the authentication flow and then initializes.

Parameters:

project_id (str) – Google Earth Engine project ID.

Raises:

RuntimeError – If Earth Engine initialization fails after authentication.

Example

>>> initialize_earth_engine("my-gee-project")
Earth Engine initialized successfully