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 Spectrum calibration spectrum from an arc lamp or similar.
- matched_line_list: 
QTable, optional An
QTabletable 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
QTabletable with (minimally) a column named “pixel_center”.- line_wavelengths: 
Quantity,QTable, optional astropy.units.Quantityarray of line wavelength values corresponding to the line pixels defined inline_list, assumed to be in the same order. Can also be input as anQTablewith (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
LinearLSQFitterif the model to fit is linear orLMLSQFitterif the model to fit is non-linear.
Note that either
matched_line_listorline_pixelsmust be specified, and ifmatched_line_listis not input, at least one ofline_wavelengthsorcatalogmust 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¶
 
- input_model¶
 
- input_spectrum¶
 
- residuals[source]¶
 calculate fit residuals between matched line list pixel centers and wavelengths and the evaluated fit model.
Methods Documentation
- input_spectrum: