pynrc.nrc_hci

class pynrc.nrc_hci(wind_mode='WINDOW', xpix=320, ypix=320, verbose=False, **kwargs)[source]

Bases: pynrc.pynrc_core.NIRCam

NIRCam coronagraphy (and direct imaging)

Subclass of the NIRCam instrument class with updates for PSF geneation of off-axis PSFs. If a coronagraph is not present, then this is effetively the same as the NIRCam class.

Parameters
  • wind_mode (str) – ‘FULL’, ‘STRIPE’, or ‘WINDOW’

  • xpix (int) – Size of the detector readout along the x-axis. The detector is assumed to be in window mode unless the user explicitly sets wind_mode=’FULL’.

  • ypix (int) – Size of the detector readout along the y-axis. The detector is assumed to be in window mode unless the user explicitly sets wind_mode=’FULL’.

Methods Summary

gen_offset_psf(offset_r, offset_theta[, sp, …])

Create a PSF offset from center FoV

Methods Documentation

gen_offset_psf(offset_r, offset_theta, sp=None, return_oversample=False)[source]

Create a PSF offset from center FoV

Generate some off-axis PSF at a given (r,theta) offset from center. This function is mainly for coronagraphic observations where the off-axis PSF varies w.r.t. position. The PSF is centered in the resulting image.

Parameters
  • offset_r (float) – Radial offset of the target from center in arcsec.

  • offset_theta (float) – Position angle for that offset, in degrees CCW (+Y).

Keyword Arguments
  • sp (None, pysynphot.spectrum) – If not specified, the default is flat in phot lam (equal number of photons per spectral bin).

  • return_oversample (bool) – Return either the pixel-sampled or oversampled PSF.