Sometimes I make mistakes, but I don’t make mistakes like that. I was the one who contributed the Fortran 90 code that John translated to VB for the purpose of plotting these curves.
Have you tried to duplicate Figure 7 from Pouchou and Pichoir’s paper in the Green Book? I’ve attached another Excel file in which I do this and then convert from mass-depth to depth (in microns).
Brian
My humble apologies; I am well aware of who I'm talking to. It turns out I
do make mistakes like that, and my issue was elsewhere in my code. Your Excel file was very helpful in tracking this down because I could find equivalent points on the curve and directly compare the values.
Unfortunately, the fact that my original phi(rho Z) curves were correct, means that my original issue remains a mystery. The reason I started diving into this is that I have a series of spectra from pure iron at various working distances, and was trying to simulate the ratio between the K and L lines as a function of WD. The effect I'm seeing is much larger than the correction by XPP. I was trying to rule out all the possible causes of this one by one, and one obvious choice would be that I had the scale of my phi curve wrong, meaning that the X-rays were being generated at a different depth than I thought they were (and hence, get a different absorption)...