compute_dispersion
- jwst.wavecorr.wavecorr.compute_dispersion(wcs, xpix=None, ypix=None)[source]
Compute the pixel dispersion.
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:
- dispersionndarray
The pixel dispersion in meters.