panache.runner#

Functions

compute_global_colour_limits(scenes)

Compute vmin/vmax for the colourbar from the full input dataset.

compute_global_threshold(scenes, quantile)

Compute the SPM quantile threshold and colourbar limits from the full input dataset.

run_batch(config)

panache.runner.compute_global_colour_limits(scenes: dict[str, DataArray]) → tuple[float, float][source]#

Compute vmin/vmax for the colourbar from the full input dataset.

Returns (vmin, vmax) where vmin >= 0.1 and vmax >= 1.0, derived from the 5th and 95th percentiles of all finite positive values across all loaded scenes. scenes holds every already-loaded scene for the batch; no file I/O happens here.

panache.runner.compute_global_threshold(scenes: dict[str, DataArray], quantile: float) → tuple[float, tuple[float, float]][source]#

Compute the SPM quantile threshold and colourbar limits from the full input dataset.

scenes holds every already-loaded scene for the batch; no file I/O happens here.

panache.runner.run_batch(config: RunConfig) → Path[source]#