Published February 25, 2025 | Version v1

Simulated electron diffraction data and MATLAB scripts for data simulation and sorting

Description

There are four main MATLAB scripts, including:

main_generate_patterns_triclinic.m

This script generates a triclinic unit cell with a given volume and lattice parameters within specified ranges. It calculates 1,000 electron diffraction patterns, uniformly oriented in space, and produces black-and-white patterns in JPG format.

The key parameters include:

·        Electron wavelength (WL) in Å

·        Excitation error in Å⁻¹

·        Data resolution in Å⁻¹

These parameters are embedded in the file names. For example, the pattern:

DIFF_Fibonacci_CELL_3.5784_10.5383_17.1131_116.8042_103.9746_106.8257__WL_0.0251_ExcErr_0.01_RES_1_ori_-0.25_-0.62647_-0.73826.jpg

was generated for a unit cell with the following lattice parameters:

·        a = 3.5784 Å

·        b = 10.5383 Å

·        c = 17.1131 Å

·        α = 116.8042°

·        β = 103.9746°

·        γ = 106.8257°

·        Electron wavelength = 0.0251 Å

·        Excitation error = 0.01 Å⁻¹

·        Data resolution = 1 Å⁻¹

·        Orientation vector of the pattern = [-0.25, -0.62647, -0.73826]

The coordinate system is defined with the z-axis along the incident electron beam and the x- and y-axes in the detector plane. For simplicity, the detector distance is set to 0.

The script main_generate_patterns_monoclinic.m generates similar patterns with a similar parameter set but using a monoclinic unit cell. In this case, α and γ are fixed to 90°. Additionally, the script produces extinctions along the b-axis, according to 21 screw axis extinctions, which are consistent with the monoclinic crystal system.

The script main_image_sorter.m allows for manual labelling of data for training.

The script main_sort_results.m processes a result .json file and automatically sorts the diffraction patterns into folders based on their predicted class and confidence level.

The data folder contains simulated diffraction patterns (binary jpg) sorted into classes.

Files

_data_2_upload.zip

Files (132.5 MB)

Name Size Download all
md5:9d9bccd45bbd918ef93a3a03470a138c
132.5 MB Preview Download
md5:d9a38909c84ea29f879e794f70a984e5
1.9 kB Download
md5:79cdc6cb5969d198042fd2e85daee868
930 Bytes Download
md5:1226fcb5d85edb1008de3d8bb22fa511
1.3 kB Download
md5:3e40a59ac0d6955bf112154b1e87a8c1
2.2 kB Download
md5:8373c524f67cd12b422fad15bfffea54
958 Bytes Download
md5:42cbeda0e1bee5edd9c927e9f1b6da34
5.5 kB Download
md5:c953f88ab56588d925088622f1be070a
4.0 kB Download
md5:56f4d285d42e9b5bdd0695d5270ed6b0
2.3 kB Download
md5:1702592db89151da5464b9e891c1044f
4.6 kB Download
md5:5b10c3e656afc43b70282efcbe921fe3
1.4 kB Download
md5:ab26e72182e6323f92fe89f2d9029899
510 Bytes Download
md5:b71a01d2821bcb50c81936fdcdc6961a
1.2 kB Download
md5:cbdf792f891bfe8c0c1e4c4799b17545
670 Bytes Download

Additional details

Software

Programming language
MATLAB