gedidb.GEDIDatabase#
- class gedidb.GEDIDatabase(config: Dict[str, Any], credentials: dict | None = None)[source]#
A class to manage the creation and operation of global TileDB arrays for GEDI data storage. This class is configured via an external configuration, allowing flexible schema definitions and metadata handling.
- __init__(config: Dict[str, Any], credentials: dict | None = None)[source]#
Initialize GEDIDatabase with configuration, supporting both S3 and local storage.
Parameters:#
- configdict
Configuration dictionary.
Methods
__init__(config[, credentials])Initialize GEDIDatabase with configuration, supporting both S3 and local storage.
check_granules_status(granule_ids)Check the status of multiple granules by accessing all metadata at once.
consolidate_fragments([consolidation_type, ...])Consolidate fragments, metadata, and commit logs for the array to optimize storage and access.
mark_granule_as_processed(granule_key)Mark a granule as processed by storing its status and processing date in TileDB metadata.
spatial_chunking(dataset[, chunk_size])Splits a dataset into spatial chunks (quadrants) based on latitude and longitude.
write_granule(granule_data)Write the parsed GEDI granule data to the global TileDB arrays, filtering out shots that are outside the spatial domain.