pypeit.core.wavecal.waveio module
Module for I/O in arclines
- pypeit.core.wavecal.waveio.load_line_list(line_file, use_ion=False)[source]
- Parameters:
- Returns:
line_list
- Return type:
- pypeit.core.wavecal.waveio.load_line_lists(lamps, all=False, include_unknown=False, restrict_on_instr=None)[source]
Loads a series of line list files
- Parameters:
lamps (list) – List of arc lamps to be used for wavelength calibration. E.g., [‘ArI’,’NeI’,’KrI’,’XeI’]
restrict_on_instr (str, optional) – Restrict according to the input spectrograph
all (bool, optional) – Load all line lists, independent of the input lamps (not recommended)
include_unknown (bool, optional) – If True, the tot_line_list includes the unknown lines
- Returns:
tot_line_list (astropy Table of line lists (including unknown lines, if requested))
line_list (astropy Table of line lists)
unkn_lines (astropy Table of unknown lines)
- pypeit.core.wavecal.waveio.load_reid_arxiv(arxiv_file)[source]
Load a REID arxiv file Now there are 2 possible formats. We need to consolidate
- pypeit.core.wavecal.waveio.load_template(arxiv_file, det, wvrng=None)[source]
Load a full template file from disk
- Parameters:
- Return type:
tuple[ndarray,ndarray,int,ndarray,ndarray,ndarray,ndarray]- Returns:
wave (np.ndarray) – Wavelength vector
flux (np.ndarray) – Flux vector
binning (int) – binning of the template arc spectrum
order (np.ndarray) – Echelle orders of the saved wavelength solution, if applicable
line_pix (np.ndarray) – Pixel values of identified arc line centroids in the saved wavelength solution, if applicable
line_wav (np.ndarray) – Wavelength values of identified arc line centroids in the saved wavelength solution, if applicable
line_fit_ord (np.ndarray) – Polynomial order of the saved wavelength solution, if applicable
- pypeit.core.wavecal.waveio.load_unknown_list(lines, unknwn_file=None, all=False)[source]
- Parameters:
- Returns:
unknwn_lines
- Return type:
- pypeit.core.wavecal.waveio.load_wavelength_calibration(filename)[source]
Load the wavelength calibration data from a file.
- Parameters:
filename (
pathlib.Path) – Name of the json file.- Returns:
Returns the wavelength calibration dictionary. Lists read from the json file are returnes as numpy arrays.
- Return type: