compute_wavelength
- jwst.wavecorr.wavecorr.compute_wavelength(wcs, xpix=None, ypix=None)[source]
Compute the pixel wavelength.
If
xpixorypixis not provided, the dispersion is computed on a grid based onwcs.bounding_box.- Parameters:
- wcs
WCS The WCS object for this slit.
- xpixndarray, float, optional
X pixel coordinates for dispersion elements.
- ypixndarray, float, optional
Y pixel coordinates for dispersion elements.
- wcs
- Returns:
- wavelengthndarray
The wavelength in microns.