auth Module¶
Authentication module for Google Earth Engine
authenticate_gee(auth_mode='notebook')
¶
Authenticate with Google Earth Engine.
Parameters:¶
auth_mode : str, optional Authentication mode: 'notebook', 'gcloud', or 'service_account' Default is 'notebook'
Examples:¶
import deepgee deepgee.authenticate_gee() deepgee.initialize_gee(project='your-project-id')
Source code in deepgee\auth.py
check_gee_status()
¶
Check if GEE is properly initialized.
Returns:¶
dict : Status information
Examples:¶
import deepgee status = deepgee.auth.check_gee_status() print(status)
Source code in deepgee\auth.py
get_project_info()
¶
Get information about the current GEE project.
Returns:¶
dict : Project information
Source code in deepgee\auth.py
initialize_gee(project=None, service_account=None, key_file=None, opt_url=None)
¶
Initialize Google Earth Engine.
Parameters:¶
project : str, optional GEE project ID (required for most operations) service_account : str, optional Service account email for authentication key_file : str, optional Path to service account key file (JSON) opt_url : str, optional Optional URL for high-volume endpoint
Examples:¶
Standard initialization¶
import deepgee deepgee.initialize_gee(project='your-project-id')
Service account initialization¶
deepgee.initialize_gee( ... project='your-project-id', ... service_account='your-sa@project.iam.gserviceaccount.com', ... key_file='path/to/key.json' ... )