Skip to main content

preprocessing.get_band_kind

preprocessing.get_band_kind(
    band_name,
    *,
    mission_name=None,
    mission_profiles=None,
    override=None,
)

Three-tier lookup for a band’s kind.

Priority (highest first): 1. override[band_name] – a user-supplied per-band dict 2. mission_profiles[mission_name]["band_meta"][bare_band]["kind"] 3. :func:infer_band_kind

When mission_name is not given and band_name carries a "<Mission>_..." prefix that matches a key in mission_profiles (e.g. fused cubes write "Sentinel-2_B04"), the mission is auto-resolved.