libera_utils.footprint_matching.aggregation.weighted_mean#

libera_utils.footprint_matching.aggregation.weighted_mean(values: ndarray, weights: ndarray, **_: Any) → dict[str, float]#

PSF-weighted mean xbar = sum(w*x)/sum(w) (CERES ATBD Eq. 4.4-17).

Used for continuous surface variables (winds, BRDF kernels, cloud-top height…). Returns {"mean": NaN} when no cell is usable.