tsadar.utils.process.correct_throughput#

Functions

correctThroughput(data, tstype, axisy, shotNum)

Applies throughput correction to the input data based on the specified Thomson scattering type.

tsadar.utils.process.correct_throughput.correctThroughput(data, tstype, axisy, shotNum)Source#

Applies throughput correction to the input data based on the specified Thomson scattering type. This correction comes from the transmission function of all the optics in the diagnostic. :param data: The input data matrix to be corrected. :type data: np.ndarray :param tstype: The type of Thomson scattering. Can be “angular”, “temporal”, or “imageing”. :type tstype: str :param axisy: The spectral axis values (e.g., wavelength or pixel indices) used for interpolation. :type axisy: np.ndarray :param shotNum: The shot number. :type shotNum: int

Returns:

np.ndarray – The throughput-corrected data matrix.

Notes

  • For “angular” tstype, uses ‘spectral_sensitivity.mat’ and applies different calibration for shotNum < 95000.

  • For “temporal” tstype, uses sensitivity data from an Excel file and handles unusable sensitivity values.

  • For other types, uses ‘MeasuredSensitivity_11_30_21.mat’ for sensitivity correction.

  • NaN values in the correction matrix are set to zero before applying the correction.