Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo on elemental mapping w EELS #39

Closed
wants to merge 6 commits into from

Conversation

idahj
Copy link

@idahj idahj commented Sep 24, 2017

I've made a demo on creating elemental maps using EEL spectra.

@thomasaarholt
Copy link
Contributor

Great that you're adding this! It's been needed for a while!

I've got a few questions and suggestions:

For decomposition you should use the poissonian noise argument=True. That's the first argument in the method. It'll give you a (sometimes much) better component separation. This is valid because the noise in eels is shot noise and is poissonian distributed (also applies to EDS).

Your method of convolving with the zlp is interesting (and sounds reasonably correct) but perhaps a bit peculiar? It might be better to use an example featuring a ll + cl dataset and then use a "if you don't have a ll dataset then do this" approach. However, if you haven't got that we'll stock with this! Maybe also explain that the fwhm is often known so that's "why" we can choose that.

Fitting with mpfit is outdated - it's better and faster to use leastsq. :)

Nice and indepth guide!

@idahj
Copy link
Author

idahj commented Sep 24, 2017

Thanks, Thomas.

  1. Noise:
    As I understand it, with EELS the noise can be viewed as Gaussian distributed (while EDS can not)?

  2. Low loss:
    For this sample we did not use dual-EELS in order to maximize the spectral dynamic range, and optimize the signal from the trace Cu and Zn.

  3. Thanks for the tip on leastsq, I wasn't aware that the method could be bounded. I've changed the demo to using this rather than mpfit.

@idahj
Copy link
Author

idahj commented Sep 27, 2017

I've removed PCA as one of the processing steps, as it potentially can introduce artifacts. It makes the data look nicer, but not necessarily more correct.

Next, I'll add a better explanation on fhwm.

magnunor and others added 2 commits November 14, 2019 21:23
Also minor restructuring of datasets for this tutorial.
Update elemental mapping EELS tutorial to HyperSpy 1.5
@magnunor
Copy link
Contributor

I updated the code to work for HyperSpy 1.5, improved the text (including the FWHM mentioned above), and several minor code improvements.
Should be ready for review or merging!

@francisco-dlp
Copy link
Member

This is a nice example. One minor comment: why removing the background? One of the advantages of curve fitting is that the background is part of the model.

@magnunor
Copy link
Contributor

Good point! I added the power law background into the main model.

@magnunor
Copy link
Contributor

Is it ok if I merge this pull request? I've had several people looking for a notebook like this.

(Asking, since I'm one of its authors).

@jlaehne
Copy link
Member

jlaehne commented Aug 28, 2021

anything blocking to merge this PR?

@ericpre
Copy link
Member

ericpre commented Mar 17, 2024

Moved to hyperspy/exspy-demos#3.

@ericpre ericpre closed this Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants