BestSeeingQuantileSelectVisitsTask#

class lsst.pipe.tasks.selectImages.BestSeeingQuantileSelectVisitsTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#

Bases: BestSeeingSelectVisitsTask

Select a quantile of the best-seeing visits.

Selects the best (for example, third) full visits based on the average PSF width in the entire visit. It can also be used for difference imaging experiments that require templates with the worst seeing visits. For example, selecting the worst third can be acheived by changing the config parameters qMin to 0.66 and qMax to 1.

Methods Summary

run(visitSummaries, skyMap, dataId)

Run task.

Methods Documentation

run(visitSummaries, skyMap, dataId)#

Run task.

Parameters#

visitSummarylist [lsst.pipe.base.connections.DeferredDatasetRef]

List of lsst.pipe.base.connections.DeferredDatasetRef of visitSummary tables of type lsst.afw.table.ExposureCatalog.

skyMaplsst.skyMap.SkyMap

SkyMap for checking visits overlap patch.

dataIddict of dataId keys

For retrieving patch info for checking visits overlap patch.

Returns#

resultlsst.pipe.base.Struct

Results as a struct with attributes:

goodVisits

A dict with selected visit ids as keys, so that it can be be saved as a StructuredDataDict. StructuredDataList’s are currently limited.