Author Topic: DTSA script to quantify k-ratios  (Read 3407 times)

Ben Buse

• Professor
• Posts: 419
DTSA script to quantify k-ratios
« 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

Code: [Select]
`import dtsa2 as dtsa2import dtsa2.mcSimulate3 as mc3f = 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
« Last Edit: March 23, 2017, 02:18:57 pm by John Donovan »

Ben Buse

• Professor
• Posts: 419
Re: DTSA script to quantify k-ratios
« Reply #1 on: March 29, 2017, 10:28:19 am »
Hi,

Does anyone know if its possible to change the MAC when quantifying k-ratios. What I'd like to do is write a script to adjust the MAC finding the best fit to data collected at multiple voltages - to experimentally measure the MAC.

Thanks

Ben

Probeman

• Emeritus
• Posts: 2048
• Never sleeps...
Re: DTSA script to quantify k-ratios
« Reply #2 on: March 29, 2017, 10:40:40 am »
Hi,

Does anyone know if its possible to change the MAC when quantifying k-ratios. What I'd like to do is write a script to adjust the MAC finding the best fit to data collected at multiple voltages - to experimentally measure the MAC.

Thanks

Ben

Hi Ben,
I don't know about DTSA-II, but what you describe is exactly what Pouchou's XMAC software does.
john
The only stupid question is the one not asked!

Philippe Pinard

• Post Doc
• Posts: 21
Re: DTSA script to quantify k-ratios
« Reply #3 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.

Quote
I 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.

Ben Buse

• Professor
• Posts: 419
Re: DTSA script to quantify k-ratios
« Reply #4 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

Ben Buse

• Professor
• Posts: 419
Re: DTSA script to quantify k-ratios
« Reply #5 on: July 26, 2017, 05:23:34 am »

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

Hi John,

How is XMAC software distributed? Is it part of SAMX XMAS or a seperate SAMX package - I can't see it in the 2002 version

Also does anyone have a copy of the following paper - which I think explains the method

POUCHOU, J.L. & PICHOIR, F. (1988). A simplified version of the
“PAP” model for matrix corrections in EPMA. In Microbeam
Analysis, Newbury, D.E. (Ed.), pp. 319–324. San Francisco, CA:
San Francisco Press

Thanks

Ben
« Last Edit: July 26, 2017, 07:18:17 am by Ben Buse »

Probeman

• Emeritus
• Posts: 2048
• Never sleeps...
Re: DTSA script to quantify k-ratios
« Reply #6 on: July 26, 2017, 07:57:31 am »

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

Hi John,
How is XMAC software distributed? Is it part of SAMX XMAS or a seperate SAMX package - I can't see it in the 2002 version

Also does anyone have a copy of the following paper - which I think explains the method

POUCHOU, J.L. & PICHOIR, F. (1988). A simplified version of the
“PAP” model for matrix corrections in EPMA. In Microbeam
Analysis, Newbury, D.E. (Ed.), pp. 319–324. San Francisco, CA:
San Francisco Press

Hi Ben,
Yes, XMAC is part of the SAMx STRATAGem package.

If you do a search of "XMAC" on this forum you'll see several mentions, for example:

http://probesoftware.com/smf/index.php?topic=667.msg4064#msg4064

john
« Last Edit: July 26, 2017, 08:01:17 am by Probeman »
The only stupid question is the one not asked!

Probeman

• Emeritus
• Posts: 2048
• Never sleeps...
Re: DTSA script to quantify k-ratios
« Reply #7 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
The only stupid question is the one not asked!

Ben Buse

• Professor
• Posts: 419
Re: DTSA script to quantify k-ratios
« Reply #8 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
« Last Edit: July 27, 2017, 06:18:04 am by Ben Buse »

JohnF

• Professor
• Posts: 94
• CQ DX DE WA3BTA
Xmac
« Reply #9 on: August 03, 2017, 02:34:49 pm »

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

Hi John,
How is XMAC software distributed? Is it part of SAMX XMAS or a seperate SAMX package - I can't see it in the 2002 version

Also does anyone have a copy of the following paper - which I think explains the method

POUCHOU, J.L. & PICHOIR, F. (1988). A simplified version of the
“PAP” model for matrix corrections in EPMA. In Microbeam
Analysis, Newbury, D.E. (Ed.), pp. 319–324. San Francisco, CA:
San Francisco Press

Hi Ben,
Yes, XMAC is part of the SAMx STRATAGem package.

If you do a search of "XMAC" on this forum you'll see several mentions, for example:

http://probesoftware.com/smf/index.php?topic=667.msg4064#msg4064

john

John and all: Actually you do not need to have the (nice but expensive StrataGEM or other) SamX software. The application is standalone (with everything needed to execute, albeit on older PCs) and apparently licensed to Pouchou and ONERA. I have a zipped version on my EPMA class software web page, which can be downloaded.
Go to: http://www.geology.wisc.edu/~johnf/g777/777Software.html
It's at the bottom. Also there is gmrfilm (Waldo's thin film DOS software).

John

Ben Buse

• Professor
• Posts: 419
Re: DTSA script to quantify k-ratios
« Reply #10 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

Brian Joy

• Professor
• Posts: 154
Re: DTSA script to quantify k-ratios
« Reply #11 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
Brian Joy
Queen's University
Kingston, Ontario
JEOL JXA-8230

Ben Buse

• Professor
• Posts: 419
Re: DTSA script to quantify k-ratios
« Reply #12 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