FORCASTWavecalReduction

class sofia_redux.pipeline.sofia.forcast_wavecal_reduction.FORCASTWavecalReduction[source]

Bases: FORCASTSpectroscopyReduction

FORCAST wavelength calibration reduction steps.

This reduction object defines specialized reduction steps for generating wavelength calibration data from spectroscopic input files. It is selected by the SOFIA chooser only if a top-level configuration flag is supplied (wavecal=True). The final output product from this reduction is a FITS file (*WCL*.fits) with PRODTYPE = ‘wavecal’. This file can be supplied to the standard spectroscopic pipeline, at the make_profiles step, to specify a new wavelength calibration.

Initialize the reduction object.

Methods Summary

extract_summed_spectrum()

Extract high S/N spectrum from unrectified image.

fit_lines()

Fit a 2D surface to line IDs.

identify_lines()

Initial identification of lines.

load(data[, param_class])

Call parent load, with spatcal parameters.

rectify()

register_viewers()

Return new viewers.

reidentify_lines()

Reidentification of lines at various slit positions.

set_display_data([raw, filenames, regions, ...])

Store display data for custom viewers.

Methods Documentation

extract_summed_spectrum()[source]

Extract high S/N spectrum from unrectified image.

fit_lines()[source]

Fit a 2D surface to line IDs.

identify_lines()[source]

Initial identification of lines.

load(data, param_class=None)[source]

Call parent load, with spatcal parameters.

rectify()[source]
register_viewers()[source]

Return new viewers.

reidentify_lines()[source]

Reidentification of lines at various slit positions.

set_display_data(raw=False, filenames=None, regions=None, residuals=None)[source]

Store display data for custom viewers.

Parameters:
rawbool

If True, display data is taken from self.rawfiles. If False, display data is taken from self.input

filenameslist of str, optional

If provided and raw is False, file names will be passed to QADViewer instead of self.input.

regionslist of str, optional

File names of DS9 region files to pass to QADViewer.

residualslist of array-like, optional

Fit residual data to pass to ResidualViewer, nplot x 3. The arrays should be x value, y value, residuals.