getcalpath¶
- sofia_redux.instruments.flitecam.getcalpath.getcalpath(header)[source]¶
Return the path of the ancillary files used for the pipeline.
Looks up default calibration files and other reference data in the calibration data path, based on the characteristics of the observation, as recorded in the input header.
The output format is designed to be compatible with FORCAST configurations.
- Parameters:
- headerastropy.io.fits.Header
- Returns:
- collections.OrderedDict
- namestr
Name of the config mode.
- gmodeint
The grism mode to be used during the reduction.
- cnmodeint
The chop/nod mode to be used during the reduction.
- dateobsint
The observation date, in YYYYMMDD format.
- obstypestr
Observation type.
- srctypestr
Source type.
- spectelstr
Name of the spectral element used for the observation.
- slitstr
Name of the slit used for the observation.
- pathcalstr
Base file path for calibration data.
- kwfilestr
File path to the keyword definition file.
- linfilestr
File path to the linearity correction file.
- maskfilestr
File path to the grism order mask file.
- wavefilestr
File path to the grism wavelength calibration file.
- resolutionfloat
Spectral resolution for the grism mode
- respfilestr
File path to the grism instrument response file.
- slitfilefloat
File path to the grism slit function file.
- linefilestr
File path to a line list for wavelength calibration.
- wminint
Approximate minimum wavelength for the instrument. Used to identify matching ATRAN files.
- wmaxint
Approximate maximum wavelength for the instrument. Used to identify matching ATRAN files.
- errorbool
True if there was an error retrieving the files.