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_ | jmuretta@mtech.edu
> 
> _Montana Technological University <https://urldefense.com/v3/__https://  
> 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 ifeffit-leave@millenia.cars.aps.anl.gov

-- 
  Bruce Ravel  ------------------------------------ bravel@bnl.gov

  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__;!!G_uCfscf7eWS!YmhtPOatJvrPkX-FoHjbbMKxlec3CN0sf1zqYX-oTdgHGBqqqP9Bj0FZkO4_OxkvPEXanDEwy7TvXuH1RGKdISqOWvZGdw$
  Demeter:     https://urldefense.us/v3/__http://bruceravel.github.io/demeter/__;!!G_uCfscf7eWS!YmhtPOatJvrPkX-FoHjbbMKxlec3CN0sf1zqYX-oTdgHGBqqqP9Bj0FZkO4_OxkvPEXanDEwy7TvXuH1RGKdISpMi32mmg$