middle_from_wcs
- jwst.extract_1d.source_location.middle_from_wcs(wcs, bounding_box, dispaxis)[source]
Calculate the effective middle of the spectral region.
- Parameters:
- wcs
WCS
WCS for the input data model, containing detector to wavelength transforms.
- bounding_boxtuple
A pair of tuples, each consisting of two numbers. Represents the range of useful pixel values in both dimensions, ((xmin, xmax), (ymin, ymax)).
- dispaxisint
Dispersion axis.
- wcs
- Returns:
- middle_dispfloat
Middle pixel in the dispersion axis.
- middle_xdispfloat
Middle pixel in the cross-dispersion axis.
- middle_wavelengthfloat
Wavelength at the middle pixel.