load_pypeit_calibration_lines#

specreduce.calibration_data.load_pypeit_calibration_lines(lamps: Sequence | None = None, wave_air: bool = False, cache: bool | Literal['update'] = True, show_progress: bool = False) → QTable | None[source]#

Load reference calibration lines from pypeit linelists. The pypeit linelists are well-curated and have been tested across a wide range of spectrographs. Packaged linelists from an installed pypeit are used directly when available; otherwise they are downloaded from the pypeit GitHub repository. The available linelists are defined by PYPEIT_CALIBRATION_LINELISTS.

Parameters:
lampsLamp string, comma-separated list of lamps, or sequence of lamps to include in

output reference linelist. The parlance of “lamp” is retained here for consistency with its use in pypeit and elsewhere. In several of the supported cases the “lamp” is the sky itself (e.g. OH lines in the near-IR). The available lamps are defined by PYPEIT_CALIBRATION_LINELISTS.

wave_airIf True, convert the vacuum wavelengths used by pypeit to air wavelengths.
cacheToggle caching of downloaded data when local pypeit data are unavailable.
show_progressShow download progress bar when local pypeit data are unavailable.
Returns:
linelist:

Table containing the combined calibration line list. pypeit linelists have the following columns: * ion: Ion or molecule generating the line. * wavelength: Vacuum wavelength of the line in Angstroms. * NIST: Flag denoting if NIST is the ultimate reference for the line’s wavelength. * Instr: pypeit-specific instrument flag. * amplitude: Amplitude of the line. Beware, not consistent between lists. * Source: Source of the line information.