pynrc.nrc_utils.place_grismr_tso

pynrc.nrc_utils.place_grismr_tso(waves, imarr, siaf_ap, wref=None, im_coords='sci')[source]

Shift image such that undeviated wavelength sits at the SIAF aperture reference location.

Return image in sience coords.

Parameters
  • waves (ndarray) – Wavelength solution of input image

  • imarr (ndarray) – Input dispersed grism PSF (can be multiple PSFs)

  • siaf_ap (pysiaf aperture) – Grism-specific SIAF aperture class to determine final subarray size and reference point