prsctrl.data.calc.calc_absorption_data#
- calc_absorption_data(ref_data: PrsData, tra_data: PrsData, norm_data: PrsData | None = None, shift_to_sane_values=True, **prsdata_kw) PrsData[source]#
Calculate the absorption data from reflection, transmission and reference data (normalization data).
The reference data is interpolated and sampled at the wavelengths that are shared by ref_data and tra_data.
- Parameters:
shift_to_sane_values – If True, shift the DC intensity (A) values so that no value is negative (since that is unphysical and likely due to losses in reference spectrum).
prsdata_kw – Keywords for the PrsData constructor. Pass file_mode=”w” if you want to save the absorption data later.