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 in line_list, assumed to be in the same order. Can also be input as an QTable 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 or LMLSQFitter if the model to fit is non-linear.

Note that either matched_line_list or line_pixels must be specified, and if matched_line_list is not input, at least one of line_wavelengths or catalog must be specified.

Attributes Summary

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 Summary

apply_to_spectrum([spectrum])

identify_lines()

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

apply_to_spectrum(spectrum=None)[source]
identify_lines()[source]

ToDo: Code matching algorithm between line pixel locations and potential line wavelengths from catalogs.