Probe Software Users Forum

Software => DTSA II => Topic started by: Ben Buse on March 23, 2017, 01:46:36 PM

Title: DTSA script to quantify k-ratios
Post by: Ben Buse on March 23, 2017, 01:46:36 PM
Hi,

Just found my script to quantify k-ratios, so I thought I'd post it before I lose it again

import dtsa2 as dtsa2
import dtsa2.mcSimulate3 as mc3


f = open('C:/Users/Ben/Documents/FeKR.csv', 'r')
FeLines = f.readlines()
print(FeLines)
f.close()
FeLines4 = [float(FeLines[0].strip()),]
for x in range (1,9):
FeLines4.append(float(FeLines[x].strip()));
print(FeLines4)
f = open('C:/Users/Ben/Documents/NiKR.csv', 'r')
NiLines = f.readlines()
f.close()
NiLines4 = [float(NiLines[0].strip()),]
for x in range (1,9):
NiLines4.append(float(NiLines[x].strip()));
print(NiLines4)
for x in range (0,9):
print quant(kratios = {transition('Fe K-L3'):FeLines4[x],transition('Ni K-L3'):NiLines4[x]})



The files are as below: txt files - list of k-ratios separated by return.

0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
Title: Re: DTSA script to quantify k-ratios
Post by: Philippe Pinard on March 30, 2017, 12:49:39 PM
Here is my modified version of DTSA2 with a special class (MassAbsorptionCoefficientCalculator) to calculate MACs from X-ray intensities measured at different kVs:
https://www.dropbox.com/s/bf3wx3n5f7rg2r4/epq.jar?dl=0

and in attachment, an example of a script, which we used for this paper Llovet, X.; Pinard, P. T.; Heikinheimo, E.; Louhenkilpi, S. & Richter, S. Electron Probe Microanalysis of Ni Silicides Using Ni-L X-Ray Lines Microscopy and Microanalysis, 2016, 1-11 and I used in my PhD thesis.

Note that you need to fit intensities, not k-ratios.

QuoteI don't know about DTSA-II, but what you describe is exactly what Pouchou's XMAC software does.

One difference with DTSA-II is that you can use different PRZ models and fit "unconventional lines" like Ll, etc. but I agree that XMAC also works well. The main reason I wrote a special class was to be able to fit the MAC of more than one X-ray line, e.g. Ni La and Fe La from a binary Fe-Ni sample.
Title: Re: DTSA script to quantify k-ratios
Post by: Ben Buse on April 03, 2017, 10:20:22 AM
Hi Philippe,

Thanks that's great -yes i've read the paper and that's the kind of thing I want to do. Do you know which version of DTSA its compatible with - I replaced Iona epq but it no longer loads

Thanks

Ben
Title: Re: DTSA script to quantify k-ratios
Post by: Probeman on July 26, 2017, 11:23:33 AM
Hi Ben,
I found that proceedings volume and scanned it, so the Pouchou paper you wanted is attached below (please login to see attachments).
john
Title: Re: DTSA script to quantify k-ratios
Post by: Ben Buse on July 27, 2017, 12:47:05 AM
Hi John,

Thanks for finding the right paper! and scanning it

Method is easy - take generated phi-rho-z curve and modify mac so absorbed phi-rho-z curve matches data. I've just done this in excel using solver and casino for the generated phi-rho-z curves. In sheet 1 - can calculated mac used in casino 2159 for Fe La in Fe - i.e. similar to MAC30 not FFAST.

In sheet 2 - took Pouchou 1985 data for Ni at 10,15,20,25,30kV. Solve it and get mac of 3368 similar to Pouchou value of 3300 for Ni La in Ni and a long way from book value due to white lines - (peak in absorption spectra).

Ben
Title: Re: DTSA script to quantify k-ratios
Post by: Ben Buse on October 23, 2017, 03:12:18 AM
Hi,

Does anyone know Pouchou & Pichoir expression for ionisation cross section, - I found a reference to J. L. Pouchou, F. Pichoir, in: 11th ICXOM, London Ontario, 1986 (J. D. Brown, R. H. Packwood, eds.), London, Ont, 1987, p. 249. Does anyone have a copy

Thanks

Ben
Title: Re: DTSA script to quantify k-ratios
Post by: Brian Joy on October 23, 2017, 04:45:05 AM
Hi Ben,

It's also contained in their 1991 paper in Electron Probe Quantitation.  I've attached a copy.

Brian
Title: Re: DTSA script to quantify k-ratios
Post by: Ben Buse on October 23, 2017, 05:47:14 AM
Hi Brian,

Thanks, Oh good I've good the green book, I'd missed the section - found it now

Ben