masona10 |
Posted - 03/16/2020 : 12:55:35 PM Hi,
I am attempting to automate a process for fitting multiple lorentzian peaks on repeat data sets.
Currently I use the code nlfitpeaks func:=Lorentz, and manually select a rough Xc ect. However my data consists of around 1000 different repeat data sets all with peaks in almost identical places, with mild variation. What I would like to do is for the first data set, manually select the peaks, then automate a system that selects a peaks for the repeat data sets using the output Xc ect data from the first manual fit. I have attempted to use paMultiY using a theme, but this does not seem to select the correct peaks. Is there anyway to automate the nlfitpeaks function to eliminate manual peak selection, it doesnt seem to work with the nlbegin function. The key information I am after is the centre of the peaks and the variation thereof through the repeats. (Example data from a peak fit y0=99.64217, Xc=2.82012, w=0.03156, A=-0.03714, -0.74932)
Many Thanks Andrew Mason
a.mason |