357 for cell
in cellSet.getCellList():
358 for cand
in cell.begin(
not showBadCandidates):
360 im = cand.getMaskedImage()
362 chi2 = cand.getChi2()
368 stamps.append((im,
"%d%s" %
369 (maUtils.splitId(cand.getSource().getId(),
True)[
"objId"], chi2),
374 mos = afwDisplay.utils.Mosaic()
375 disp = afwDisplay.Display(frame=frame)
376 for im, label, status
in stamps:
377 im =
type(im)(im,
True)
380 except NotImplementedError:
383 mos.append(im, label,
384 afwDisplay.GREEN
if status == afwMath.SpatialCellCandidate.GOOD
else 385 afwDisplay.YELLOW
if status == afwMath.SpatialCellCandidate.UNKNOWN
else afwDisplay.RED)
388 disp.mtv(mos.makeMosaic(), title=
"Psf Candidates")
def plotPsfCandidates(cellSet, showBadCandidates=False, frame=1)
Statistics makeStatistics(lsst::afw::math::MaskedVector< EntryT > const &mv, std::vector< WeightPixel > const &vweights, int const flags, StatisticsControl const &sctrl=StatisticsControl())
The makeStatistics() overload to handle lsst::afw::math::MaskedVector<>