Qa Plots¶
Module: spectralbridge.qa.plots.
Deterministic, legible plots used by stage QA reports.
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.
qa_plot_contract ¶
qa_plot_contract() -> dict[str, Any]
Return the machine-readable fixed display contract for QA figures.
Audience: advanced.
format_location_label ¶
format_location_label(flightline_id: str) -> str
Return a compact location/date label while preserving fallback identity.
Audience: advanced.
spatial_plot_context ¶
spatial_plot_context(header: dict[str, Any], source_shape: tuple[int, int, int]) -> dict[str, Any]
Derive a projected plotting extent from standard ENVI map metadata.
Audience: advanced.
render_envi_overview ¶
render_envi_overview(cube: ndarray, wavelengths: ndarray, output_path: Path, *, title: str, location_label: str, spatial_context: dict[str, Any]) -> Path
Render spatial support and spectral distribution from an actual ENVI cube.
Audience: advanced.
render_correction_overview ¶
render_correction_overview(raw_cube: ndarray, corrected_cube: ndarray, wavelengths: ndarray, seam_before: dict[str, Any] | None, seam_after: dict[str, Any] | None, output_path: Path, *, location_label: str, spatial_context: dict[str, Any]) -> Path
Render before/after/difference maps with matched and zero-centered scales.
Audience: advanced.
render_artifact_inventory ¶
render_artifact_inventory(artifacts: list[dict[str, Any]], output_path: Path, *, title: str, location_label: str) -> Path
Render a compact inventory of the files produced by a stage.
Audience: advanced.
render_correction_parameters ¶
render_correction_parameters(model: dict[str, Any], geometry: dict[str, Any], wavelengths: ndarray, output_path: Path, *, location_label: str) -> Path
Plot persisted BRDF coefficients and geometry without changing them.
Audience: advanced.
render_brightness_diagnostics ¶
render_brightness_diagnostics(before: ndarray, after: ndarray, metrics: dict[str, Any], output_path: Path, *, product_label: str, location_label: str) -> Path
Render the Python equivalent of the historical coefficient QMD plots.
Audience: advanced.
render_parquet_overview ¶
render_parquet_overview(parquet_metrics: dict[str, Any], output_path: Path, *, location_label: str) -> Path
Render extraction and merge structure from Parquet metadata.