Currently the code applies the temperature correction (count_rate_corr = count_rate * (1.0 + detectorTemperatureCorr * (20.0 - detectorTemp))) by finding the detectorTemp that is closest in time to the count measurement. This temperature may not be very accurate or reflective of the true detector temperature at the time of measurement. Perhaps a better way is to fit an equation to the temperature profile and interpolate the detectorTemp.
Currently the code applies the temperature correction (
count_rate_corr = count_rate * (1.0 + detectorTemperatureCorr * (20.0 - detectorTemp))
) by finding thedetectorTemp
that is closest in time to the count measurement. This temperature may not be very accurate or reflective of the true detector temperature at the time of measurement. Perhaps a better way is to fit an equation to the temperature profile and interpolate thedetectorTemp
.