FORCASTSlitcorrReduction

class sofia_redux.pipeline.sofia.forcast_slitcorr_reduction.FORCASTSlitcorrReduction[source]

Bases: FORCASTSpectroscopyReduction

FORCAST spesctroscopic slit correction reduction steps.

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

Initialize the reduction object.

Methods Summary

extract_median_spectra()

Extract median spectra at regular positions.

load(data[, param_class])

Call parent load, with slitcorr parameters.

make_slitcorr()

Fit and smooth normalized data.

normalize()

Normalize by central median spectrum.

register_viewers()

Return new viewers.

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

Store display data for custom viewers.

Methods Documentation

extract_median_spectra()[source]

Extract median spectra at regular positions.

load(data, param_class=None)[source]

Call parent load, with slitcorr parameters.

make_slitcorr()[source]

Fit and smooth normalized data.

normalize()[source]

Normalize by central median spectrum.

register_viewers()[source]

Return new viewers.

set_display_data(raw=False, filenames=None, regions=None, specviewer='matplotlib')[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.