runSelection

lsst.ts.wep.task.runSelection(refObjLoader, detector, wcs, filterName, donutSelectorTask)

Match the detector area to the reference catalog and then run the LSST DM reference selection task. For configuration parameters on the reference selector see lsst.meas.algorithms.ReferenceSourceSelectorConfig.

Parameters:
refObjLoadermeas.algorithms.ReferenceObjectLoader

Reference object loader to use in getting reference objects.

detectorlsst.afw.cameraGeom.Detector

Detector object from the camera.

wcslsst.afw.geom.SkyWcs

Wcs object defining the pixel to sky (and inverse) transform for the supplied bbox.

filterNamestr

Name of camera filter.

donutSelectorTasklsst.ts.wep.task.DonutSourceSelectorTask or None

Task to run the donut source selection algorithm. If set to None, the catalog will be the exact same as the reference catalogs without any donut selection algorithm applied.

Returns:
referenceCataloglsst.afw.table.SimpleCatalog

Catalog containing reference objects inside the specified bounding box and with properties within the bounds set by the referenceSelector.

list

X pixel location of centroids of blended donuts.

list

Y pixel location of centroids of blended donuts.