Data analysis
The following tools are typically used to analyze MAXPEEM measurement data:
athina is an in-house developed analysis toolbox for Igor Pro 9 or newer.
Python-based MAX IV Jupyterlab notebook
Igor Pro (athina package)
athina provides a comprehensive package for PEEM/LEEM/PES/ARPES/XMC(L)D-PEEM/STM data analysis.
Check athina’s documentation hosted at MAXIV’s intranet or publicly at gitlab. There you can find instructions on how to install athina and how to use it to process your data.
Note
You can use Igor Pro for during you beamtime and still be able to access your analysis at home even if you do not have an Igor Pro license. Save your analysis as HDF5 packed experiment file (.h5xp, which is the default option at MAXPEEM) and you will be able to access your files using any HDF5 program (Silx for example). We can also provide a python script to extract all images, image stacks, plots, and notes from the Igor Pro file.
Tip
Access to the source code outside MAXIV at gitlab.
ImageJ
Background image substraction with ImageJ
Import both images
Select Process > Image Calculator
Choose the original image as Image1, the background as Image2, and select Subtract.
Drift correction with ImageJ
Import sequence: File – Import – Image sequence
Check spectra: Image – Stack – Plot z-axis profile
Adjust image: Image – Adjust – Brightness/Contrast
Drift correction: select a rectangle area – Plugins – Template Matching – Align slices in stack – search area 20 (100) pixels for small (large) drift
Plugins: https://sites.imagej.net/Template_Matching/plugins/
Plotting LEED with ImageJ
Import data:File – Import – Raw
Calculate the
Offset to first image = file size in byte - 2*2048*2048
The size of file can be found in the Property of data file.

Calculate XMCD with ImageJ
Import sequence from folder(two files): circular left and circular right, e.g. named as CL, CR.
Drift correction.
File-Open-calculateAS.ijm (file locates at c disk - Fiji - micro) and run on the drift-corrected images. The created image represents CL/CR.
If user has clicked on other image, remember to click on the XMCD image before running the code.
Python with Jupyterhub
Guide’s coming soon.