Bullseye and circular probe diffraction
Scanning convergent beam electron diffraction data of gold nanoparticles
4DSTEM_experiment/data/datacubes/polyAu_4DSTEM/data) and simulated
strained gold (
with one file using a standard circular aperture and another using a bullseye
Electron Bessel beam diffraction
Scanning convergent beam electron diffraction with ring-shaped aperture and overlapping diffraction orders.
High-resolution 4D STEM dataset of SrTiO3
This dataset can be used to test various analysis methods for high-resolution 4D STEM, including phase contrast methods such as ptychography.
Synthetic 4D STEM dataset based on a SrTiO3 supercell
This dataset allows to investigate phase contrast methods for 4D scanning transmission electron microscopy, such as ptychography.
Creating random data
Random data can be generated in the following way. It should be kept in mind that the data generated in this way can only be used for simple testing as it has no physical significance.
# Create sample raw file import numpy as np sample_data = np.random.randn(16, 16, 16, 16).astype("float32") sample_data.tofile("raw_sample.raw")
# Load through Python API from libertem.api import Context if __name__ == '__main__': ctx = Context() ds = ctx.load("raw", path="./raw_sample.raw", nav_shape=(16, 16), dtype="float32", sig_shape=(16, 16))
# Create sample HDF5 file import h5py import numpy as np file = h5py.File('hdf5_sample.h5','w') sample_data = np.random.randn(16,16,16,16).astype("float32") dataset = file.create_dataset("dataset",(16,16,16,16), data=sample_data) file.close()
# Load through Python API from libertem.api import Context if __name__ == '__main__': ctx = Context() ds = ctx.load("hdf5", path="./hdf5_sample.h5", ds_path="/dataset")
Alternatively, you can enter the parameters (scan_size, dtype, detector_size) directly into the load dialog of the GUI. For more details on loading, please check Loading data.