Code to iteratively subtract the baseline from DSC data, based on Ref. [1].
python DSC_baseline.py xfile.format yfile.format t_beg t_end iterations
where
xfile.format
andyfile.format
are the x and y components of the DSC data;t_beg
is the index where the initial linear fit stops;t_end
is the index where the final linear fit begins;iterations
is the number of iterations to perform.
[1] Malakhov, D. V., and M. K. Abou Khatwa. "Constructing a self-consistent integral baseline by using cubic splines." Journal of thermal analysis and calorimetry 87.2 (2007): 595-599.