WcsSelectImagesTask#
- class lsst.pipe.tasks.selectImages.WcsSelectImagesTask(config: Config | None = None, *, name: str | None = None, parentTask: Task | None = None, log: logging.Logger | lsst.utils.logging.LsstLogAdapter | None = None)#
Bases:
BaseSelectImagesTaskSelect images using their Wcs.
We use the “convexHull” method of lsst.sphgeom.ConvexPolygon to define polygons on the celestial sphere, and test the polygon of the patch for overlap with the polygon of the image.
We use “convexHull” instead of generating a ConvexPolygon directly because the standard for the inputs to ConvexPolygon are pretty high and we don’t want to be responsible for reaching them.
Methods Summary
getValidImageCorners(imageWcs, imageBox, ...)Return corners or
Noneif bad.run(wcsList, bboxList, coordList[, dataIds])Return indices of provided lists that meet the selection criteria.
Methods Documentation
- getValidImageCorners(imageWcs, imageBox, patchPoly, dataId=None)#
Return corners or
Noneif bad.Parameters#
imageWcs :
UnknownimageBox :UnknownpatchPoly :UnknowndataId :Unknown
- run(wcsList, bboxList, coordList, dataIds=None, **kwargs)#
Return indices of provided lists that meet the selection criteria.
Parameters#
- wcsList
list[lsst.afw.geom.SkyWcs] Specifying the WCS’s of the input ccds to be selected.
- bboxList
list[lsst.geom.Box2I] Specifying the bounding boxes of the input ccds to be selected.
- coordList
list[lsst.geom.SpherePoint] ICRS coordinates specifying boundary of the patch.
- dataIdsiterable [
lsst.daf.butler.dataId] orNone, optional An iterable object of dataIds which point to reference catalogs.
- **kwargs
Additional keyword arguments.
Returns#
- result
list[int] The indices of selected ccds.
- wcsList