Replies: 3 comments 1 reply
-
Hi, @ericpre , thanks very much for processing this report and moving it into the discussion channel. I found a way to add the Arctan component into my fitting with the codes below:
Now I can fit the ELNES with two fixed gaussian and one arctan, like below However, when I tried to fit the full energy range with I updated my codes in the jupyter-lab code in the below zip file, along with the raw EELS data. |
Beta Was this translation helpful? Give feedback.
-
Something updated! I found the codes from @thomasaarholt for the fitting of Zr_L edge fine structure: I modified it for my C_K edge fitting, and get a better result.
The fitting error looks like that the onset_energy of C_K fine structure is not so suitable. I also tried the twin function of C_K onset_energy with the center of the second gaussian peak, but it went worse. Hi, @thomasaarholt , if you see this discussion, any suggestion from you will be appreciated very much! |
Beta Was this translation helpful? Give feedback.
-
The two approaches are similar: one is using a arctan to model the continuum, the other one is using a core edge component. From a quick glance, there are a few things you could do to improve the fit:
|
Beta Was this translation helpful? Give feedback.
-
Hi, all,
I am trying to fit one EEL spectrum by using exspy, like below:
I hope to use gaussian functions to fit the first two peaks (one is around 286 eV and the second is around 292 eV) with the fine structure as well.
The aim is to get the center and width of the two peaks here.
I followed the method in Fine Structure Analysis part of eXSpy tutorial, but the result (below) is not so good.
Then I tried another method:
Firstly I subtract the background by using the s.remove_background() function;
Secondly I fit the first two peaks by using two gaussian functions separately.
Then I fix the parameters of the two gaussian peaks and fit the fine structure.
This is the results below:
Here, I confronted a problem: I do not know how to fit the plateau between these two gaussian peaks.
And once I set all parameters free, the results went very wrong.
I suppose that I need to add a EELSArctan function for the full fitting, but do not find such an instruction in eXSpy online tutorial.
I uploaded my jupyter file and raw data in the ZIP below.
If anyone has experience about this issue or is interested in it, any discussion is welcomed. And any suggestions will be appreciated very much!
ELNES fit.zip
Beta Was this translation helpful? Give feedback.
All reactions