libera_utils.footprint_matching.readers.registry#

Reader plugin registry for the footprint matching reader plugin system.

Concrete AncillaryReader subclasses auto-register in this registry via the __init_subclass__ hook defined in the base class. Callers should not populate _registry directly.

Usage#

Import the readers subpackage to trigger registration of all built-in readers:

import libera_utils.footprint_matching.readers  # registers all built-in readers
from libera_utils.footprint_matching.readers.registry import ReaderRegistry

cls = ReaderRegistry.get("IGBP")
reader = cls([Path("MCD12Q1.A2023001.h09v05.061.hdf")])

See also

libera_utils.footprint_matching.readers.base.AncillaryReader

Abstract base class whose __init_subclass__ performs registration.

Module Attributes

FMATCH_MODE_READERS

The readers that contribute to each shipped FMATCH product, keyed by OperationalMode.

Classes

ReaderRegistry()

Plugin registry mapping string keys to AncillaryReader subclasses.