Thread: [PyMca] background calculation
Brought to you by:
vasole
From: PyMca g. p. m. list. <pym...@li...> - 2023-12-12 09:35:32
|
Hello, I would like to ask if there is a way that Pymca calculates the background under a peak? I suppose you could take a roi and check but since i have overlapping peaks in some areas that wouldn't fit my purpose. Thanks a lot for your help and great work! Tasos |
From: PyMca g. p. m. list. <pym...@li...> - 2023-12-12 10:18:22
|
Hello, I guess you will have to detail a bit more your use case. PyMca is systematically doing that. Best regards, Armando On 12/12/2023 09:46, PyMca general purpose mailing list. wrote: > Hello, > > I would like to ask if there is a way that Pymca calculates the > background under a peak? > I suppose you could take a roi and check but since i have overlapping > peaks in some areas that wouldn't fit my purpose. > > Thanks a lot for your help and great work! > > Tasos |
From: PyMca g. p. m. list. <pym...@li...> - 2023-12-12 11:33:40
|
Hello Armando thank you for immediate answer, Well I am trying to calculate some LoD for an instrument using a nist glass and when I fit the spectrum I get the net area of each element present but i can't find a way to calculate the background under each peak. Since I have for example traces of Mn, Fe,Co,Ni,Cu,Zn etc., peaking a roi would give me the roi background and I was wondering if I can access the info (number) about background under each peak that I see pymca attributes in the peaks spectrum tab. I hope this helps. Tasos Στις Τρί 12 Δεκ 2023 στις 12:19 μ.μ., ο/η PyMca general purpose mailing list. <pym...@li...> έγραψε: > Hello, > > I guess you will have to detail a bit more your use case. PyMca is > systematically doing that. > > Best regards, > > Armando > > On 12/12/2023 09:46, PyMca general purpose mailing list. wrote: > > Hello, > > > > I would like to ask if there is a way that Pymca calculates the > > background under a peak? > > I suppose you could take a roi and check but since i have overlapping > > peaks in some areas that wouldn't fit my purpose. > > > > Thanks a lot for your help and great work! > > > > Tasos > > > > _______________________________________________ > PyMca-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymca-users > |
From: PyMca g. p. m. list. <pym...@li...> - 2023-12-12 12:32:25
|
Dear Tasos, There are several ways to achieve your goal. Personally I prefer to use the Matrix Spectrum under the actual experimental conditions as described in the exercises. If you generate the .fit file (for instance together with the HTML report), you will get in it things like: [result.Ca K] fitarea = 131.78478962249625 sigmaarea = 13.85115166026227 statistics = 147.03684094891193 mcaarea = 132.26618660507341 peaks = KL3, KM3 escapepeaks = KL3 Ge_L2M4, KL3 Ge_L3M5, KL3 Ge_L2M1, KL3 Ge_L3M1, KM3 Ge_L2M4, KM3 Ge_L3M5, KM3 Ge_L2M1, KM3 Ge_L3M1 Where: - fitarea and sigmaarea are coming from the fit - statistics give you the total number of counts in the region occupied by the element peaks - mcaarea is the area obtained subtracting the background from the statistics. Background covering baseline, contribution from other elements and long and step tails (if any) of the fitted element. If you want a single number for the background, you can subtract the fitarea or the mcaarea to the statistics. Best regards, Armando On 12/12/2023 11:31, PyMca general purpose mailing list. wrote: > Hello Armando thank you for immediate answer, > > Well I am trying to calculate some LoD for an instrument using a nist > glass and when I fit the spectrum I get the net area of each element > present but i can't find a way to calculate the background under each > peak. > Since I have for example traces of Mn, Fe,Co,Ni,Cu,Zn etc., peaking a > roi would give me the roi background and I was wondering if I can > access the info (number) about background under each peak that I see > pymca attributes in the peaks spectrum tab. > > I hope this helps. > > Tasos > > Στις Τρί 12 Δεκ 2023 στις 12:19 μ.μ., ο/η PyMca general purpose > mailing list. <pym...@li...> έγραψε: > > Hello, > > I guess you will have to detail a bit more your use case. PyMca is > systematically doing that. > > Best regards, > > Armando > > On 12/12/2023 09:46, PyMca general purpose mailing list. wrote: > > Hello, > > > > I would like to ask if there is a way that Pymca calculates the > > background under a peak? > > I suppose you could take a roi and check but since i have > overlapping > > peaks in some areas that wouldn't fit my purpose. > > > > Thanks a lot for your help and great work! > > > > Tasos > > > > _______________________________________________ > PyMca-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymca-users > > > > _______________________________________________ > PyMca-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymca-users |
From: PyMca g. p. m. list. <pym...@li...> - 2023-12-12 13:32:47
|
Dear Armando, Thanks a lot for clarifying the information that the fit file has to offer. Just a kind suggestion, perhaps this is something other users would find useful and could be implemented to the Table tab in the advanced fit window in a future update. Anyway Thanks again for your valuable help. Tasos Στις Τρί 12 Δεκ 2023 στις 2:32 μ.μ., ο/η PyMca general purpose mailing list. <pym...@li...> έγραψε: > Dear Tasos, > > There are several ways to achieve your goal. Personally I prefer to use > the Matrix Spectrum under the actual experimental conditions as described > in the exercises. > > If you generate the .fit file (for instance together with the HTML > report), you will get in it things like: > > [result.Ca K] > fitarea = 131.78478962249625 > sigmaarea = 13.85115166026227 > statistics = 147.03684094891193 > mcaarea = 132.26618660507341 > peaks = KL3, KM3 > escapepeaks = KL3 Ge_L2M4, KL3 Ge_L3M5, KL3 Ge_L2M1, KL3 Ge_L3M1, KM3 > Ge_L2M4, KM3 Ge_L3M5, KM3 Ge_L2M1, KM3 Ge_L3M1 > > Where: > > - fitarea and sigmaarea are coming from the fit > - statistics give you the total number of counts in the region occupied by > the element peaks > - mcaarea is the area obtained subtracting the background from the > statistics. Background covering baseline, contribution from other elements > and long and step tails (if any) of the fitted element. > > If you want a single number for the background, you can subtract the > fitarea or the mcaarea to the statistics. > > Best regards, > > Armando > > On 12/12/2023 11:31, PyMca general purpose mailing list. wrote: > > Hello Armando thank you for immediate answer, > > Well I am trying to calculate some LoD for an instrument using a nist > glass and when I fit the spectrum I get the net area of each element > present but i can't find a way to calculate the background under each peak. > Since I have for example traces of Mn, Fe,Co,Ni,Cu,Zn etc., peaking a roi > would give me the roi background and I was wondering if I can access the > info (number) about background under each peak that I see pymca attributes > in the peaks spectrum tab. > > I hope this helps. > > Tasos > > Στις Τρί 12 Δεκ 2023 στις 12:19 μ.μ., ο/η PyMca general purpose mailing > list. <pym...@li...> έγραψε: > >> Hello, >> >> I guess you will have to detail a bit more your use case. PyMca is >> systematically doing that. >> >> Best regards, >> >> Armando >> >> On 12/12/2023 09:46, PyMca general purpose mailing list. wrote: >> > Hello, >> > >> > I would like to ask if there is a way that Pymca calculates the >> > background under a peak? >> > I suppose you could take a roi and check but since i have overlapping >> > peaks in some areas that wouldn't fit my purpose. >> > >> > Thanks a lot for your help and great work! >> > >> > Tasos >> >> >> >> _______________________________________________ >> PyMca-users mailing list >> PyM...@li... >> https://lists.sourceforge.net/lists/listinfo/pymca-users >> > > > _______________________________________________ > PyMca-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/pymca-users > > > _______________________________________________ > PyMca-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymca-users > |