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[lsst.geom.SpherePoint, lsst.geom.Point2D, int, galsim.gsobject.GSObject], None, None]¶
- Generate GalSim objects from an injection catalog. - Parameters:
- injection_catalogastropy.table.Table
- Table of sources to be injected. 
- photo_caliblsst.afw.image.PhotoCalib
- Photometric calibration used to calibrate injected sources. 
- wcslsst.afw.geom.SkyWcs
- WCS used to calibrate injected sources. 
- fits_alignmentstr
- Alignment of the FITS image to the WCS. Allowed values: “wcs”, “pixel”. 
- stamp_prefixstr
- Prefix to add to the stamp name. 
- loggerlsst.utils.logging.LsstLogAdapter, optional
- Logger to use for logging messages. 
 
- injection_catalog
- Yields:
- sky_coordslsst.geom.SpherePoint
- RA/Dec coordinates of the source. 
- pixel_coordslsst.geom.Point2D
- Pixel coordinates of the source. 
- draw_sizeint
- Size of the stamp to draw. 
- objectgalsim.gsobject.GSObject
- A fully specified and transformed GalSim object. 
 
- sky_coords