preprocessing.infer_band_kind
preprocessing.infer_band_kind(band_name)Return the kind inferred from a band name suffix.
Tries every progressively-longer underscore suffix against the pattern table (so "MODIS_LST_LST_Day" matches the "^LST_Day$" pattern via its 2-component suffix "LST_Day"). Falls back to "spectral" when no pattern matches – that is the most common case for reflectance bands the inference table does not explicitly enumerate.
Always returns a string; never raises.