gedidb.GEDIProcessor#
- class gedidb.GEDIProcessor(geometry: GeoDataFrame | str = None, start_date: str = None, end_date: str = None, config_file: str = None, earth_data_dir: str = None, credentials: dict | None = None, parallel_engine: object | None = None, log_dir: str | None = None)[source]#
GEDIProcessor class is responsible for processing GEDI granules, handling metadata, and writing data into the database.
- __init__(geometry: GeoDataFrame | str = None, start_date: str = None, end_date: str = None, config_file: str = None, earth_data_dir: str = None, credentials: dict | None = None, parallel_engine: object | None = None, log_dir: str | None = None)[source]#
Initializes the GEDIProcessor.
Parameters:#
- config_filestr
Path to the configuration YAML file.
- earth_data_dirstr
Directory containing EarthData credentials.
- credentialsdict, optional
Credentials for accessing the database.
- parallel_engineobject, optional
A parallelization engine such as
dask.distributed.Clientorconcurrent.futures.Executor. Defaults to single-threaded.- geometrygeopandas.GeoDataFrame, optional
Geometry defining the region of interest.
- log_dirstr, optional
Directory to store logs.
Methods
__init__([geometry, start_date, end_date, ...])Initializes the GEDIProcessor.
close()Close the parallelization engine if applicable.
compute([consolidate, consolidation_type])Main method to download and process GEDI granules.
process_single_granule(granule_id, ...)Processes a single granule by downloading and processing sequentially.