Skip to main content

HREELS data handling and simulation

Set of data analysis routines for surface vibrational spectroscopy based on a Delta05 spectrometer with software from VSI or SPECS.

Simple data reading and plotting routines are provided, but also advanced routines for in depth analysis. A fast data browser as graphical user interface is included as ViewHREELS.py. It can also take command line arguments.

Additional a python interface to a Fortran-based calculation of full HREEL spectra is provided in class lambin (in calcHREELS20.py). Note that this part requires a local compilation (via "f2py3 -c -m myEels20 myEels20.f90") from the Fortran90 files. Only for the Linux-based python version 3.8, there are complied files provided. For details see below.

Most of the routines are within the class HREELS (HREELS.py). A simple command line program is "showHREELS.py", which reads one data file and plots the spectrum with a second amplified trace.

Usage:  >python showHREELS.py filename [factor wavenumber]

    E.g.: python showHREELS.py H9H03 100 53 

More general usage:

Read dataset by calling the HREELS class: data1 = HREELS('filename', datapath='datapath') # Here you can omit the extension '.gph' # The second argument is optional

This will assign/calculate the following properties:

data1.filename
data1.datapath
data1.startTime
data1.stopTime
data1.totalTime
data1.timePerChannel
data1.numberOfSegments
data1.energy    # Electron kinetic energy
data1.filament  # Filament current in Ampere
data1.segments  # list of segment info
data1.data      # [(-100.1021616, 259.5), (-98.5374352, 264.5), ...]
data1.xdata
data1.ydata
data1.maxIntensity  # Count rate of elastic peak
data1.resolution    # width of elastic peak

The following methods are defined within the class:

info()      :   Print information about the spectrum
plot()      :   Draws the spectrum. Optional arguments are:
                (xmin=None, xmax=None, factor=1, label='x', normalized=False, color="b-",marker=True)

plotInfoAmp()   Draws spectrum together with amplified trace.
pickPeak()  :   Select peak by mouse cursor. The call of figure() is required before.
selectData():   Returns the data between wavenumbers x1 and x2
findIndex(lossenergy): Returns the data array index for a given energy loss
setMarker(x, y, ymin=0, size=None): Sets vertical marker with text label 
plotWaterFall(...):

calcHREELS20

These routines are based on the publication "Computation of the surface electron-energy-loss spectrum in specular geometry for an arbitrary plane-stratified medium" by P. Lambin, J.-P. Vigneron, and A. A. Lucas, in the Journal "Computer Physics Communications 60, 351-64(1990)".

It allows to handle a heterostructure of different materials in a easy way. The code is modified to comply with Fortran90 and wraped to python functions. See the example in Examples/calcHREELS1.py for NiO(001).

Complex calculations for perovskite oxides are provided in the examples calcHREELS2.py and calcHREELS3.py.

dielectrics20

These routines allow to model the dielectric properties of materials described by different oscillators and Drude responses. Quantities as real and imaginary part of the dielectric function, optical conductivity, IR reflectivity, and surface loss are calculated. The sum rules of optical conductivity can be analyzed.

Release files for libhreels 2.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libhreels 2.3.1
File Size Uploaded
libhreels-2.3.1.tar.gz 714.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for libhreels 2.3.1
File Interpreter ABI Platform
libhreels-2.3.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 1.4 MB

Release files / libhreels-2.3.1.tar.gz

Download URL libhreels-2.3.1.tar.gz
Size 714.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a38fffe5e15c8beab641552eb2944475b8b3bbccbdde80fa79620be9367b97d9
BLAKE2b-256 checksum
How to use checksums
47d1a7c4b1e69e5d471dc832fb7a8c89825e2b4727d4420ad8b994c295aecc79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-71-generic

Release files / libhreels-2.3.1-py2.py3-none-any.whl

Download URL libhreels-2.3.1-py2.py3-none-any.whl
Size 729.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
02f57617b01cb70405c1785cb859eedb54f200684cd67c2eae57a22ca677121c
BLAKE2b-256 checksum
How to use checksums
03382f79a30950e54189912a157134d4d4fe5a25ba98cdbf11a1553e9da74f33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-71-generic

Release history Release notifications | RSS feed

This release

2.3.1 This release

2 release files

2.3.0

3 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.8

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.3

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.9

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.7

2 release files

0.2.4

2 release files

0.2.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page