generate_galsim_objects#
- lsst.source.injection.generate_galsim_objects(injection_catalog: Table, photo_calib: PhotoCalib, wcs: SkyWcs, fits_alignment: str, stamp_prefix: str = '', logger: Any | None = None) Generator[tuple[SpherePoint, Point2D, int, GSObject], None, None]#
Generate GalSim objects from an injection catalog.
Parameters#
- injection_catalog
astropy.table.Table Table of sources to be injected.
- photo_calib
lsst.afw.image.PhotoCalib Photometric calibration used to calibrate injected sources.
- wcs
lsst.afw.geom.SkyWcs WCS used to calibrate injected sources.
- fits_alignment
str Alignment of the FITS image to the WCS. Allowed values: “wcs”, “pixel”.
- stamp_prefix
str Prefix to add to the stamp name.
- logger
lsst.utils.logging.LsstLogAdapter, optional Logger to use for logging messages.
Yields#
- sky_coords
lsst.geom.SpherePoint RA/Dec coordinates of the source.
- pixel_coords
lsst.geom.Point2D Pixel coordinates of the source.
- draw_size
int Size of the stamp to draw.
- object
galsim.gsobject.GSObject A fully specified and transformed GalSim object.
- injection_catalog