libera_utils.footprint_matching.aggregation.check_coverage#
- libera_utils.footprint_matching.aggregation.check_coverage(coverage: float, *, accept_threshold: float = 0.75, partial_threshold: float = 0.95) tuple[bool, bool]#
Apply the CERES 75%/95% coverage rule.
- Parameters:
coverage (float) – Fraction in
[0, 1]of the PSF’s in-contour energy backed by usable data, as the weigher reports it (WeightField.coverage).accept_threshold (float, optional) – Lower bound for acceptance (default 0.75) and for full (non-partial) coverage (default 0.95).
partial_threshold (float, optional) – Lower bound for acceptance (default 0.75) and for full (non-partial) coverage (default 0.95).
- Returns:
(accept, partial).acceptisFalsebelowaccept_threshold;partialisTruein the[accept_threshold, partial_threshold)band.- Return type: