[Ifeffit] Re: Problems with linear combination fitting S-XANES data in Athena

2025-07-28 Thread Muretta, Julie via Ifeffit
Good afternoon, Matt,

Thanks so much for the information. I was able to apply the settings you 
mentioned as a starting point in Athena, and now I am getting much better 
results. Still some tweaking to get the best background, but things are much 
better.

Re: reference spectra, I will discuss with my collaborator, but I don't think 
he will mind if anyone finds our data useful and would like to use it in a 
database. 🙂 From my perspective, it would be a highlight of this project! How 
would we go about doing this, if he agrees?

Kindest regards,
Julie


Julie Muretta, Ph.D.

Materials Testing Laboratory Manager

Center for Advanced Materials Processing (CAMP)

(406) 496-4808 | [email protected]

[Montana Technological 
University]<https://urldefense.us/v3/__https://www.mtech.edu/__;!!G_uCfscf7eWS!YgUaDWSDNopxpUWblb_cnhvB_QGG2bB3wlpgsJUiGJDRbGQSf3xQKQjUW18ZVv2Nb9o_0bI4zZxaiP9GFUgftM6pEVPtuH33$
 >




From: matt.newville--- via Ifeffit 
Sent: Sunday, July 27, 2025 8:27 AM
To: XAFS Analysis using Ifeffit 
Cc: [email protected] 
Subject: [Ifeffit] Re: Problems with linear combination fitting S-XANES data in 
Athena

Hi Julie, Sorry for the late reply. As Bruce and Bokky suggest, the ranges for 
pre-edge and normalization regions are not easy to automate over all energy 
ranges, and especially (for us, at least) at “tender” energies like the S K 
edge. This
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

Hi Julie,



Sorry for the late reply. As Bruce and Bokky suggest, the ranges for pre-edge 
and normalization regions are not easy to automate over all energy ranges, and 
especially (for us, at least) at “tender” energies like the S K edge.  This 
partly because the automated E0 can move a lot compared to the energy range.
And for your project,  having a very short “normalization range” of only a few 
eV, can be unstable.



Reading this project into Larix, it does use a “Constant” for the normalization 
range.  So, the edge step does not go negative, even with the short 
normalization range.



If I were analyzing this data, I would probably start with putting all spectra 
to having E0=2472,  the pre-edge range to [-45, -15] (and Linear), and the 
post-edge range to [50, 150] and Constant.  For the “test mu” data, I would 
shorten the normalization range to [50, 100].



This project has some excellent S K-edge spectra on some standards, and a 
“test” spectrum that is “less good”.  To be clear: we do at my beamline and 
that is completely normal data with artefacts that we sometimes see too – and 
those standards are better than we ever measure (and, from browsing the CLS and 
ESRF ID21 databases, much better than “commonly measured”) and should be in 
some database ;).



--Matt



https://urldefense.us/v3/__https://xasdb.lightsource.ca/__;!!G_uCfscf7eWS!YgUaDWSDNopxpUWblb_cnhvB_QGG2bB3wlpgsJUiGJDRbGQSf3xQKQjUW18ZVv2Nb9o_0bI4zZxaiP9GFUgftM6pERs3GeNV$
 
<https://urldefense.us/v3/__https://xasdb.lightsource.ca/__;!!G_uCfscf7eWS!b7C8EreIHdfzH9woKPW9HD-7-mrW4-WunpGDQcp8JORLN-7A0T9CPl_8AlydEDCyWtc1DT3nN7uaKTv6USsObLxdqK2tIZ4QMO2B$>

https://urldefense.us/v3/__https://www.esrf.fr/home/UsersAndScience/Experiments/XNP/ID21/php.html*__;Iw!!G_uCfscf7eWS!YgUaDWSDNopxpUWblb_cnhvB_QGG2bB3wlpgsJUiGJDRbGQSf3xQKQjUW18ZVv2Nb9o_0bI4zZxaiP9GFUgftM6pEXGzP-jg$
 
<https://urldefense.us/v3/__https://www.esrf.fr/home/UsersAndScience/Experiments/XNP/ID21/php.html*__;Iw!!G_uCfscf7eWS!b7C8EreIHdfzH9woKPW9HD-7-mrW4-WunpGDQcp8JORLN-7A0T9CPl_8AlydEDCyWtc1DT3nN7uaKTv6USsObLxdqK2tIf17aoao$>





I should say also that Larch and Larix probably have smarter ways of choosing 
initial parameters for the data reduction. Athena's initial guesses are pretty 
good for EXAFS data, but often do funny things (like you saw here) for data 
measured

ZjQcmQRYFpfptBannerStart

This Message Is From an External Sender

This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

From: Ravel, Bruce via Ifeffit 
Date: Friday, July 25, 2025 at 12:49 PM
To: [email protected] 
Cc: Ravel, Bruce 
Subject: [Ifeffit] Re: Problems with linear combination fitting S-XANES data in 
Athena



I should say also that Larch and Larix probably have smarter ways of

choosing initial parameters for the data reduction.  Athena's initial

guesses are pretty good for EXAFS data, but often do funny things (like

you saw here) for data measured over a shorter energy range.



B





On 7/25/25 13:07, Ravel, Bruce wrote:

> Investigating further, it seems that the problem might instead be that

> you are putting too much faith in the default values for the various

> parameters used to process the data.  I mean this in the sense of the

> third paragraph of this page:

>

> https://urldefense.us/v3/__https://bruceravel.github.io/demet

[Ifeffit] Re: Problems with linear combination fitting S-XANES data in Athena

2025-07-27 Thread matt.newville--- via Ifeffit



Hi Julie, Sorry for the late reply. As Bruce and Bokky suggest, the ranges for pre-edge and normalization regions are not easy to automate over all energy ranges, and especially (for us, at least) at “tender” energies like the S K edge. This



ZjQcmQRYFpfptBannerStart




  

  
	This Message Is From an External Sender
  
  
This message came from outside your organization.
  



 
  


ZjQcmQRYFpfptBannerEnd



Hi Julie,  Sorry for the late reply. As Bruce and Bokky suggest, the ranges for pre-edge and normalization regions are not easy to automate over all energy ranges, and especially (for us, at least) at “tender” energies like the S K edge.  This partly because the automated E0 can move a lot compared to the energy range.    And for your project,  having a very short “normalization range” of only a few eV, can be unstable.  Reading this project into Larix, it does use a “Constant” for the normalization range.  So, the edge step does not go negative, even with the short normalization range. If I were analyzing this data, I would probably start with putting all spectra to having E0=2472,  the pre-edge range to [-45, -15] (and Linear), and the post-edge range to [50, 150] and Constant.  For the “test mu” data, I would shorten the normalization range to [50, 100].    This project has some excellent S K-edge spectra on some standards, and a “test” spectrum that is “less good”.  To be clear: we do at my beamline and that is completely normal data with artefacts that we sometimes see too – and those standards are better than we ever measure (and, from browsing the CLS and ESRF ID21 databases, much better than “commonly measured”) and should be in some database ;). --Matt https://xasdb.lightsource.ca/https://www.esrf.fr/home/UsersAndScience/Experiments/XNP/ID21/php.html#  I should say also that Larch and Larix probably have smarter ways of choosing initial parameters for the data reduction. Athena's initial guesses are pretty good for EXAFS data, but often do funny things (like you saw here) for data measuredZjQcmQRYFpfptBannerStartThis Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEndFrom: Ravel, Bruce via Ifeffit Date: Friday, July 25, 2025 at 12:49 PMTo: [email protected] Cc: Ravel, Bruce Subject: [Ifeffit] Re: Problems with linear combination fitting S-XANES data in Athena I should say also that Larch and Larix probably have smarter ways of choosing initial parameters for the data reduction.  Athena's initial guesses are pretty good for EXAFS data, but often do funny things (like you saw here) for data measured over a shorter energy range. B  On 7/25/25 13:07, Ravel, Bruce wrote:> Investigating further, it seems that the problem might instead be that> you are putting too much faith in the default values for the various> parameters used to process the data.  I mean this in the sense of the> third paragraph of this page:> > https://urldefense.us/v3/__https://bruceravel.github.io/demeter/documents/Athena/bkg/index.html__;!!G_uCfscf7eWS!cTLg9RWK1TAZRd267t_3ddjg2A3zeSjd5FNxTsRIYhs1g4IzWpbezllxLHh3QPr6XT9wd06Z_BFEk-k5CSK2PXgjs08iPw$> > In short, you need to be more mindful of the values of the various> processing parameters.  I am skeptical of the value of E0.  The values> of the normalization parameters are certainly incorrect for this> measurement, as is clear from the green and purple lines.  And when I> click the orange normalization button, sure enough ... it plots the data> inverted.> > Playing around just a bit with the parameters explained here:> >    https://urldefense.us/v3/__https://bruceravel.github.io/demeter/documents/Athena/bkg/norm.html__;!!G_uCfscf7eWS!cTLg9RWK1TAZRd267t_3ddjg2A3zeSjd5FNxTsRIYhs1g4IzWpbezllxLHh3QPr6XT9wd06Z_BFEk-k5CSK2PXif0Epc3w$> > and setting them to sensible values for your data completely fixes the> problem.> > Professorial advice: don't just trust things, make sure you understand> what is happening with your data.> > B> > On 7/24/25 16:28, Muretta, Julie via Ifeffit wrote:>> Hello, First of all, thank you all so very much for offering this>> platform to address XAS data processing!! It is wonderful to know it is>> available. I am having a problem using Athena "Linear Combination>> Fitting" with x-ray fluorescence>> ZjQcmQRYFpfptBannerStart>> This Message Is From an External Sender>> This message came from outside your organization.>> ZjQcmQRYFpfptBannerEnd>> Hello,>> >> First of all, thank you all so very much for offering this platform to>> address XAS data processing!! It is wonderful to know it is available.>> >> I am having a problem using Athena "Linear Combination Fitting" with x->> ray fluorescence data from SSRL. Last year, we collected sulfur K-edge&

[Ifeffit] Re: Problems with linear combination fitting S-XANES data in Athena

2025-07-25 Thread bnguyen via Ifeffit
Dear Julie, 


Thank you for sharing this issue.
I have reviewed the test.mu file, which contains the normalized
spectrum, and would like to share a couple of observations: 


In the pre-edge region (2400-2440 eV):
The spectrum exhibits NEGATIVE intensity values and a noticeable
increase in intensity across this energy range. 


In the EXAFS region (from ~2557 eV onward):
The spectrum shows a monotonic decrease in intensity, which contrasts
with the increasing trend seen in the pre-edge region. This pattern
suggests that the normalization may not have sufficiently flattened the
post-edge portion of the data. 


I recommend the following steps to improve the processing:
Truncate the data between 2400-2440 eV before normalization or fitting,
as the negative values and rising trend in this pre-edge region might be
disrupting the scaling and background correction. Additionally, redo the
normalization in Athena, and set the "Normalization order" to 3. This
higher-order polynomial fit is better suited for flattening the
post-edge region, especially in cases where a residual slope is present.


I hope these adjustments help resolve the issue you're encountering with
Linear Combination Fitting. Wishing you success with the rest of your
analysis! 


Warm regards,
Bokky, D.C. Nguyen
ALBA Synchrotron

On 2025-07-24 22:28, Muretta, Julie via Ifeffit wrote:

Hello, First of all, thank you all so very much for offering this platform to address XAS data processing!! It is wonderful to know it is available. I am having a problem using Athena "Linear Combination Fitting" with x-ray fluorescence 
ZjQcmQRYFpfptBannerStart 

This Message Is From an External Sender 
This message came from outside your organization. 

ZjQcmQRYFpfptBannerEnd 

Hello, 

First of all, thank you all so very much for offering this platform to address XAS data processing!! It is wonderful to know it is available.  

I am having a problem using Athena "Linear Combination Fitting" with x-ray fluorescence data from SSRL. Last year, we collected sulfur K-edge XANES data at SSRL, beamline 4-3 and processed them using SixPack (averaging 5 sweeps and normalization) and then used Athena to conduct linear combination fitting of the XANES region. It worked great! 

This year's data are presenting a problem when I get to the LCF step, however.  When I import the sample data .mu file into Athena and plot it by pressing the orange "E" button, the normalized spectrum looks like it should (albeit noisy and sometimes not the best data, but that is not Athena's fault). When I attempt to apply the Linear Combination Fitting algorithm, fitting a number of spectra from reference samples also collected last year and this year, Athena inverts the sample.mu spectrum (between -1 and 0 rather than 0 and 1). It does not invert old or new reference sample spectra. When I try this with old data, using old and new reference sample spectra, I do not have this problem. With the inverted sample spectrum, it often does not find a fit, but sometimes it does. 

Attached is an example Athena project file, the .mu file, and a plot of the output of a test fit, for your reference.  

I am hoping someone can please help me figure out why this is happening. I cannot see anything wrong, based on my limited experience, but hopefully it is something I have done wrong that can be easily corrected. 

Thank you in advance, 
Julie 

Julie Muretta, Ph.D. 

_Materials Testing Laboratory Manager_ 

_Center for Advanced Materials Processing (CAMP)_ 

(406) 496-4808 | [email protected] 

[1] 

ifeffit mailing list:  https://millenia.cars.aps.anl.gov/mailman3/lists/ifeffit.millenia.cars.aps.anl.gov/ 
to unsubscribe, send mail to [email protected]



Links:
--
[1]
https://urldefense.us/v3/__https://www.mtech.edu/__;!!G_uCfscf7eWS!cA8TPa7rlyGu5Vmwp--j7WUFcufVPj1XStOTpvP1kNOf8HO7A1eqt_eFg-C5Pa8ui9EE_-0t6oRf1MKw_luMhQCZfKEoU_0S$ifeffit mailing list:  
https://millenia.cars.aps.anl.gov/mailman3/lists/ifeffit.millenia.cars.aps.anl.gov/
to unsubscribe, send mail to [email protected]

[Ifeffit] Re: Problems with linear combination fitting S-XANES data in Athena

2025-07-25 Thread Muretta, Julie via Ifeffit
Hi Bruce,

Thank you for the time spent trying to figure out what I am doing wrong. I am 
new to XAFS data processing, and it is not surprising that what was happening 
was due to user error!

I will go through the Athena manual as you suggested and try to set up the 
normalization parameters differently for our data.

Thank you, again,
Julie


Julie Muretta, Ph.D.

Materials Testing Laboratory Manager

Center for Advanced Materials Processing (CAMP)

(406) 496-4808 | [email protected]

[Montana Technological 
University]<https://urldefense.us/v3/__https://www.mtech.edu/__;!!G_uCfscf7eWS!dJ3Z2OeOn8eAtphDTHxI2OtHR4Ef8G573gYkBPqYy4revtoOfrs_nRknwFF2EvmAUbYyxMBPnhBEkrESN7hFpjvlS-swEiqa$
 >




From: Ravel, Bruce via Ifeffit 
Sent: Friday, July 25, 2025 11:48 AM
To: [email protected] 
Cc: Ravel, Bruce 
Subject: [Ifeffit] Re: Problems with linear combination fitting S-XANES data in 
Athena

I should say also that Larch and Larix probably have smarter ways of choosing 
initial parameters for the data reduction. Athena's initial guesses are pretty 
good for EXAFS data, but often do funny things (like you saw here) for data 
measured
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd


I should say also that Larch and Larix probably have smarter ways of
choosing initial parameters for the data reduction.  Athena's initial
guesses are pretty good for EXAFS data, but often do funny things (like
you saw here) for data measured over a shorter energy range.

B


On 7/25/25 13:07, Ravel, Bruce wrote:
> Investigating further, it seems that the problem might instead be that
> you are putting too much faith in the default values for the various
> parameters used to process the data.  I mean this in the sense of the
> third paragraph of this page:
>
> https://urldefense.us/v3/__https://bruceravel.github.io/demeter/documents/Athena/bkg/index.html__;!!G_uCfscf7eWS!cTLg9RWK1TAZRd267t_3ddjg2A3zeSjd5FNxTsRIYhs1g4IzWpbezllxLHh3QPr6XT9wd06Z_BFEk-k5CSK2PXgjs08iPw$
>
> In short, you need to be more mindful of the values of the various
> processing parameters.  I am skeptical of the value of E0.  The values
> of the normalization parameters are certainly incorrect for this
> measurement, as is clear from the green and purple lines.  And when I
> click the orange normalization button, sure enough ... it plots the data
> inverted.
>
> Playing around just a bit with the parameters explained here:
>
>
> https://urldefense.us/v3/__https://bruceravel.github.io/demeter/documents/Athena/bkg/norm.html__;!!G_uCfscf7eWS!cTLg9RWK1TAZRd267t_3ddjg2A3zeSjd5FNxTsRIYhs1g4IzWpbezllxLHh3QPr6XT9wd06Z_BFEk-k5CSK2PXif0Epc3w$
>
> and setting them to sensible values for your data completely fixes the
> problem.
>
> Professorial advice: don't just trust things, make sure you understand
> what is happening with your data.
>
> B
>
> On 7/24/25 16:28, Muretta, Julie via Ifeffit wrote:
>> Hello, First of all, thank you all so very much for offering this
>> platform to address XAS data processing!! It is wonderful to know it is
>> available. I am having a problem using Athena "Linear Combination
>> Fitting" with x-ray fluorescence
>> ZjQcmQRYFpfptBannerStart
>> This Message Is From an External Sender
>> This message came from outside your organization.
>> ZjQcmQRYFpfptBannerEnd
>> Hello,
>>
>> First of all, thank you all so very much for offering this platform to
>> address XAS data processing!! It is wonderful to know it is available.
>>
>> I am having a problem using Athena "Linear Combination Fitting" with x-
>> ray fluorescence data from SSRL. Last year, we collected sulfur K-edge
>> XANES data at SSRL, beamline 4-3 and processed them using SixPack
>> (averaging 5 sweeps and normalization) and then used Athena to conduct
>> linear combination fitting of the XANES region. It worked great!
>>
>> This year's data are presenting a problem when I get to the LCF step,
>> however.  When I import the sample data .mu file into Athena and plot it
>> by pressing the orange "E" button, the normalized spectrum looks like it
>> should (albeit noisy and sometimes not the best data, but that is not
>> Athena's fault). When I attempt to apply the Linear Combination Fitting
>> algorithm, fitting a number of spectra from reference samples also
>> collected _last year and this year_, Athena inverts the sample.mu
>> spectrum (between -1 and 0 rather than 0 and 1). It does not invert old
>> or new reference sample spectra. When I try this with old data, using
>> old and new reference sample spectra, I do not have this probl

[Ifeffit] Re: Problems with linear combination fitting S-XANES data in Athena

2025-07-25 Thread Ravel, Bruce via Ifeffit




I should say also that Larch and Larix probably have smarter ways of choosing initial parameters for the data reduction. Athena's initial guesses are pretty good for EXAFS data, but often do funny things (like you saw here) for data measured



ZjQcmQRYFpfptBannerStart




  

  
	This Message Is From an External Sender
  
  
This message came from outside your organization.
  



 
  


ZjQcmQRYFpfptBannerEnd





I should say also that Larch and Larix probably have smarter ways of 
choosing initial parameters for the data reduction.  Athena's initial 
guesses are pretty good for EXAFS data, but often do funny things (like 
you saw here) for data measured over a shorter energy range.

B


On 7/25/25 13:07, Ravel, Bruce wrote:
> Investigating further, it seems that the problem might instead be that
> you are putting too much faith in the default values for the various
> parameters used to process the data.  I mean this in the sense of the
> third paragraph of this page:
> 
> https://urldefense.us/v3/__https://bruceravel.github.io/demeter/documents/Athena/bkg/index.html__;!!G_uCfscf7eWS!cTLg9RWK1TAZRd267t_3ddjg2A3zeSjd5FNxTsRIYhs1g4IzWpbezllxLHh3QPr6XT9wd06Z_BFEk-k5CSK2PXgjs08iPw$
> 
> In short, you need to be more mindful of the values of the various
> processing parameters.  I am skeptical of the value of E0.  The values
> of the normalization parameters are certainly incorrect for this
> measurement, as is clear from the green and purple lines.  And when I
> click the orange normalization button, sure enough ... it plots the data
> inverted.
> 
> Playing around just a bit with the parameters explained here:
> 
>https://urldefense.us/v3/__https://bruceravel.github.io/demeter/documents/Athena/bkg/norm.html__;!!G_uCfscf7eWS!cTLg9RWK1TAZRd267t_3ddjg2A3zeSjd5FNxTsRIYhs1g4IzWpbezllxLHh3QPr6XT9wd06Z_BFEk-k5CSK2PXif0Epc3w$
> 
> and setting them to sensible values for your data completely fixes the
> problem.
> 
> Professorial advice: don't just trust things, make sure you understand
> what is happening with your data.
> 
> B
> 
> On 7/24/25 16:28, Muretta, Julie via Ifeffit wrote:
>> Hello, First of all, thank you all so very much for offering this
>> platform to address XAS data processing!! It is wonderful to know it is
>> available. I am having a problem using Athena "Linear Combination
>> Fitting" with x-ray fluorescence
>> ZjQcmQRYFpfptBannerStart
>> This Message Is From an External Sender
>> This message came from outside your organization.
>> ZjQcmQRYFpfptBannerEnd
>> Hello,
>>
>> First of all, thank you all so very much for offering this platform to
>> address XAS data processing!! It is wonderful to know it is available.
>>
>> I am having a problem using Athena "Linear Combination Fitting" with x-
>> ray fluorescence data from SSRL. Last year, we collected sulfur K-edge
>> XANES data at SSRL, beamline 4-3 and processed them using SixPack
>> (averaging 5 sweeps and normalization) and then used Athena to conduct
>> linear combination fitting of the XANES region. It worked great!
>>
>> This year's data are presenting a problem when I get to the LCF step,
>> however.  When I import the sample data .mu file into Athena and plot it
>> by pressing the orange "E" button, the normalized spectrum looks like it
>> should (albeit noisy and sometimes not the best data, but that is not
>> Athena's fault). When I attempt to apply the Linear Combination Fitting
>> algorithm, fitting a number of spectra from reference samples also
>> collected _last year and this year_, Athena inverts the sample.mu
>> spectrum (between -1 and 0 rather than 0 and 1). It does not invert old
>> or new reference sample spectra. When I try this with old data, using
>> old and new reference sample spectra, I do not have this problem. With
>> the inverted sample spectrum, it often does not find a fit, but
>> sometimes it does.
>>
>> Attached is an example Athena project file, the .mu file, and a plot of
>> the output of a test fit, for your reference.
>>
>> I am hoping someone can please help me figure out why this is happening.
>> I cannot see anything wrong, based on my limited experience, but
>> hopefully it is something I have done wrong that can be easily corrected.
>>
>> Thank you in advance,
>> Julie
>>
>> *Julie Muretta, Ph.D.*
>>
>> /Materials Testing Laboratory Manager/
>>
>> /Center for Advanced Materials Processing (CAMP)/
>>
>> _(406) 496-4808_ | [email protected]
>>
>> _Montana Technological University > urldefense.us/v3/__https://urldefense.us/v3/__https://*www.mtech.edu/__;!!G_uCfscf7eWS!__;Kg!!G_uCfscf7eWS!cTLg9RWK1TAZRd267t_3ddjg2A3zeSjd5FNxTsRIYhs1g4IzWpbezllxLHh3QPr6XT9wd06Z_BFEk-k5CSK2PXgODKVawg$
>> cA8TPa7rlyGu5Vmwp--j7WUFcufVPj1XStOTpvP1kNOf8HO7A1eqt_eFg-
>> C5Pa8ui9EE_-0t6oRf1MKw_luMhQCZfKEoU_0S$__;Lw!!P4SdNyxKAPE!
>> EsJaL2BxJwKvOZafj458aUdip_eUgtx-
>> lizGzLA_TcIfEF8XzVrbH_6BmEsPZ2iUMyPZTovwBZO2jrF7WP-1CaTNdG6yRw$>_
>>
>>
>>
>> ifeffit mailing list:  https://millenia.cars.aps.anl.g

[Ifeffit] Re: Problems with linear combination fitting S-XANES data in Athena

2025-07-25 Thread Ravel, Bruce via Ifeffit




Julie, I don't think I fully understand what's going on, but I do have a suggestion. When you import your data into Athena, don't choose the "norm(E)" option as shown here: https: //urldefense. us/v3/__https: //bruceravel. github. io/demeter/documents/Athena/import/columns. html*data-types-and-energy-units__;Iw!!G_uCfscf7eWS!YmhtPOatJvrPkX-FoHjbbMKxlec3CN0sf1zqYX-oTdgHGBqqqP9Bj0FZkO4_OxkvPEXanDEwy7TvXuH1RGKdISoLp-n41g$



ZjQcmQRYFpfptBannerStart




  

  
	This Message Is From an External Sender
  
  
This message came from outside your organization.
  



 
  


ZjQcmQRYFpfptBannerEnd





Julie,

I don't think I fully understand what's going on, but I do have a 
suggestion.

When you import your data into Athena, don't choose the "norm(E)" option 
as shown here:

  
https://urldefense.us/v3/__https://bruceravel.github.io/demeter/documents/Athena/import/columns.html*data-types-and-energy-units__;Iw!!G_uCfscf7eWS!YmhtPOatJvrPkX-FoHjbbMKxlec3CN0sf1zqYX-oTdgHGBqqqP9Bj0FZkO4_OxkvPEXanDEwy7TvXuH1RGKdISoLp-n41g$

Import all of your data as "mu(E)" instead.

I suspect that the "norm(E)" option is triggering a problem of some 
sort.   I'd like to know if not using norm(E) fixes your display problem 
before investigating deeper.

B


On 7/24/25 16:28, Muretta, Julie via Ifeffit wrote:
> Hello, First of all, thank you all so very much for offering this 
> platform to address XAS data processing!! It is wonderful to know it is 
> available. I am having a problem using Athena "Linear Combination 
> Fitting" with x-ray fluorescence
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> Hello,
> 
> First of all, thank you all so very much for offering this platform to 
> address XAS data processing!! It is wonderful to know it is available.
> 
> I am having a problem using Athena "Linear Combination Fitting" with x- 
> ray fluorescence data from SSRL. Last year, we collected sulfur K-edge 
> XANES data at SSRL, beamline 4-3 and processed them using SixPack 
> (averaging 5 sweeps and normalization) and then used Athena to conduct 
> linear combination fitting of the XANES region. It worked great!
> 
> This year's data are presenting a problem when I get to the LCF step, 
> however.  When I import the sample data .mu file into Athena and plot it 
> by pressing the orange "E" button, the normalized spectrum looks like it 
> should (albeit noisy and sometimes not the best data, but that is not 
> Athena's fault). When I attempt to apply the Linear Combination Fitting 
> algorithm, fitting a number of spectra from reference samples also 
> collected _last year and this year_, Athena inverts the sample.mu 
> spectrum (between -1 and 0 rather than 0 and 1). It does not invert old 
> or new reference sample spectra. When I try this with old data, using 
> old and new reference sample spectra, I do not have this problem. With 
> the inverted sample spectrum, it often does not find a fit, but 
> sometimes it does.
> 
> Attached is an example Athena project file, the .mu file, and a plot of 
> the output of a test fit, for your reference.
> 
> I am hoping someone can please help me figure out why this is happening. 
> I cannot see anything wrong, based on my limited experience, but 
> hopefully it is something I have done wrong that can be easily corrected.
> 
> Thank you in advance,
> Julie
> 
> *Julie Muretta, Ph.D.*
> 
> /Materials Testing Laboratory Manager/
> 
> /Center for Advanced Materials Processing (CAMP)/
> 
> _(406) 496-4808_ | [email protected]
> 
> _Montana Technological University  urldefense.us/v3/__https://urldefense.us/v3/__https://*www.mtech.edu/__;!!G_uCfscf7eWS!__;Kg!!G_uCfscf7eWS!YmhtPOatJvrPkX-FoHjbbMKxlec3CN0sf1zqYX-oTdgHGBqqqP9Bj0FZkO4_OxkvPEXanDEwy7TvXuH1RGKdISrGvGh-Vg$ 
> cA8TPa7rlyGu5Vmwp--j7WUFcufVPj1XStOTpvP1kNOf8HO7A1eqt_eFg- 
> C5Pa8ui9EE_-0t6oRf1MKw_luMhQCZfKEoU_0S$__;Lw!!P4SdNyxKAPE! 
> EsJaL2BxJwKvOZafj458aUdip_eUgtx- 
> lizGzLA_TcIfEF8XzVrbH_6BmEsPZ2iUMyPZTovwBZO2jrF7WP-1CaTNdG6yRw$>_
> 
> 
> 
> ifeffit mailing list:  https://millenia.cars.aps.anl.gov/mailman3/lists/ifeffit.millenia.cars.aps.anl.gov/ 
> to unsubscribe, send mail to [email protected]

-- 
  Bruce Ravel   [email protected]

  National Institute of Standards and Technology
  Synchrotron Science Group at NSLS-II
  Lead Beamline Scientist, 6BM (BMM)
  Building 743, Room 114
  Upton NY, 11973

  Homepage:https://urldefense.us/v3/__http://bruceravel.github.io/home/__;!!G_uCfscf7eWS!YmhtPOatJvrPkX-FoHjbbMKxlec3CN0sf1zqYX-oTdgHGBqqqP9Bj0FZkO4_OxkvPEXanDEwy7TvXuH1RGKdISo15h2RgQ$
  Beamline:https://urldefense.us/v3/__https://www.bnl.gov/ps/beamlines/beamline.php?r=6-BM__;!!G_uCfscf7eWS!YmhtPOatJvrPkX-FoHjbbMKxlec3CN0sf1zqYX-oTdgHGBqqqP9Bj0FZkO4_OxkvPEXanDEwy7TvXuH1RGKdISrzgoLNxg$
  Software:https://urldefense.us/v3/__https://github.com/bruceravel_