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_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.
- injection_catalog
- 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.
- sky_coords