averageDecFromCat¶
-
lsst.validate.drp.util.
averageDecFromCat
(cat)¶ Compute the average declination 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 actual computation involves both RA and Dec.
The intent is to use this for a set of measurements of the same source but that’s neither enforced nor required.
- Parameters
- catcollection
Object with .get method for ‘coord_ra’, ‘coord_dec’ that returns radians.
- Returns
- dec_mean
float
Mean Dec in radians.
- dec_mean