ou24PSF¶
- class snappl.psf.ou24PSF(_parent_class=False, **kwargs)[source]¶
Bases:
ou24PSF_slowWrap the roman_imsim PSFs, only more efficiently (we hope) than ou24PSF_slow.
TODO: document what is different, what is cached.
Don’t call this or the constructor of a subclass directly, call PSF.get_psf_object().
See get_psf_object for parameter documentation.
_called_from_get_psf_object is used internally and should not be used outside this module, unless you know what you’re doing and intentionally mean to subvert the system.
Note:¶
If both are set, then
bandoverridesimage.bandMethods Summary
get_stamp([x, y, x0, y0, flux, seed, image])Return a 2d numpy image of the PSF at the image resolution.
Methods Documentation
- get_stamp(x=None, y=None, x0=None, y0=None, flux=1.0, seed=None, image=None)[source]¶
Return a 2d numpy image of the PSF at the image resolution. Parameters are as in PSF.get_stamp, plus:
- Parameters:
wcs (BaseWCS or galsim.BaseWCS) – WARNING: DO NOT USE. Not part of a standard interface, for testing purposes only. An alternative WCS to use for the stamp.
seed (int) – A random seed to pass to galsim.BaseDeviate for photonOps. NOTE: this is not part of the base PSF interface (at least, as of yet), so don’t use it in production pipeline code. However, it will be useful in tests for purposes of testing reproducibility.
image (snappl.image.Image or None) – The image that the PSF is associated with. This image will be used to determine the WCS of the PSF stamp. If None, the WCS will be determined using rmutils.getLocalWCS.