pynrc.nrc_utils.gen_unconvolved_point_source_image
- pynrc.nrc_utils.gen_unconvolved_point_source_image(nrc, tel_pointing, ra_deg, dec_deg, mags, expnum=1, osamp=1, siaf_ap_obs=None, add_offset=None, **kwargs)[source]
Create an unconvolved image with sub-pixel shifts
- Parameters:
nrc (
NIRCam) – NIRCam instrument class for PSF generation.tel_pointing (
webbpsf_ext.jwst_point) – JWST telescope pointing information. Holds pointing coordinates and dither information for a given telescope visit.ra_deg (ndarray) – Array of RA positions of point sources in degrees.
dec_deg (ndarray) – Array of Declination of points sourcesin degrees.
mags (ndarray) – Magnitudes associated with each RA/Dec position. Corresponds to
nrc.bandpass.
- Keyword Arguments:
expnum (int) – Exposure number to use in
tel_pointing.osamp (int) – Output sampling of image.
siaf_ap_obs (pysiaf Aperture) – Option to specify observed SIAF aperture. Otherwise defaults to
nrc.siaf_ap.add_offset (tuple or None) – If specififed, then will add an additional ‘idl’ offset to source positions.
sp_type (str) – Spectral type to assume when calculating total counts. Defaults to ‘G0V’.
mag_units (str) – Assumed magnitude units of
mags. Default assumes ‘vegamag’.