create_spectral_wcs
- jwst.extract_1d.spec_wcs.create_spectral_wcs(ra, dec, wavelength)[source]
Assign a WCS for sky coordinates and a table of wavelengths.
- Parameters:
- rafloat
The right ascension (in degrees) at the nominal location of the entrance aperture (slit).
- decfloat
The declination (in degrees) at the nominal location of the entrance aperture.
- wavelengthndarray
The wavelength in microns at each pixel of the extracted spectrum.
- Returns:
- wcs
WCS This takes a float or sequence of float and returns a tuple of the right ascension, declination, and wavelength (or sequence of wavelengths) at the pixel(s) specified by the input argument.
- wcs