footprintsToNumpy¶
- lsst.afw.detection.footprintsToNumpy(catalog: SourceCatalog, bbox: Box2I | None = None, shape: tuple[int, int] | None = None, xy0: tuple[int, int] | None = None, asBool: bool = True) ndarray ¶
Convert all of the footprints in a catalog into a boolean array.
- Parameters:
- catalog:
The source catalog containing the footprints. This is typically a mergeDet catalog, or a full source catalog with the parents removed.
- shape:
The final shape of the output array.
- xy0:
The lower-left corner of the array that will contain the spans.
- Returns:
- result:
The array with pixels contained in
spans
marked asTrue
.