Probe Software Users Forum

Software => Probe for EPMA => Topic started by: Probeman on June 24, 2015, 01:21:09 PM

Title: Compound or Specified Area Peak Factors (APFs)
Post by: Probeman on June 24, 2015, 01:21:09 PM
Ok, here's a short tutorial on obtaining area peak factors (APFs) using boron as an example.  Be aware however, that for low intensity boron peaks, e.g., boro-silicates, the background fitting is quite crucial for best accuracy.

So let's say we wanted to analyze boron nitride using boron metal as a standard. Assuming you've properly polished and coated your materials (also crucial for low energy emission lines such as oxygen, nitrogem carbon, boron, etc) and properly set up your peaking and PHA (here we peaked on our primary standard, boron metal), we then perform a high precision wavescan on both boron metal and boron nitride.  In this particular run I was analyzing magnesium boride unknowns, but since boron nitride peak shapes have been measured by Bastin, we can compare our results to his measurements.

(https://smf.probesoftware.com/oldpics/i57.tinypic.com/90ukqo.jpg)

So here is a scan on boron metal:

(https://smf.probesoftware.com/oldpics/i58.tinypic.com/rsa2w0.jpg)

and by clicking the Model background button we can see the background fit and by clicking the Integrate button as seen here, we get our peak and integrated intensities:

(https://smf.probesoftware.com/oldpics/i57.tinypic.com/33ljho0.jpg)

Since boron metal is our primary standard, we make a note of the Peak/Integ (St) value of 7.25. Now we plot our boron nitride sample as seen here:

(https://smf.probesoftware.com/oldpics/i60.tinypic.com/bint4.jpg)

Note that there is a significant peak shift in the peak of boron nitride relative to boron metal. Not surprising, but this matter for your analytical setup in that it might be better to analyze each material at it's own peak position to avoid peak *shift* effects and just correct for peak *shape* effects.  We will visit this issue later.

Now we model the peak shape by again clicking the Model backgrounds button as seen here:

(https://smf.probesoftware.com/oldpics/i58.tinypic.com/sv0x1s.jpg)

and this time we make a note of the Integ/peak (Un) value of 0.167 because in this particular example, boron nitride is our "unknown".  Now multiplying these two numbers, we obtain an APF of 1.21 which seems a little high, especially when compared to Bastin's boron in boron nitride value of 1.20. 

Ok, now you thinking "hey these are pretty close actually", but the problem is Bastin used a Pb stearate crystal which has a much higher spectral resolution compared to the PC25 multi-layer crystal I used. So really the APF for the PC25 crystal should be much closer to 1.0, so why is that?

Well it's because we have included the peak *shift* effect in our APF calculation and instead Bastin re-peaked each scan on both the boron metal and the boron nitride materials to focus on the peak shape effects only.

So, what if we re-peak our boron nitride scan for the peak intensity?   But there is no need to re-run the scan, let's just re-fit the peak intensity as seen here:

(https://smf.probesoftware.com/oldpics/i60.tinypic.com/2m82giu.jpg)

How did we do that, from the Model backgrounds dialog we merely clicked the Maxima peak fit option before we clicked the Integrate button as seen here:

(https://smf.probesoftware.com/oldpics/i61.tinypic.com/98twl2.jpg)

So now we obtain a Integ/Peak (Un) value of 0.143 and multiplying that with our original boron meta Peak/Integ (St) value of 7.25 we now get an APF of 1.036, which is much closer to what we would expect for peak *shape* effects only on a low resolution LDE crystal.

I'd be pleased to answer any questions you may have. I've also attached a write up on my magnesium boride efforts (remember you have to be logged in to see attachments!).
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: John Donovan on July 01, 2015, 05:20:55 PM
I've recently modified the peak integration code in the Plot! window Model Backgrounds dialog to only integrate the peak area between the high and low off-peak background positions.

This is consistent with the integrated intensity scan acquisition option seen here in the Elements/Cations dialog:

(https://smf.probesoftware.com/oldpics/i62.tinypic.com/2ic5zxz.jpg)

By the way, before I go on further with the APFs, this integrated intensity acquisition option in PFE is quite nice because at low intensities the scan step size is larger, and as the peak intensity increases, the step size decreases automatically, to allow more time to be spent on the peak itself as opposed to the background intensities.

To see the acquired integrated intensity acquisitions just click the Run | Display Integrated Intensities menu and you will see this:

(https://smf.probesoftware.com/oldpics/i61.tinypic.com/vyux3b.jpg)

If we now zoom in on the side of the peak we can see this "variable" integrated intensity acquisition step size as seen here:

(https://smf.probesoftware.com/oldpics/i57.tinypic.com/2lx6ql0.jpg)

Anywho, back to the area peak factor (APF) method, which allows us to characterize the peak shape effects prior to acquisition for improved light element quant without having to spend all that time "crawling" over the peak!

So, here is an example of a linear fit to a wavescan on Al2O3 with O ka:

(https://smf.probesoftware.com/oldpics/i57.tinypic.com/20pf31v.jpg)

The Model background dialog looked like this:

(https://smf.probesoftware.com/oldpics/i58.tinypic.com/2zoc58x.jpg)

Note the not quite perfect fit to the background and to get the most accurate integrated area under the peak we'll want to fit better. Now here is the same data but the background is fit to an exponential fit:

(https://smf.probesoftware.com/oldpics/i61.tinypic.com/atood1.jpg)

and here is what the Model backgrounds dialog looked like:

(https://smf.probesoftware.com/oldpics/i61.tinypic.com/21np82t.jpg)

Note the smaller fitting problem with the exponential fit.  This modified code will produce improved integrated area intensity calculations for the creation of your own specified (or binary compound) area peak factors.
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: John Donovan on July 01, 2015, 10:57:49 PM
To sum up...

Once we have the peak and integrated intensities for our standard material and our secondary std or unknown, we multiply the peak:integrated intensity ratios as described here in the reference manual:

http://probesoftware.com/download/PROBEWIN.pdf#page=321

and obtain the desired light element area peak factor (APF). This resulting APF factor could be a single use "specified" APF for use in the Elements/Cations dialog as seen here:

(https://smf.probesoftware.com/oldpics/i62.tinypic.com/o7ipow.jpg)

where the APF was calculated by utilzing a "Standard" wavescan on the standard for the emitting element and a "Unknown" wavescan on the actual unknown material of interest.

Or these peak to integrated intensity ratios could be utilized for calculating compound binary APFs where the "Standard" wavescan is again on the primary standard for the light element emission line and the "Unknown" wavescan is on a secondary (binary composition) standard containing the light element emitting line of interest and one of the matrix elements bonded to the emitting element as shown in this dialog accessed from the Run | Empirical APFs menu as seen here:

(https://smf.probesoftware.com/oldpics/i61.tinypic.com/2qteliw.jpg)

The Model backgrounds dialog provides both ratios for your convenience. The benefit of the binary compound APFs is that they can be applied, to arbitrary compositions iteratively in the matrix correction, weighted based on the concentrations of each absorber (bonding) element to the light element emission line of interest as seen here:

(https://smf.probesoftware.com/oldpics/i60.tinypic.com/vmzwpi.jpg)

The only "catch" for using binary compound APfs is that you must edit the EmpAPF.dat file as described in the manual so the user can select the necessary "empirical" APFs from the app for the situation at hand.

Why? Because the specific binary APFs selected will depend on the actual spectrometer crystal utilized for the wavescans and analysis (they must be the same and for JEOL users the spectrometer focal circle should also be the same), the compound bonding valance and lastly the crystal coordination for ultimate accuracy.  The following is a list of measured APFs from Bastin, Pouchou and myself that are distributed with CalcZAF and Probe for EPMA:

  "b"     "ka"    "c"        1.02         "B4C/B/STE"
  "b"     "ka"    "n"        1.2          "BN/B/STE"
  "b"     "ka"    "n"        1.214        "BN/B/PC25/147.6 Donovan"
  "b"     "ka"    "mg"       1.017        "MgB4/B/PC25/147.6 Donovan"
  "b"     "ka"    "mg"       0.937        "MgB2/B/PC25/147.6 Donovan"
  "b"     "ka"    "al"       1.12         "AlB2/B/STE"
  "b"     "ka"    "al"       1.01         "AlB12/B/STE"
  "b"     "ka"    "si"       1            "SiB3/B/STE"
  "b"     "ka"    "si"       .92          "SiB6/B/STE"
  "b"     "ka"    "ti"       .75          "TiB/B/STE"
  "b"     "ka"    "ti"       .88          "TiB2/B/STE"
  "b"     "ka"    "v"        1.           "VB2/B/STE"
  "b"     "ka"    "cr"       .9           "CrB/B/STE"
  "b"     "ka"    "cr"       1.1          "CrB2/B/STE"
  "b"     "ka"    "fe"       1.1          "FeB/B/STE"
  "b"     "ka"    "fe"       1.25         "Fe2B/B/STE"
  "b"     "ka"    "co"       1.2          "CoB/B/STE"
  "b"     "ka"    "co"       1.02         "Co2B/B/STE"
  "b"     "ka"    "ni"       1.2          "NiB/B/STE"
  "b"     "ka"    "ni"       1.06         "Ni2B/B/STE"
  "b"     "ka"    "ni"       .98          "Ni3B/B/STE"
  "b"     "ka"    "zr"       .8           "ZrB2/B/STE"
  "b"     "ka"    "nb"       .8           "NbB/B/STE"
  "b"     "ka"    "nb"       .9           "NbB2/B/STE"
  "b"     "ka"    "mo"       .94          "MoB/B/STE"
  "b"     "ka"    "la"       .9           "LaB6/B/STE"
  "b"     "ka"    "ta"       .88          "TaB/B/STE"
  "b"     "ka"    "ta"       1.1          "TaB2/B/STE"
  "b"     "ka"    "w"       .98          "WB/B/STE"
  "b"     "ka"    "u"       1.04         "UB4/B/STE"
  "c"     "ka"    "b"       1.16         "B4C/TiC/WSi/59.8"
  "c"     "ka"    "mg"      1.2          "MgB2C2/C/WSi/59.8"
  "c"     "ka"    "si"      1.07         "SiC/TiC/WSi/59.8"
  "c"     "ka"    "ti"      1.000000         "TiC/TiC/WSi/59.8"
  "c"     "ka"    "v"       1.005760         "V2C/TiC/WSi/59.8"
  "c"     "ka"    "v"       1.005760         "VC/TiC/WSi/59.8"
  "c"     "ka"    "cr"      0.921659         "Cr7C3/TiC/STE"
  "c"     "ka"    "cr"      0.95622          "Cr3C2/TiC/STE"
  "c"     "ka"    "cr"      0.921659         "Cr23C6/TiC/STE"
  "c"     "ka"    "zr"      1.013825         "ZrC/TiC/WSi/59.8"
  "c"     "ka"    "nb"      0.91013          "NbC/TiC/STE"
  "c"     "ka"    "mo"      0.94470          "Mo2C/TiC/STE"
  "c"     "ka"    "hf"      0.95622          "HfC/TiC/STE"
  "c"     "ka"    "ta"      1.105991         "TaC/TiC/STE"
  "c"     "ka"    "w"       1.117512         "WC/TiC/STE"
  "c"     "ka"    "w"       1.175115         "W2C/TiC/STE"
  "n"     "ka"    "si"      1.103          "Si3N4/AlN/WSi/59.8"
  "n"     "ka"    "ti"       .997          "TiN/AlN/WSi/59.8"
  "n"     "ka"    "v"       1.0226         "VN/AlN/WSi/59.8"
  "n"     "ka"    "cr"      1.018          "Cr2N/AlN/WSi/59.8"
  "n"     "ka"    "fe"      1.012          "Fe2N/AlN/WSi/59.8"
  "n"     "ka"    "zr"       .9952         "ZrN/AlN/WSi/59.8"
  "n"     "ka"    "hf"      1.002          "HfN/AlN/WSi/59.8"
  "o"     "ka"    "b"       1.0628        "B6O/Fe2O3/WSi/59.8"
  "o"     "ka"    "na"       1.0          "----/Fe2O3/WSi/59.8"
  "o"     "ka"    "mg"       1.0000       "MgO/Fe2O3/WSi/59.8"
  "o"     "ka"    "al"       1.0213       "Al2O3/Fe2O3/WSi/59.8, Bastin"
  "o"     "ka"    "al"       1.0285       "Al2O3/MgO/WSi/59.8, Donovan"
  "o"     "ka"    "si"       1.0444       "SiO2/Fe2O3/WSi/59.8, Bastin"
  "o"     "ka"    "si"       1.070        "SiO2/MgO/WSi/59.8, Donovan"
  "o"     "ka"    "p"        1.05         "----/Fe2O3/WSi/59.8"
  "o"     "ka"    "s"        1.2          "----/Fe2O3/WSi/59.8"
  "o"     "ka"    "k"        1.0          "----/Fe2O3/WSi/59.8"
  "o"     "ka"    "ca"       0.97         "----/Fe2O3/WSi/59.8"
  "o"     "ka"    "ti"       .9796        "TiO2/Fe2O3/WSi/59.8"
  "o"     "ka"    "cr"       .993         "Cr2O3/Fe2O3/WSi/59.8, Bastin"
  "o"     "ka"    "cr"       1.1         "Cr2O3/MgO/WSi/59.8, Donovan"
  "o"     "ka"    "mn"       1.0121       "MnO/Fe2O3/WSi/59.8"
  "o"     "ka"    "fe"       .9962        "Fe3O4/Fe2O3/WSi/59.8"
  "o"     "ka"    "co"       1.0133       "CoO/Fe2O3/WSi/59.8"
  "o"     "ka"    "ni"       1.0153       "NiO/Fe2O3/WSi/59.8"
  "o"     "ka"    "cu"       .9946        "Cu2O/Fe2O3/WSi/59.8"
  "o"     "ka"    "cu"       .9943        "CuO/Fe2O3/WSi/59.8"
  "o"     "ka"    "zn"       .9837        "ZnO/Fe2O3/WSi/59.8"
  "o"     "ka"    "ga"       1            "Ga2O3/Fe2O3/WSi/59.8"
  "o"     "ka"    "zr"       .9823        "ZrO2/Fe2O3/WSi/59.8"
  "o"     "ka"    "nb"       .9840        "Nb2O5/Fe2O3/WSi/59.8"
  "o"     "ka"    "mo"       .9940        "MoO3/Fe2O3/WSi/59.8"
  "o"     "ka"    "ru"       1.0109        "RuO2/Fe2O3/WSi/59.8"
  "o"     "ka"    "sn"       .9737        "SnO2/Fe2O3/WSi/59.8"
  "o"     "ka"    "tb"       1.2          "----/Fe2O3/WSi/59.8"
  "o"     "ka"    "ta"       1.0102        "Ta2O5/Fe2O3/WSi/59.8"
  "o"     "ka"    "w"       1.0099        "WO3/Fe2O3/WSi/59.8"
  "o"     "ka"    "pb"       0.9651        "PbO/Fe2O3/WSi/59.8"
  "o"     "ka"    "bi"       0.9754        "Bi2O3/Fe2O3/WSi/59.8"
  "al"    "ka"    "o"        1.06           "Al2O3/Al/TAP/25.745"
  "si"    "ka"    "o"        1.04           "SiO2/Si/TAP/25.745"
  "si"    "ka"    "o"        1.21           "SiO2/Si/PET/8.75"
  "si"    "ka"    "o"        1.6           "Si/SiO2/PET/8.75"
  "ni"    "la"    "o"        1.10      "NiO/Ni/TAP"


Is anyone willing to write this up and publish it with me?
john
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: Rom on January 08, 2023, 05:00:00 PM
APF correction is great and very powerful trick.
I start to use it quite careful and noted depending of APF coefficient from BG positions - we can not use too wide range between BG (low/high) positions especially for weak intensity peaks . So BG positions (for binary APF coefficients calculation) should be chosen with some strong rules.
When I try to calculate APF binary coefficient after WScaning, I have some "hand made" rules  of choosing BG positions for "standard" and "unknown".
Could you recommend some physical views on this task.
 
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: John Donovan on January 09, 2023, 08:55:13 AM
Quote from: Rom on January 08, 2023, 05:00:00 PM
APF correction is great and very powerful trick.
I start to use it quite careful and noted depending of APF coefficient from BG positions - we can not use too wide range between BG (low/high) positions especially for weak intensity peaks . So BG positions (for binary APF coefficients calculation) should be chosen with some strong rules.

When I try to calculate APF binary coefficient after WScaning, I have some "hand made" rules  of choosing BG positions for "standard" and "unknown".

Can you share these "hand made" rules with us?

Quote from: Rom on January 08, 2023, 05:00:00 PM
Could you recommend some physical views on this task?

What do you mean by "physical views"?
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: Rom on January 09, 2023, 04:10:03 PM
My "rules" are not serious. Because of that I asked your recommendations. "Physical views" means some argument way to choose BG positions for THIS task.

My very general (each case is individual) rules for THIS task:
-BG positions should be as close to peak position as it possible;
-shift BG position in +/-0.1 mm (voluntarist approach) shouldn't be a cause of changing peak intensity (peak-BG) more then 0.1% rel (voluntarist approach).
-BG model - linear (BG level of exponential model depends of BG range and distances BG low/high from peak position).
-one of handy marker in PFE - Gaussian line in Plot!/Model BG list. We can use points of crossing the Gaussian line with WS line for choosing BG positions.
But I want emphasizing again: these "rules" on children's level and I kept them because I need to start from something.

I'll be very appreciate for any help and suggestions.
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: John Donovan on January 09, 2023, 04:26:03 PM
You are asking about selecting background positions regarding the calculation of the integrated area under the peak from the Model Background dialog from the Plot! window?

I am not sure I understand why the choosing different background positions for this purpose matters.  I've always just used the same criteria I would use for any background correction model. That is to fit the background intensities as good as possible.

Yes, I agree that you want to minimize the effect of the background fit since the intensities are all summed up, but I would assume that the background intensities would essentially "null out" since they should be randomly distributed around the background fit?

Can you show us an example of what you are talking about?
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: Rom on January 09, 2023, 08:00:46 PM
Ok, thank you. I'll collect the examples.
An one short question - why "Specified APF" in "Element/Cation Properties" list is invisible (not active) for Ni, Fe,... elements but for O everything is ok and I can use the option.
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: John Donovan on January 09, 2023, 09:56:12 PM
Quote from: Rom on January 09, 2023, 08:00:46 PM
Ok, thank you. I'll collect the examples.
An one short question - why "Specified APF" in "Element/Cation Properties" list is invisible (not active) for Ni, Fe,... elements but for O everything is ok and I can use the option.

Because the APF (peak-shape) correction only applies to low energy lines where the outer shell of the emission transition is also chemically bonded and therefore affected by the element it is bonded to.
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: Rom on January 10, 2023, 02:48:23 AM
Thank you! I supposed this but wasn't sure.
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: John Donovan on January 10, 2023, 09:11:07 AM
Quote from: Rom on January 10, 2023, 02:48:23 AM
Thank you! I supposed this but wasn't sure.

The "SpecifiedAPFMaximumLineEnergy" is defaulted to 1000 eV, so that means K lines up to Ne and L lines up to Cu are allowed to have specified APF values defined.

Now some might ask, why not allow S Ka to have an APF specified since that emission line is definitely affected by oxidation in basalt glasses as many of you are aware. But in fact, the change in the S Ka emission line due to oxidation is a simple shift and not a shape change. Therefore rather than apply a peak shape correction, it makes more sense to simply use different peak positions for S Ka for say ones pyrite standard and a different peak position for ones basaltic glasses:

https://smf.probesoftware.com/index.php?topic=127.0

The bottom line is for sulfur quantification in basaltic glasses we generally tune S Ka to our Pyrite peak position and then detune the S Ka peak position for our unknowns to ~10 points lower on a Cameca instrument (~1/3 of the way towards the S Ka peak position in anhydrite which is about 30 points lower).

If we didn't follow this procedure our sulfur analyses in many basaltic glasses would be about 10% low.  Of course this adjustment of the sulfur peak position for our glasses depends very much on the degree of oxidation of the sulfur in ones specific glasses.

The thing which has my interest is why, in a compound such as sodium thiosulfate which should have sulfur in two different oxidation states, we do not see two overlapping peaks, as far as I can tell:

https://smf.probesoftware.com/index.php?topic=127.msg6988#msg6988

Anyway, the point is for simple peak shifting, utilize either the specified APF method, the compound APF method, or just use the integrated intensity method in Probe for EPMA (see the Elements/Cations dialog) where the spectrometer is scanned over the peak for quantitative acquisition to obtain an integrated intensity (acquire your standards using this same integrated intensity method of course!).

And if anyone doesn't think just integrated intensity methods are complicated enough, Karsten Goemann and Sandrin Feig at U of Tasmania utilize integrated intensity scans, plus the TDI correction, plus aggregated (duplicate element) acquisitions:

https://smf.probesoftware.com/index.php?topic=42.msg4932#msg4932
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: Probeman on November 12, 2023, 09:48:02 AM
Recently I attempted to acquire more k-ratios in order to extract effective take of angles for my various spectrometer/crystal combinations. Initially I utilized Si Ka at 25 keV on SiO2 as a primary standard and various silicate such as Fe2SiO4 and Ni2SiO4 as secondary standards. The results can be seen in this topic here:

https://smf.probesoftware.com/index.php?topic=1569.msg12177#msg12177

One observation from these measurements was that the measured k-ratios for TAP crystals appeared to be higher than one would expect from modeling (and when compared to the EDS detector which one might assume would have a more accurate takeoff angle since it contains no moving parts), possibly indicating a lower effective take off angle than the nominal value of 40 degrees. While the PET crystals appeared to produce k-ratios lower than one might expect, perhaps indicating a higher effective take off angle than expected.

But in the case of the TAP crystals the Si Ka peak position is very close to the lower limit, while on a PET crystal the Si ka peak position is very close to the lower limit, so to test whether this divergence in the effective take off angle from the nominal take off angle (40 degrees) is consistent over the entire range of the spectrometer, I decided to try another emission line starting with something that would be closer to the other end of the TAP spectrometer range, for example F Ka.

So I decided to try measuring F Ka k-ratios on my two fluoride standards, CaF2 (natural) and BaF2 (synthetic). Since the concentration of CaF2 is much higher I decided to make that the primary standard (as one does) and BaF2 the secondary standard:

f =   21.670  835 BaF2 (barium fluoride)
f =   48.800  831 Fluorite U.C. #20011

What I did not realize until later was that due to an extremely large absorption of F Ka by Ca, the intensity emitted from BaF2 is actually higher than CaF2!    :o

So the k-ratios are greater than one, but for the purposes of determining effective take off angles of the TAP crystals at a high sin theta, this should not be an issue. I will report on these k-ratio measurements in the effective take off angle topic linked at the start of this post later on, but in the meantime I want to discuss something else related to APFs which is the subject of this topic...

What I also did not expect was that there appears to be a very large peak shape change between CaF2 and BaF2. I'm guessing that this peak shape change is due to the very large absorption in CaF2 rather than any sort of valence bonding differences given that both compounds are alkali earth fluorides, but please chime in if any of you has looked into this at all.

Here are the various MACs for F Ka in Ba:

MAC value for F Ka in Ba =    3155.43  (LINEMU   Henke (LBL, 1985) < 10KeV / CITZMU > 10KeV)
MAC value for F Ka in Ba =    3140.00  (CITZMU   Heinrich (1966) and Henke and Ebisu (1974))
MAC value for F Ka in Ba =        .00  (MCMASTER McMaster (LLL, 1969) (modified by Rivers))
MAC value for F Ka in Ba =    3232.77  (MAC30    Heinrich (Fit to Goldstein tables, 1987))
MAC value for F Ka in Ba =    7408.73  (MACJTA   Armstrong (FRAME equations, 1992))
MAC value for F Ka in Ba =    2913.02  (FFAST    Chantler (NIST v 2.1, 2005))
MAC value for F Ka in Ba =    3160.00  (USERMAC  User Defined MAC Table)

Although there is one outlier, the MACs for F Ka in Ba are all in fairly close agreement and also not terribly large values. However, the MACs for F Ka in Ca are much higher and surprisingly are pretty much in agreement (with Armstrong again a bit a an outlier):

MAC value for F Ka in Ca =   12415.20  (LINEMU   Henke (LBL, 1985) < 10KeV / CITZMU > 10KeV)
MAC value for F Ka in Ca =   12370.00  (CITZMU   Heinrich (1966) and Henke and Ebisu (1974))
MAC value for F Ka in Ca =        .00  (MCMASTER McMaster (LLL, 1969) (modified by Rivers))
MAC value for F Ka in Ca =   12623.93  (MAC30    Heinrich (Fit to Goldstein tables, 1987))
MAC value for F Ka in Ca =   14236.12  (MACJTA   Armstrong (FRAME equations, 1992))
MAC value for F Ka in Ca =   12132.31  (FFAST    Chantler (NIST v 2.1, 2005))
MAC value for F Ka in Ca =   12400.00  (USERMAC  User Defined MAC Table)

Looking at wavescans on both materials we see this:

(https://smf.probesoftware.com/gallery/395_12_11_23_9_11_10.png)

Clearly the peak intensities do not represent the integrated intensities. And in fact we can see this quite clearly when we examine the k-ratios from the EDS spectrometer and compare them to the WDS spectrometers as seen here:

(https://smf.probesoftware.com/gallery/395_12_11_23_9_15_33.png)

Admittedly not a great dataset, but the fact that the EDS and WDS disagree so much, I thought it might be worth looking at the Area Peak Factors (APFs) for this system a bit more. Also note that the peak position for F Ka for these two materials has not shifted, but only the peak shape.  So lets start with the CaF2 (our primary standard) using the Model Background dialog and clicking the Integrate button as shown here:

(https://smf.probesoftware.com/gallery/395_12_11_23_9_23_01.png)

Note that we utilize the Peak/Integrated ratio for the primary standard (CaF2) and for the BaF2 (our secondary standard) we have:

(https://smf.probesoftware.com/gallery/395_12_11_23_9_23_18.png)

Multiplying these two values together we obtain ~0.817 or almost a 20% correction!  Applying the values calculated for each spectrometer (all three are close to ~0.80) by entering these "specified" APFs in the Elements/Cations dialog as discussed in this topic and elsewhere, we obtain the following k-ratios (the APFs are applied by Probe for EPMA automatically to the k-ratios during the matrix correction):

(https://smf.probesoftware.com/gallery/395_12_11_23_9_29_03.png)

Which is a considerable improvement over what we had from assuming that the F Ka peak shape was unaffected by the emission matrix. Sorry for the digression, but I thought it was an interesting system to test the APF correction on...

So what does this mean for the analysis of F Ka?   Well, given this enormous peak shape correction but also the success of modeling the peak shape using APFs, one could say to use either material as the standard and use the APF correction relative to the unknown in question, as a specified APF.

But maybe it is more accurate is to use CaF2 as a primary standard for characterizing Fluor-apatites (since there is a large amount of Ca in the apatite matrix), and use BaF2 as a primary standard for fluorine in other (less absorbing) matrices.

What do you all think?   

Oh, and by the way, there is a quite large TDI correction for these materials even using a 20 um defocused beam! I will show that data in another topic also later on because I am seeing something quite odd there (what appears to be a significant difference in the TDI correction for each of the TAP spectrometers!).
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: John Donovan on December 07, 2025, 10:02:42 AM
Recently Scott Boroughs was attempting to measure Area Peak factors (APFs) in Probe for EPMA to correct for peak shape (and shift) effects for F Ka.

As you may know, one can utilize careful wavescans from ones primary standard and unknown and calculate the APF for that situation, which can then be applied to all measurements:

(https://smf.probesoftware.com/gallery/1_07_12_25_9_33_43.png)

See here for more details:

https://smf.probesoftware.com/index.php?topic=536.0

The key issue with these APF wavescans is that the backgrounds are properly modeled, but as some of you may know, the background positions for wavescan samples may be edited after the intensity data is acquired!  This is because we are simply interpolating the background intensities based on the wavescan intensities themselves.

What Scott discovered was, that although we allow one to adjust the wavescan backgrounds from the Plot! window after the wavescan is acquired, in cases where the background positions were declared outside the wavscan range (maybe because they had not been specified previously, or in Scott's case, he had specified them, but due to a now fixed software bug, the use of this mode did not properly transfer the MPB background positions from the last unknown, when the Use Last Unknown as Wavescan Setup flag was checked in the Acquisition Options dialog from the Acquire! window, whew!), the use of an exponential fit would sometimes cause a negative intensity which would cause an error message to pop up.  Basically this pop up error message made it difficult to adjust the MPB positions in the wavescan Plot! window.  Anyway, all fixed now.

So here is what one initially sees when plotting a F Ka wavescan from the Plot! window:

(https://smf.probesoftware.com/gallery/1_07_12_25_9_20_17.png)

Then we click the Model backgrounds button and plot our MPB positions (which Scott had not yet adjusted):

(https://smf.probesoftware.com/gallery/1_07_12_25_9_20_31.png)

Now we start adjusting our MPB positions using the + and - buttons (hold the <alt> key to perform fine adjustments):

(https://smf.probesoftware.com/gallery/1_07_12_25_9_20_47.png)

And when completed we might see something like this:

(https://smf.probesoftware.com/gallery/1_07_12_25_9_21_02.png)

Update now to v. 14.2.7 of Probe for EPMA to get this latest version using the Help menu or from our Resources web page.

Finally, note the several "extraneous" peaks in this wavescan and be aware that generally when acquiring wavescans for calculation of APFs, one should not have any other matrix element peaks in the region between the background positions. That is, only the peak from the APF element itself should be included in the integrated area intensity calculation.

Again, see examples in the above posts...
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: John Donovan on December 09, 2025, 08:59:56 AM
Quote from: John Donovan on December 07, 2025, 10:02:42 AMFinally, note the several "extraneous" peaks in this wavescan and be aware that generally when acquiring wavescans for calculation of APFs, one should not have any other matrix element peaks in the region between the background positions. That is, only the peak from the APF element itself should be included in the integrated area intensity calculation.

It should be pointed out that when the integrated intensity is calculated from the background fit (for determining APFs), the integrated intensities are only calculated between the hi and lo background positions.

Therefore, it may be better to utilize the 2 point exponential background fit option when extra peaks are present in the wavescan.
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: aducharme on February 22, 2026, 10:28:30 PM
As John has been discussing elsewhere, he and I have been taking high precision measurements of compounds including MgO and MgAl2O4 from the FIGMAS mount. I've been trying to compute the area peak factor (APF) of MgAl2O4's oxygen peak relative to MgO as my standard using a PC1 crystal. First, I'll talk about the details of computing the APF, then discuss some concerns I've come across that prevent me from reporting a final result.

Here's the oxygen peaks from the wavescans of both samples plotted in PFE:

Screenshot 2026-02-22 at 10.27.46 PM.png

I see three differences between the two curves:
These first two factors justify the need for an APF, while the third will require some special care in the analysis to address.

I did this area peak factor calculation in python, after exporting the MgO and MgAl2O4 wavescans to .dat files (Output menu > Save Wavescan Output > Save Wavescan Samples). I first calculated a two-point linear background subtraction for both wavescans (linear two-point models looked better than the exponential model in PFE. I have slides if you want to check) and removed this background from my raw data.

My next step was to remove the Al interference from the MgAl2O4 data. I did so by manually excluding data points that appeared to include Al-based counts, fitting a cubic spline to the remaining data in the RHS of the MgAl2O4 O peak, then replacing the excluded data with spline-interpolated values. Below I've plotted the details of this step. The excluded values are in orange, and the resulting spline curve is the dotted orange line, on top of the background-subtracted data in the first and second plots respectively.

Al_exclusion.png
Al-less_spline.png

A better, more PFE-compatible approach to deal with interferences would be to 1. determine the data points which include counts from an interference, and 2. exclude the data points from both the unknown and standard. In this case, if you excluded the Al-interfered data points from the MgAl2O4 peak, but not the corresponding points in the MgO peak, the integrated intensity of the MgO peak would be artificially high, so your APF would be lower than the true value. What's important about any interference correction is that you do it to both curves. What I did is a valid choice. It's just harder and (I think) not already doable in PFE.

The next step was to fit a Lorentzian to the interference-less MgAl2O4 O peak to determine a better peak height. Here's a closer look at the top of that peak:

MgAl2O4_O_peak_zoom_in.png

The two highest points are almost identical in intensity. My first instinct, expecting sharp peaks, was that our measurement did not resolve the true maximum. Since the final APF is very dependent on the maximal peak intensities, I wanted to get a better estimate via interpolating a maximum from a Lorentzian fit to the MgAl2O4 O peak. In retrospect, the peak may just be broad and what I did probably doesn't actually improve the APF calculation.

That finishes the data processing. Because the forum won't let me upload more than five images in one post (boo), I'll continue this in another reply.
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: aducharme on February 22, 2026, 11:59:48 PM
Before seeing the final result, recall the APF is defined as the ratio of the normalized integrated intensities of the unknown to the standard. Equivalently,

Screenshot 2026-02-22 at 10.32.35 PM.png

where IIU is the integrated unknown peak intensity, IPU is the maximum intensity of the unknown peak, IPS is the integrated standard peak intensity, and IPS is the maximum intensity of the standard peak. Because I need to integrate a spectrum containing several overlapping peaks, there is not an immediately well-defined location to set my lower and upper bounds. My thought was to just try all the symmetric bounds about the maxima (if the peaks were not approximately symmetric, the integration region would need to be asymmetric) and see what happens. My result:

apf_result.png

This plot shows calculations of the area peak factors for four different versions of my data with varying integral interval sizes (window sizes). These versions are: 1. raw, 2. background-corrected (bgd), 3. background-corrected and Al-interference corrected, and 4. background-corrected, Al-interference corrected, and MgAl2O4 O peak maximum-corrected data.

Big takeaway #1: Choice of integration region seriously impacts the APF result. APFs are reported with two to five decimals places of significant digits! Changing my window is altering the third, and even second, decimal place.

Big takeaway #2: Measuring the maxima right matters. APFs are directly proportional to the standard's peak maximum, so if that measurement is 5% too high or too low, your APF is going to increased 5% or decreased by 5%.

The second point is just good to know. I'm going to focus on the first point. The most intuitive locations to set your bounds are probably where the modeled background intersects the spectrum. The first problem is that you have two different spectra with two different background models, so two different locations for each endpoint to balance (imo you must have identical integral bounds to properly calculate the APF, so just using each spectrum's intercepts with the background will not work). Probably some averaging of the two intercepts would produce some compromise that barely affects the final calculation. The second, more serious problem is that there isn't a guarantee the background will cross at locations such that only the elemental peak of interest is included. Here's the background and my MgAl2O4 spectrum around the oxygen peak:

Screenshot 2026-02-22 at 11.06.42 PM.png

You can see a small broad peak centered at 35000 spectrometer units. This peak is responsible for the decrease in APF of about 0.05 between window sizes 115 to 150 in the second image in this post. Maybe those extra counts are from oxygen, but I'm suspicious. Regardless, it demonstrates my point that defaulting to where the modeled background crosses the spectrum may include counts generated by not-of-interest elements.

Right now (big caveat, having looked at one (1) dataset), it looks to me like experimentalists need to carefully manually select and justify their integration region. My plot, for purposes of demonstration, went from 1 to 200, but the integration window must include every point where the standard and unknown peaks obviously exist. The total size of the integration window will depend on the peak sizes, which depend on chemical and instrument effects, but in any case, 10 data points in an integration window is too few.

If you twist my arm, I would say the APF for MgAl2O4/MgO/PC1 is 1.021. The below plot shows the spectra with increasing window sizes. The best balance of including the peaks' tails and not including non-oxygen counts from that broader peak on the far left looks to me like window sizes between 75 and 115. 1.021 corresponds to the APFs calculated for the background- and Al-interference-corrected (but not peak-maximium-corrected) data for the window sizes I liked.

spectrum_w_window_fixed_x.png

I'm definitely curious if people know a good algorithm for, or have thoughts on, determining the integration region. I'd also love to get my hands on more data used to generate APF corrections to better judge how serious this window size effect is. Please send any such data you have my way!
Title: Area Peak Factors for Accurate Quantitation
Post by: aducharme on March 28, 2026, 12:51:45 PM
Area/peak factors (or area peak factors, APFs) are both a more fundamental measurement of quantitative elemental concentration and a time-saving procedure. Lately I've performed a lit review to find sources of APFs, from which I've generated an Excel database and a new .dat file of APFs for binary compounds that can be used in PFE today. Edit: Both files are attached below. The .dat file has been updated to include John's suggested changes.

One of Castaing's key insights was that the elemental concentration of the sample is almost always proportional to the height of the element's characteristic x-ray emission peak (Edit: after accounting for ZAF or phi-rho-z corrections). APFs are a method to perform quantitative EPMA when this assumption fails. Strictly speaking, elemental concentration corresponds to the area of the characteristic x-ray emission peak. This distinction tends to matter in the case of "chemical effects," when looking at an x-ray line for electrons which are bonding to other atoms in the sample, e.g. the Ka line for B, C, N, and O or the La and LB line for Fe and other transition metals. By measuring peak areas in these case, you are making a more fundamentally accurate measurement of elemental concentration.

An area peak factor is additionally a timesaver because recording a whole peak area in WDS takes a lot longer than simply measuring the peak intensity and two background points. APFs do not change with accelerating voltage, so by measuring the ratio of the integrated peak intensity to the maximum peak intensity once, a microanalyst can apply their APF to any future standard intensity measurements on the same sample using the same spectrometer crystal.

Probe for EPMA already has multiple built-in methods to use APFs, including an existing database that can be seen from the menu Analytical > Empirical APFs. Usage has been already explained on the forum  here (https://smf.probesoftware.com/index.php?topic=536.0). The file ducharme_binary_apfs.dat attached in this post is a personally updated version of the PfE APF database where every APF measurement has been confirmed in the literature. The sources can be found in the aforementioned Excel spreadsheet. Differences from the default PfE database include:

The Excel spreadsheet contains 168 total APFs for various compounds. The .dat file contains the subset of 119 APFs for binary compounds. This new .dat file can used in PfE today by removing the file "empapf.dat" in the PfE Program Data folder (alternatively, use your file manager's search function to find it), uploading "ducharme_binary_apfs.dat" in the same location, then renaming the ducharme .dat file to "empapf.dat".
Title: Re: Area Peak Factors for Accurate Quantitation
Post by: John Donovan on March 28, 2026, 02:14:52 PM
Quote from: aducharme on March 28, 2026, 12:51:45 PMThe file ducharme_binary_apfs.dat attached in this post is a personally updated version of the PfE APF database where every APF measurement has been confirmed in the literature. The sources can be found in the aforementioned Excel spreadsheet. Differences from the default PfE database include:
  • many more nitride APFs, especially those measured with W/Si LDEs
  • fewer boride APFs, as many borides demonstrate variable APFs depending on the relative angle of the atomic lattice and the spectrometer
  • fewer oxide APFs, because I could not find citations for many of the originals (I have not found the following work, which may contain the missing oxide APFs. If you have a pdf, please reach out! L. Pouchou, F. Pichoir, La Recherche Aerospatiale (English edition), 1984,3, 13.)
  • a net increase of 29 binary APFs

The Excel spreadsheet contains 168 total APFs for various compounds. The .dat file contains the subset of 119 APFs for binary compounds. This new .dat file can used in PfE today by removing the file "empapf.dat" in the PfE Program Data folder (alternatively, use your file manager's search function to find it), uploading "ducharme_binary_apfs.dat" in the same location, then renaming the ducharme .dat file to "empapf.dat".

I think it would be worth including the citations in your Ducharme DAT file along with the quoted primary/secondary materials and Bragg crystal string.  For example this line:

"o"    "ka"    "si"    1.044    "SiO2/Fe2O3/WSi/59.8"

should be:

"o"    "ka"    "si"    1.044    "SiO2/Fe2O3/WSi/59.8, Bastin <year>"

and this line:

"o"    "ka"    "si"    1.07    "SiO2/MgO/WSi/59.8"

should be :

"o"    "ka"    "si"    1.07    "SiO2/MgO/WSi/59.8, Donovan <unpublished>"

Also it would be good to group the binaries by absorber together as I did here for the EMPMAC.DAT file:

https://smf.probesoftware.com/index.php?topic=40.msg13930#msg13930

and is also the case for the current EMPAPF.DAT file:

https://smf.probesoftware.com/index.php?topic=536.msg2993#msg2993

As long as this citation info is included inside the double quotes, the file format can still be read by Probe for EPMA.
Title: Re: Compound or Specified Area Peak Factors (APFs)
Post by: aducharme on March 29, 2026, 05:08:03 PM
Now grouped by absorber (second element in binary) and with citations. See attached.

(https://smf.probesoftware.com/gallery/395_29_03_26_5_50_56.png)