apply_telluric_correction¶
- tayph.apply_telluric_correction(inpath, list_of_wls, list_of_orders, list_of_sigmas, parallel=False)[source] [edit on github]¶
This applies a set of telluric spectra (computed by molecfit) for each exposure in our time series that were written to a pickle file by write_telluric_transmission_to_file.
List of errors are provided to propagate telluric correction into the error array as well.
- Parameters
- inpathstr, path like
The path to the pickled transmission spectra.
- list_of_wlslist
List of wavelength axes.
- list_of_orders
List of 2D spectral orders, matching to the wavelength axes in dimensions and in number.
- list_of_isgmas
List of 2D error matrices, matching dimensions and number of list_of_orders.
- Returns
- list_of_orders_correctedlist
List of 2D spectral orders, telluric corrected.
- list_of_sigmas_correctedlist
List of 2D error matrices, telluric corrected.