catalight.equipment.light_sources.nkt_analyze_calibration.determine_correction_factor

catalight.equipment.light_sources.nkt_analyze_calibration.determine_correction_factor(calibration_measurement, plot_results=False, savedata=False)

Perform regression between the predicted spectrum and measured spectrum.

For each value in the wavelength vs avg. power (mW/nm) plot, perform a regression.

Parameters:
  • calibration_data (pandas.DataFrame) – Raw calibration data for NKT system. Index is wavelength and headers are NKT power setpoint in %.

  • plot_results (bool, optional) – Indicate whether to plot results, by default False

  • savedata (bool, optional) – Indicate whether to save results, by default False

Returns:

Correction values Index is wavelength. Columns are [fit params, relative error, covariance matrix]

Return type:

pandas.DataFrame