Published April 26, 2022 | Version Weighted PCA and Hyperspy v1.7.0+
Software Open

Hyperspectral fitting using hyperspy

  • 1. Institute of Materials, Ecole Polytechnique fédérale de Lausanne
  • 2. Attolight SA

Description

Update:

This version includes updates to use weighted PCA in heteroscedastic noise estimation.

This set of Jupyter notebooks are used in the analysis of hyperspectral datasets with the hyperspy library.

The file "clmap_type-IIB_HPHT_diamond-spikes_removed.hspy" is the example dataset.

Summary of the points covered in the different notebooks:

  • 01 - Data Cleaning : covers how to fit and remove background, correct imaging shift using cross correlation
  • 02 and 03 - Noise Analysis and eV conversion: covers how to measure and model heteroscedastic noise in the dataset using Principal Component Analysis. Conversion from nm to eV spectral representation with jacobian conversion, setting of a variance model in the hyperspy object
  • 04 - Model Fitting: Defining and fitting a model on the data. Saving the results
  • 04bis - Fit results plot formatting: Formatting plots with all fit results as well as \(\chi^2 \) statistical goodness-of-fit indicators

At the time of initial upload (30.11.2021), hyperspy is in v 1.6.5 which does not support non-uniform axes for data treatment in eV space. The file "Readme - Installing hyperspy from source" contains instructions on how to install the development version.

Files

01 - Data Cleaning.ipynb

Files (4.1 MB)

Name Size Download all
md5:ba10dec08fa28dcb50d72fd63db76ff8
12.5 kB Preview Download
md5:7981ea9a9f2f8cb917de39a2f79501a2
83.0 kB Preview Download
md5:c37735926632b63350a6d87d8e6eb5b1
34.3 kB Preview Download
md5:89757fc7421f3285783d348c999dc4ee
14.0 kB Preview Download
md5:4a4ce8f7ec5c41c4b16bbe08cb21fa21
4.0 MB Download
md5:eefb4a5322f7f3b160e00193d2c56727
1.9 kB Preview Download

Additional details

Funding

NCCR QSIT: Quantum Science and Technology (phase III) 51NF40-185902
Swiss National Science Foundation
Ultra-bright electron sources for pulsed electron microscopy 20B2-1_176680
Swiss National Science Foundation