pynrc.nrc_utils.place_grism_spec¶
- pynrc.nrc_utils.place_grism_spec(nrc, sp, xpix, ypix, wref=None, return_oversample=False)[source]¶
Create spectral image and place ref wavelenght at (x,y) location
Given a NIRCam instrument object and input spectrum, create a dispersed PSF and place the undeviated reference wavelength at the specified (xpix,ypix) coordinates (assuming ‘sci’ coords).
Returned values will be a tuple of (wspec, imspec)