medianEllipticityResidualsFromCat

lsst.validate.drp.util.medianEllipticityResidualsFromCat(cat)

Compute the median ellipticty residuals from a catalog of measurements.

This function is used as an aggregate function to extract just declination from lsst.validate.drp.matchreduce.build_matched_dataset

The intent is to use this for a set of measurements of the same source but that’s neither enforced nor required.

Parameters:
cat – collection with a .get method

for ‘e1’, ‘e2’ that returns radians.

Returns:
float, float

median real ellipticity residual, median imaginary ellipticity residual