xlens.simulator.bat
Utilities for applying BATSim transforms.
Functions
|
Draw a postage stamp using the BATSim intrinsic alignment transform. |
Module Contents
- draw_ia(amplitude, beta, phi, clip_radius, stamp_size, gal_obj: galsim.GSObject, psf_obj: galsim.GSObject, image_pos: galsim.PositionD, draw_method: str, pixel_scale: float, entry) galsim.Image[source]
Draw a postage stamp using the BATSim intrinsic alignment transform.
- Parameters:
amplitude (float) – IA amplitude parameter
Apassed tobatsim.IaTransform.beta (float) – IA beta parameter.
phi (float) – IA orientation angle (radians).
clip_radius (float) – Clip radius in units of half-light radii.
stamp_size (int) – Side length (pixels) of the output stamp.
gal_obj (galsim.GSObject) – Galaxy profile before PSF convolution.
psf_obj (galsim.GSObject) – PSF profile.
image_pos (galsim.PositionD) – Absolute pixel position of the galaxy on the coadd.
draw_method (str) – GalSim draw method (e.g.
"auto","no_pixel").pixel_scale (float) – Pixel scale in arcseconds.
entry (numpy structured scalar) – Galaxy catalog row; must contain
"hlr"field.
- Returns:
Rendered postage stamp with bounds set on the coadd grid.
- Return type:
galsim.Image