32 """Return a view (shallow copy) of ExposureCatalog containing only the
33 subset of detectors that contain the given point.
37 point : `~lsst.geom.Point2D`
38 Point in the coadd coordinate system.
39 wcs : `lsst.geom.SkyWcs`
40 WCS for the coadd coordinate system. This is ignored if the
41 CoaddInputs are made by stitching cell_coadds.
42 includeValidPolygon : `bool`, optional
43 If True, check that the point is within the validPolygon of those records which have one.
47 subset : `~lsst.afw.table.ExposureCatalog`
48 ExposureCatalog containing only the relevant detector records.
56 if len(ccds) == 0
or ccds[0].wcs
is not None:
57 return ccds.subsetContaining(point, wcs, includeValidPolygon)
59 cuts = np.array([record.validPolygon.contains(point)
for record
in ccds])
63 """Return a view (shallow copy) of ExposureCatalog containing only the
64 subset of visits that contain the given point.
68 point : `~lsst.geom.Point2D`
69 Point in the coadd coordinate system.
70 wcs : `lsst.geom.SkyWcs`
71 WCS for the coadd coordinate system. This is ignored if the
72 CoaddInputs are made by stitching cell_coadds.
73 includeValidPolygon : `bool`, optional
74 If True, check that the point is within the validPolygon of those records which have one.
78 subset : `~lsst.afw.table.ExposureCatalog`
79 ExposureCatalog containing only the relevant visit records.
83 if len(visits) == 0
or visits[0].wcs
is not None:
84 return visits.subsetContaining(point, wcs, includeValidPolygon)
86 ccd_cuts = np.array([record.validPolygon.contains(point)
for record
in self.ccds])
87 visit_cuts = np.isin(visits[
"visit"], self.ccds[
"visit"][ccd_cuts])
88 return visits[visit_cuts]