EXESParameters

class sofia_redux.pipeline.sofia.parameters.exes_parameters.EXESParameters(default=None, base_header=None)[source]

Bases: Parameters

Reduction parameters for the EXES pipeline.

Initialize parameters with default values.

Methods Summary

coadd_pairs(step_index)

Modify parameters for the coadd pairs step.

copy()

Return a copy of the parameters.

extract_spectra(step_index)

Modify parameters for the spectral extraction step.

is_sky_spec()

Determine if the reduction should be considered a sky spectrum.

load_data(step_index)

Modify parameters for the load data step.

locate_apertures(step_index)

Modify parameters for the aperture location step.

make_profiles(step_index)

Modify parameters for the profile step.

set_apertures(step_index)

Modify parameters for the aperture setting step.

subtract_background(step_index)

Modify parameters for the background subtraction step.

subtract_nods(step_index)

Modify parameters for the nod subtraction step.

unfittable()

Determine if the observation mode is unfittable.

Methods Documentation

coadd_pairs(step_index)[source]

Modify parameters for the coadd pairs step.

Turns off coadd by default for INSTMODE = MAP.

Parameters:
step_indexint

Reduction recipe index for the step.

copy()[source]

Return a copy of the parameters.

Overrides default copy to add in configuration attributes.

Returns:
Parameters
extract_spectra(step_index)[source]

Modify parameters for the spectral extraction step.

Sets defaults according to observation parameters in base header.

Parameters:
step_indexint

Reduction recipe index for the step.

is_sky_spec()[source]

Determine if the reduction should be considered a sky spectrum.

Tests for the value of the SKYSPEC keyword in the base_header attribute.

Returns:
bool

True if SKYSPEC is True, False otherwise.

load_data(step_index)[source]

Modify parameters for the load data step.

Sets sky spectrum defaults if indicated in the base header.

Parameters:
step_indexint

Reduction recipe index for the step.

locate_apertures(step_index)[source]

Modify parameters for the aperture location step.

Sets defaults according to observation parameters in base header.

Parameters:
step_indexint

Reduction recipe index for the step.

make_profiles(step_index)[source]

Modify parameters for the profile step.

Sets default background subtraction option according to observation mode.

Parameters:
step_indexint

Reduction recipe index for the step.

set_apertures(step_index)[source]

Modify parameters for the aperture setting step.

Sets defaults according to observation parameters in base header.

Parameters:
step_indexint

Reduction recipe index for the step.

subtract_background(step_index)[source]

Modify parameters for the background subtraction step.

Sets defaults according to observation parameters in base header.

Parameters:
step_indexint

Reduction recipe index for the step.

subtract_nods(step_index)[source]

Modify parameters for the nod subtraction step.

Sets default to subtract dark if sky spectrum is indicated.

Parameters:
step_indexint

Reduction recipe index for the step.

unfittable()[source]

Determine if the observation mode is unfittable.

“Fittable” modes are compact sources, with spatial size significantly less than the slit height. Unfittable modes are those for which the SRCTYPE is extended, INSTMODE is map, or INSTCFG is high-low and INSTMODE is not nod-on-slit.

Returns:
bool

True if data is not a compact, fittable observation mode; False otherwise.