WavelengthCalibration1D¶
- class specreduce.WavelengthCalibration1D(input_spectrum, matched_line_list=None, line_pixels=None, line_wavelengths=None, catalog=None, input_model=<Linear1D(slope=1., intercept=0.)>, fitter=None)[source]¶
Bases:
object
- input_spectrum:
Spectrum1D
A one-dimensional Spectrum1D calibration spectrum from an arc lamp or similar.
- matched_line_list:
QTable
, optional An
QTable
table with (minimally) columns named “pixel_center” and “wavelength” with known corresponding line pixel centers and wavelengths populated.- line_pixels: list, array,
QTable
, optional List or array of line pixel locations to anchor the wavelength solution fit. Can also be input as an
QTable
table with (minimally) a column named “pixel_center”.- line_wavelengths:
Quantity
,QTable
, optional astropy.units.Quantity
array of line wavelength values corresponding to the line pixels defined inline_list
, assumed to be in the same order. Can also be input as anQTable
with (minimally) a “wavelength” column.- catalog: list, str,
QTable
, optional The name of a catalog of line wavelengths to load and use in automated and template-matching line matching. NOTE: This option is currently not implemented.
- input_model:
Model
The model to fit for the wavelength solution. Defaults to a linear model.
- fitter:
Fitter
, optional The fitter to use in optimizing the model fit. Defaults to
LinearLSQFitter
if the model to fit is linear orLMLSQFitter
if the model to fit is non-linear.
Note that either
matched_line_list
orline_pixels
must be specified, and ifmatched_line_list
is not input, at least one ofline_wavelengths
orcatalog
must be specified.Attributes Summary
calculate fit residuals between matched line list pixel centers and wavelengths and the evaluated fit model.
Methods Summary
apply_to_spectrum
([spectrum])ToDo: Code matching algorithm between line pixel locations and potential line wavelengths from catalogs.
Attributes Documentation
- available_catalogs¶
- fitted_model¶
- input_model¶
- input_spectrum¶
- residuals¶
calculate fit residuals between matched line list pixel centers and wavelengths and the evaluated fit model.
- wcs¶
Methods Documentation
- input_spectrum: