Qa Style¶
Module: spectralbridge.qa_style.
Shared presentation conventions for drone and bulk QA.
Machine-readable sensor identifiers remain unchanged. These helpers are only for human-facing labels and the drone/bulk plotting palette; the normal NEON plotting stack intentionally does not import this module.
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.
QAPlotStyle
dataclass
¶
QAPlotStyle(minimum_font_size: float = 9.0, title_font_size: float = 13.0, panel_label_font_size: float = 12.0, figure_dpi: int = 300, manuscript_width_inches: float = 7.2)
Typography and export defaults for drone/bulk QA figures.
Audience: advanced.
sensor_display_label ¶
sensor_display_label(sensor: str, *, short: bool = False) -> str
Return a stable human label without changing the underlying sensor ID.
Audience: advanced.
wavelength_pair_label ¶
wavelength_pair_label(row: dict[str, Any], *, include_source_band: bool = False) -> str
Return a compact physical source-to-target band label.
The separate source and target indices remain visible when requested, and wavelength—not equality of sensor-local band numbers—provides the compact visual identity.
Audience: advanced.
apply_qa_axis_style ¶
apply_qa_axis_style(axis: Any) -> None
Apply the restrained drone/bulk axis treatment.
Explicitly exported constants and type aliases¶
These values describe package metadata, schemas or configuration; they are not observations from a production dataset.
| Name | Source expression |
|---|---|
SENSOR_COLORS |
{'micasense': '#0072B2', 'tm_etm': '#E69F00', 'oli_oli2': '#009E73', 'actual_landsat': '#222222', 'neon_landsat_like': '#CC79A7', 'drone_landsat_like': '#56B4E9'} |
WEIGHTING_COLORS |
{'pixel_pooled': '#0072B2', 'flightline_balanced': '#E69F00', 'site_balanced': '#009E73'} |
WEIGHTING_MARKERS |
{'pixel_pooled': 'o', 'flightline_balanced': 's', 'site_balanced': '^'} |
STATUS_COLORS |
{'normal': '#009E73', 'attention': '#E69F00', 'failure': '#D55E00', 'unavailable': '#7A7A7A'} |
DEFAULT_QA_STYLE |
QAPlotStyle() |