Convert 4D-STEM data to 2D-powder diffraction pattern.
Project description
STEMDIFF :: 4D-STEM dataset to 2D-diffractogram
- The STEMDIFF package converts...
... a 4D-STEM dataset from a SEM microscope (huge and complex)
... to a 2D-powder diffraction pattern (simple and easy to work with). - The STEMDIFF package is a key part of our 4D-STEM/PNBD method,
which was described (together with the package) in open-access publications:- Nanomaterials 11 (2021) 962. https://doi.org/10.3390/nano11040962
- Materials 14 (2021) 7550. https://doi.org/10.3390/ma14247550
- If you use STEMDIFF package, please cite the 2nd publication (or both :-).
Principle
Installation
- Requirement: Python with sci-modules: numpy, matplotlib, scipy, pandas
pip install scikit-image
= 3rd party package for advanced image processingpip install tqdm
= to show progress meter during long summationspip install idiff
= to improve diffractograms (remove noise, background ...)pip install stemdiff
= STEMDIFF package itself (uses all packages above)
Quick start
- See how it works:
- Look at worked example in Jupyter.
- Try it yourself:
- Download complete examples with data.
- After downloading, unzip and follow the instructions in readme file.
Documentation, help and examples
- PyPI repository.
- GitHub repository.
- GitHub Pages with documentation.
Versions of STEMDIFF
- Version 1.0 = Matlab: just a simple summation of 4D-dataset
- Version 2.0 = like v.1.0 + post-processing in Jupyter
- Version 3.0 = Python scripts: summation + S-filtering
- Version 4.0 = Python package: summation + S-filtering + deconvolution
- summation = summation of all 2D-diffractograms
- S-filtering = sum only diffractograms with strong diffractions = high S
- deconvolution = reduce the primary beam spread effect ⇒ better resolution
- Version 4.2 = like v.4.0 + a few important improvements, such as:
- sum just the central region with the strongest diffractions ⇒ higher speed
- 3 centering types: (0) geometry, (1) center of 1st, (2) individual centers
- better definition of summation and centering parameters
- better documentation strings + demo data + improved master script
- Version 5.0 = complete rewrite of v.4.2
- all key features of v.4.2 (summation, filtering, deconvolution)
- conversion 2D-diffractogram → 1D-profile moved to package EDIFF
- several generalizations and improvements, namely:
- possibility to define and use more detectors/datafile formats
- better filtering (including estimated number of diffractions)
- more types of deconvolution (experimental; to be finished in v.6.0)
- Version 5.1 = (beta) support for parallel processing
- Version 5.2 = (beta) improvement of diff.patterns in sister package idiff
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stemdiff-5.2.6.tar.gz
(26.5 kB
view details)
Built Distribution
stemdiff-5.2.6-py3-none-any.whl
(27.8 kB
view details)
File details
Details for the file stemdiff-5.2.6.tar.gz
.
File metadata
- Download URL: stemdiff-5.2.6.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75c297083ff039baa48c5b560335cd2b68f7f2bcf1b9475560c84236c30864eb |
|
MD5 | 57772010a3ee9cc5d6ec4636404ecdbd |
|
BLAKE2b-256 | b0916e1b1a9e93481d9b78af85868397646c774b2ef1052b5bfbce2967094057 |
File details
Details for the file stemdiff-5.2.6-py3-none-any.whl
.
File metadata
- Download URL: stemdiff-5.2.6-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d14b507881a5e651412ecbcddb52b0380d7d3b6ac884337a445eaecfadcf61d |
|
MD5 | b39c7dd054f2eb3166ceaf208a6da4d6 |
|
BLAKE2b-256 | b6156abdae8cd14a203bd3d4568925b38f842660ec66dba42acf5ac0218f78f0 |