Skip to content

Bulk Analyses Common

Module: spectralbridge.bulk.analyses.common.

Shared projected-query helpers for bulk analyses.

API glossary ยท Workflow / scientific context

Signatures and documentation below are collected from the current source. Advanced objects are not newly declared stable by inclusion here.

Audience: advanced.

PairSpec dataclass

PairSpec(translation_pair: str, source_sensor: str, target_sensor: str, band_index: int, source_band_index: int, target_band_index: int, x_column: str, y_column: str, error_columns: tuple[str, ...])

Describe one registered source/target band pair available in a bulk observation view.

micasense_sensor property

micasense_sensor: str

Compatibility alias for the former source-sensor field.

landsat_sensor property

landsat_sensor: str

Compatibility alias for the former target-sensor field.

Audience: advanced.

band_map

band_map(columns: Sequence[str]) -> dict[str, set[int]]

Map sensor-labelled *_band_<integer> columns to their available band indices.

Audience: advanced.

available_pair_specs

available_pair_specs(con: DuckDBPyConnection, translation_pairs: Sequence[TranslationPair] | None = None) -> list[PairSpec]

Select registered band relationships whose source and target columns both exist.

Audience: advanced.

valid_pair_cte

valid_pair_cte(spec: PairSpec, minimum_reflectance: float) -> str

Projected valid-pair CTE shared by all regression levels.

Audience: advanced.

pair_literals

pair_literals(spec: PairSpec) -> str

Build SQL literal columns identifying one registered band relationship.