blurClipZkTable#

lsst.ts.wep.task.blurClipZkTable(zkTable)#

Sigma clip donuts whose blur (fwhm) is an outlier, then re-average.

Rows flagged as outliers have used set False and the average row is recomputed over the survivors with an unweighted mean. Requires meta["estimatorInfo"]["fwhm"], one entry per non-average row, and exactly one leading average row: the fwhm list is indexed with useIdx - 1 to account for it.

Note this deliberately recomputes the average with CombineZernikesMeanTask rather than whatever combine task produced the incoming average, since flipping used invalidates it.

Parameters:

zkTable (astropy.table.QTable) – Zernike table. Modified in place, and also returned via the copy the combine step makes.

Returns:

Zernike table where donuts with outlier donut blur values have been changed to false and the average recomputed.

Return type:

astropy.table.QTable