Skip to content

Qa Plots

Module: spectralbridge.qa_plots.

Utilities for rendering QA panels with paired metrics JSON.

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.

render_drone_panel

render_drone_panel(*, raw_path: Path, corrected_path: Path, output_png: Path, band_map: dict[str, dict[str, float | int]] | None = None, polygon_path: Path | None = None, merged_path: Path | None = None, qa_summary: dict[str, Any] | None = None, save_json: bool = True, rgb_bands: str | None = None, qa_max_samples: int = _DRONE_QA_MAX_SAMPLES) -> tuple[Path, dict[str, Any]]

Render paired raw/corrected drone QA, respecting nodata and wavelength metadata, with optional JSON diagnostics.

Audience: advanced.

render_flightline_panel

render_flightline_panel(flightline_dir: Path, quick: bool = False, save_json: bool = True, n_sample: int = 100000, rgb_bands: str | None = None) -> tuple[Path, dict]

Return (png_path, metrics_dict); also writes _qa.json/_qa.pdf when requested.