libera_utils.footprint_matching.weighting.WeightField#

class libera_utils.footprint_matching.weighting.WeightField(weights: ndarray, total_energy: float, max_radius_km: float, coverage: float)#

Bases: object

Per-sample PSF weights and coverage for one footprint and one source.

Variables:
  • weights (np.ndarray) – 1-D array aligned to the sample set’s lats / lons. Each entry is the PSF weight of that sample; samples outside the PSF contour are 0.

  • total_energy (float) – Sum of weights over every sample in the set.

  • max_radius_km (float) – Ground radius (km) at which the kernel was truncated, for diagnostics.

  • coverage (float) – Fraction in [0, 1] of the PSF’s in-contour energy backed by a finite sample, measured on the weigher’s reference grid (see the module docstring).

__init__(weights: ndarray, total_energy: float, max_radius_km: float, coverage: float) → None#