원시데이터 수집 시스템
선정목록으로

py4DSTEM: A Software Package for Four-Dimensional Scanning Transmission Electron Microscopy Data Analysis

간접 관련 화학·수지 · (21) 에폭시수지 (6) PEM(고분자전해질막)(10) 아라미드(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Benjamin H. Savitzky — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  2. Steven E. Zeltmann — Department of Materials Science and Engineering, University of California, Berkeley, CA94720, USA
  3. Lauren A. Hughes — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  4. Hamish G. Brown — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  5. Shiteng Zhao — Department of Materials Science and Engineering, University of California, Berkeley, CA94720, USA|||National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  6. Philipp M. Pelz — Department of Materials Science and Engineering, University of California, Berkeley, CA94720, USA|||National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  7. Thomas C. Pekin — Institut für Physik, Humboldt-Universität zu Berlin, Newtonstraße 15, 12489Berlin, Germany
  8. Edward S. Barnard — Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  9. Jennifer Donohue — Department of Materials Science and Engineering, University of California, Berkeley, CA94720, USA|||National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  10. Luis Rangel DaCosta — Department of Materials Science and Engineering, University of Michigan, Ann Arbor, MI48109, USA|||National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  11. Ellis Kennedy — Department of Materials Science and Engineering, University of California, Berkeley, CA94720, USA|||National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  12. Yujun Xie — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  13. Matthew T. Janish — Los Alamos National Laboratory, Los Alamos, NM87545, USA
  14. Matthew M. Schneider — Los Alamos National Laboratory, Los Alamos, NM87545, USA
  15. Patrick Herring — Toyota Research Institute, Los Altos, CA94022, USA
  16. Chirranjeevi Gopal — Toyota Research Institute, Los Altos, CA94022, USA
  17. Abraham Anapolsky — Toyota Research Institute, Los Altos, CA94022, USA
  18. Rohan Dhall — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  19. Karen C. Bustillo — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  20. Peter Ercius — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  21. Mary C. Scott — Department of Materials Science and Engineering, University of California, Berkeley, CA94720, USA|||National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  22. Jim Ciston — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  23. Andrew M. Minor — Department of Materials Science and Engineering, University of California, Berkeley, CA94720, USA|||National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
  24. Colin Ophus — National Center for Electron Microscopy, Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA94720, USA
DOI
101017s1431927621000477
저널
Microscopy and Microanalysis
발행년도
2021
발행기관
Oxford University Press
피인용수
277
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1017/s1431927621000477
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W3012644610

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(6) PEM(고분자전해질막), (10) 아라미드, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
4D-STEM, scanning transmission electron microscopy, structural analysis, strain mapping, phase retrieval
판단 근거
이 논문은 4D-STEM 데이터를 분석하기 위한 소프트웨어 패키지(py4DSTEM)를 다루며, 결정 구조, 격자 변형(strain), 상(phase) 등을 원자 수준에서 분석하는 기법을 제시합니다.
R&D 활용 포인트
에폭시/페놀 수지, PEMFC 강화막, CPI 필름 등 고분자 및 복합소재의 나노 구조, 결정성, 계면 결함 및 격자 변형을 정밀 분석하는 데 활용 가능합니다.
평가 입력
본문 150,322자 중 30,032자 발췌

초록

Scanning transmission electron microscopy (STEM) allows for imaging, diffraction, and spectroscopy of materials on length scales ranging from microns to atoms. By using a high-speed, direct electron detector, it is now possible to record a full two-dimensional (2D) image of the diffracted electron beam at each probe position, typically a 2D grid of probe positions. These 4D-STEM datasets are rich in information, including signatures of the local structure, orientation, deformation, electromagnetic fields, and other sample-dependent properties. However, extracting this information requires complex analysis pipelines that include data wrangling, calibration, analysis, and visualization, all while maintaining robustness against imaging distortions and artifacts. In this paper, we present py4DSTEM, an analysis toolkit for measuring material properties from 4D-STEM datasets, written in the Python language and released with an open-source license. We describe the algorithmic steps for dataset calibration and various 4D-STEM property measurements in detail and present results from several experimental datasets. We also implement a simple and universal file format appropriate for electron microscopy data in py4DSTEM, which uses the open-source HDF5 standard. We hope this tool will benefit the research community and help improve the standards for data and computational methods in electron microscopy, and we invite the community to contribute to this ongoing project.

본문 150,322자

본문 펼치기
py4DSTEM: a software package for multimodal analysis of four-dimensional scanning transmission electron microscopy datasets Benjamin H Savitzky, <sup>1,</sup> <sup>_∗_</sup> Lauren A Hughes, <sup>1</sup> Steven E Zeltmann, <sup>1</sup> Hamish G Brown, <sup>1</sup> Shiteng Zhao, <sup>1</sup> Philipp M Pelz, <sup>1, 2</sup> Edward S Barnard, <sup>3</sup> Jennifer Donohue, <sup>1</sup> Luis Rangel DaCosta, <sup>4</sup> Thomas C. Pekin, <sup>5</sup> Ellis Kennedy, <sup>1</sup> Matthew T Janish, <sup>6</sup> Matthew M Schneider, <sup>6</sup> Patrick Herring, <sup>7</sup> Chirranjeevi Gopal, <sup>7</sup> Abraham Anapolsky, <sup>7</sup> Peter Ercius, <sup>1</sup> Mary Scott, <sup>1, 2</sup> Jim Ciston, <sup>1</sup> Andrew M Minor, <sup>1, 2</sup> and Colin Ophus <sup>1,</sup> <sup>_†_</sup> 1 _National_ _Center_ _for_ _Electron_ _Microscopy,_ _Molecular_ _Foundry,_ _Lawrence_ _Berkeley_ _National_ _Laboratory,_ _1_ _Cyclotron_ _Road,_ _Berkeley,_ _CA,_ _USA,_ _94720_ 2 _Department_ _of_ _Materials_ _Science_ _and_ _Engineering,_ _University_ _of_ _California,_ _Berkeley,_ _Berkeley,_ _USA,_ _94720_ 3 _Molecular_ _Foundry,_ _Lawrence_ _Berkeley_ _National_ _Laboratory,_ _1_ _Cyclotron_ _Road,_ _Berkeley,_ _CA,_ _USA,_ _94720_ 4 _Department_ _of_ _Materials_ _Science_ _and_ _Engineering,_ _University_ _of_ _Michigan,_ _Ann_ _Arbor,_ _Michigan,_ _USA,_ _48109_ 5 _Institut_ _f¨ur_ _Physik,_ _Humboldt-Universit¨at_ _zu_ _Berlin,_ _Newtonstraße_ _15,_ _12489_ _Berlin,_ _Germany_ 6 _Los_ _Alamos_ _National_ _Laboratory,_ _Los_ _Alamos,_ _NM,_ _USA,_ _87545_ 7 _Toyota_ _Research_ _Institute,_ _Los_ _Altos,_ _CA,_ _USA,_ _94022_ (Dated: March 24, 2020) Scanning transmission electron microscopy (STEM) allows for imaging, diffraction, and spectroscopy of materials on length scales ranging from microns to atoms. By using a highspeed, direct electron detector, it is now possible to record a full 2D image of the diffracted electron beam at each probe position, typically a 2D grid of probe positions. These 4D-STEM datasets are rich in information, including signatures of the local structure, orientation, deformation, electromagnetic fields and other sample-dependent properties. However, extracting this information requires complex analysis pipelines, from data wrangling to calibration to analysis to visualization, all while maintaining robustness against imaging distortions and artifacts. In this paper, we present py4DSTEM, an analysis toolkit for measuring material properties from 4D-STEM datasets, written in the Python language and released with an open source license. We describe the algorithmic steps for dataset calibration and various 4D-STEM property measurements in detail, and present results from several experimental datasets. We have also implemented a simple and universal file format appropriate for electron microscopy data in py4DSTEM, which uses the open source HDF5 standard. We hope this tool will benefit the research community, helps to move the developing standards for data and computational methods in electron microscopy, and invite the community to contribute to this ongoing, fully open-source project. I. Introduction In a scanning transmission electron microscopy (STEM) experiment, a beam of high energy electrons is focused to a very fine probe - on the order of or, often, smaller than the atomic lattice spacing and rastered across the surface of the sample [1]. In traditional STEM, a (two-dimensional) image is formed by populating the value of each pixel with the number of electrons (times a scaling factor) scattered into a detector at each beam position. The geometry of the detector – its size, shape, and position in the microscope’s diffraction plane - determines which electrons are collected at each probe position. As a result, different detector geometries can give rise to rather different images, by varying which electron scattering processes dominate image contrast [2]. A point detector placed on the optic axis yields a bright-field STEM image which is formally equivalent by reciprocity to a TEM image. In contrast, _∗_ [ben.savitzky@gmail.com](mailto:ben.savitzky@gmail.com) _†_ [cophus@gmail.com](mailto:cophus@gmail.com) annular detectors with large inner-radii are dominated by high momentum-transfer elastic scattering events, making high-angle annular dark-field STEM a popular geometry because image contrast then generally scales monotonically with the projected potential of the sample (“Z-contrast” imaging) [3]. Low-angle annular detectors have greater sensitivity to lighter elements, but lose the advantage of simple Z-contrast interpretability due to the increased importance of phase contrast, i.e. selfinterference of the electron beam wavefunction. Many more detector geometries are possible, each best suited to reveal different aspects of sample structure, each suffering from different limitations [4]. In four dimensional STEM (4D-STEM), we replace the standard STEM detectors, which integrate all electrons scattered over a large region, with a pixelated detector that captures the electron flux scattered to each angle in the diffraction plane [5–10]. While a typical STEM image therefore produces a single number for each position of the electron beam, a 4D-STEM dataset produces a two dimensional image of diffraction space intensities for each real space beam position. The resulting four-dimensional data hypercube can be FIG. 1. 4D-STEM experimental geometry, and multimodal data analysis with py4DSTEM. An irradiated Gd2Ti2O7 sample contains complex, nanoscale structure, apparent in the distinct electron diffraction patterns across the field-of-view. From a single 4D-STEM experiment, py4DSTEM enables a range of measurements to be performed in post-processing, including virtual imaging, differential phase contrast, structural classification, strain mapping, and much more. collapsed in real space to yield information comparable to more traditional electron diffraction experiments. Alternatively, it can be collapsed in diffraction space to yield a variety of “virtual images,” corresponding to both traditional STEM imaging modes as well as more exotic virtual imaging modalities [11–15]. More information still can be extracted by judicious combination of real and reciprocal space. The structure, symmetries, and spacings of Bragg disks can be used to extract spatially resolved maps of crystallinity, grain orientations, and lattice strain [16–23]. Redundant information in overlapping Bragg disks can be leveraged to deconvolve the electron beam shape from the sample structure, yielding the sample potential itself [24–26]. Rings of diffracted intensity characteristic of amorphous samples can be used to extract correlation functions describing the short and medium range order and disorder. Indeed, the space of possible quantities of physical interest which can be extracted from a single 4D-STEM experiment is formidable, leading others to use the term “universal detectors” for 4D-STEM capable pixelated cameras [15]. Fig. 1 shows the experimental geometry of a 4D-STEM experiment, and various measurements performed from the same experimental dataset. For a mathematical discussion of STEM and 4D-STEM image formation, see Appendix A. The price paid for the versatility of 4D-STEM is new complexity in both the raw experimental data and in the computational processing required to extract meaningful measurements. Maximizing the impact this new generation of STEM experiments will have on structural characterization research now requires that the computer processing methods which enable the various 4D-STEM characterization modalities are accessible to as broad and diverse a segment of the scientific community as possible. Fortunately, a new generation of open source tools for electron scattering experiments is presently on the rise, such as hyperspy, pyXem, liberTEM, ncempy, and others[27–30]. Here, we present free and open source software for analysis of 4D-STEM data. The aim of the Python-based project py4DSTEM is threefold: (1) to make 4D-STEM data analysis easy and accessible for everyone; (2) to facilitate reproducibility, even in cases of complicated or multi-step processing workflows; and (3) to provide a comprehensive, robust suite of 4D-STEM analysis tools, enabling high throughput, multimodal analysis in which a single dataset can simultaneously provide many distinct measurements of sample structure. For ease and accessibility, py4DSTEM includes a complete API with associated documentation pages, many fully worked examples in the form of fully commented and interactive Jupyter notebooks, and a graphical user interface for fast data visualization and interaction. For reproducibility, py4DSTEM defines a set of structured data object types for 4D-STEM data processing, establishes a set of HDF5-based file format conventions for 4D-STEM data, and makes it easy to release, with any publication, the complete and fully transparent code which generates results and figures from raw data. For multimodal, high-throughput analysis, py4DSTEM includes a comprehensive suite of tools for structural analysis in crystalline and amorphous materials, including virtual imaging, phase and orientation mapping, strain mapping, radial distribution analysis, phase contrast imaging, classification, and more. A self-consistent framework allows many or even all of these measurements to be readily performed on a single dataset. The API and sample code for various analysis pipelines are freely available from the [py4DSTEM](https://github.com/py4dstem/py4DSTEM) repository [31]. The organization of this document is as follows: following this introduction, Sec. II discusses the nature of 4D-STEM data, and how data is structured in py4DSTEM. Section III discusses basic processing algorithms which will typically be performed as precursors to the final measurements of interest, including locating Bragg disks, calibration, polar transformations, and classification. Section IV covers various 4D-STEM measurements that can be performed in py4DSTEM, including virtual imaging, phase mapping, strain mapping in amorphous or crystalline materials, short and medium range order analysis in amorphous materials, and phase retrieval in very thin samples. Conclusions are in Sec. V. Throughout, we have aimed to keep discussion qualitative in the main text, and have also included mathematical details for the interested reader in a number of appendices, referenced in the relevant sections. II. 4D-STEM Data Fundamentally, most 4D-STEM is just many electron diffraction experiments being run sequentially. The nature of the diffraction pattern obtained at each scan position depends on the sample structure and the illumination conditions of the microscope, as illustrated schematically in Fig. 1. In crystalline materials and with small-angle illumination, the periodic structure of the sample gives rise to a periodic pattern of disks in the diffraction plane [32]. A bright disk appears wherever the Bragg condition is met, with the disk positions reflecting a slice through the reciprocal lattice of the crystal. In amorphous materials, concentric rings of diffuse intensity appear centered about the optic axis [33]. The radii of these rings reflect the characteristic spacings of the atoms in the sample, and can therefore be used to extract statistical measures of structure, such as the radial distribution function. In analyzing crystalline materials, the crux of the analysis will generally be measuring the Bragg angles in each diffraction pattern, by determining the positions of all the Bragg disks. In analyzing amorphous materials, analysis will generally revolve around radial integration of the diffraction patterns. In samples containing both crystalline and amorphous regions, both types of analysis can be performed in concert. A. Experimental Conditions A complete discussion of the many experimental conditions to attend to in devising a given 4D-STEM experiment is beyond our scope, however, there is one parameter which stands apart in its centrality to both acquiring and understanding 4D-STEM data: the convergence semiangle, _α_ . When examining a diffraction pattern, _α_ corresponds to the radius of the bright-field disk in the diffraction plane, and therefore also the radius of each refracted Bragg disk in a crystalline sample. In real space, the probe size is inversely related to _α_ ; larger convergence angles correspond to finer probes, and overlapping disks are required to generate sub-lattice sized probes and therefore allow atomic resolution imaging [34]. In extracting a strain map, for example, non-overlapping disks are important, both to facilitate the detection of the disk positions, and also because strain is a physical quantity only defined on length scales equal to or larger than single unit cells. For a ptychographic reconstruction of the atomic potentials of very thin materials, overlapped disks are essential, as they provide the redundant information required to extract the phase of the electron wavefunction and the sample electrostatic potential [35]. For analysis of amorphous materials, measuring radial distribution functions requires nearlyparallel illumination (a small semiconvergence angle), while measurements of medium range order in fluctuation electron microscopy experiments will often vary the probe semiangle to probe different sizes of atomic clusters [36, 37]. In general, the convergence angle should be selected carefully in light of the particular requirements of the experiment. B. Multimodal analysis - one dataset, many measurements A major advantage of 4D-STEM is the ability to perform a single experiment from which many distinctly meaningful structural measurements can be made. We take as our guiding example the Gd2Ti2O7 (GTO) crystal shown in Fig. 1. A pyrochlore structured GTO single crystal was first bombarded with ions, creating an amorphized layer. Then the sample was annealed, creating both a layer of recrystallization on the parent lattice as well as a band of smaller crystallites embedded in an amorphous matrix. Each of these regions is clearly visible in the diffraction patterns associated with various beam positions of the 4D-STEM scan. A selection of the types of measurements that can be performed from this dataset are shown in the figure. These include: virtual imaging spanning bright field images, annular dark field images, and dark field images of individual or multiple Bragg reflections (see Sec. IV A); differential phase contrast imaging, whereby shifts in the center of mass of the beam are used to back out the sample structure <sup>1</sup> (see Sec. IV G 1); strain mapping, showing the local deformations of the atomic lattice (see Sec. IV C); and structural classification, where regions 1 Note that while DPC provides useful image contrast in a fairly wide array of contexts, physical interpretation, and in particular interpretation in terms of the local sample potential, should be undertaken with care. In this dataset, for instance, the presence of non-overlapping Bragg disks indicates that there exists sample structure (the atomic lattice) which is too fine for our probe to resolve, and which will not be reflected in a DPC reconstruction. Moreover, the spatial sampling here is larger than probe width, so any variation in the potential between sampling points will be effaced in the reconstruction. Thus this DPC image, though still informative to a point, has no simple physical interpretation. Images in this category might be referred to as “pseudo-DPC”. For more discussion, and an example where the DPC image is well thought of as a reconstructed sample potential, see Sec. IV G 1 and Appendix I. of distinct structure are identified and segmented (see Secs. III E and IV B). With py4DSTEM, these analyses and more can all be applied to a dataset within a single, unified framework. C. Data Structures FIG. 2. py4DSTEM data structures. Data is saved as one of 5 classes of dataobjects - `DataCube`, `DiffractionSlice`, `RealSlice`, `PointList`, and `PointListArray` objects. Data in py4DSTEM is structured in five different types, broadly distinguished by their dimensionality, shown in Fig. 2. In-program, these are implemented as the following Python classes: `DataCube`, `DiffractionSlice`, `RealSlice`, `PointList`, and `PointListArray` . `DataCube` instances contain a 4D data array corresponding to the complete 4D-STEM dataset. `DiffractionSlice` and `RealSlice` instances contain one or more 2D arrays with shapes corresponding to that of diffraction space (i.e. the detector shape) or of real space (i.e. the raster scan shape), respectively. A `DiffractionSlice` might contain a single diffraction pattern, an image of the probe over vacuum, or the average background noise on the detector. A `RealSlice` might contain a virtual image, a Boolean mask indicating scan positions to be included or excluded in an analysis routine, or the _x_ and _y_ components of a lattice vector calculated at each scan position. This last example describes a `RealSlice` of depth 2, i.e. the data contained in the `RealSlice` class instance is two distinct 2D arrays ( _x_ and _y_ of the lattice vector); in general `DiffractionSlice` and `RealSlice` objects can have arbitrary depth. The `PointList` class is flexible, containing a set of points of arbitrary length in an arbitrary number of dimensions. On instantiation of a `PointList`, a set of coordinates must be specified - e.g. to specify the positions and intensities of the Bragg disk positions detected in a single diffraction pattern, `(‘qx’,` `‘qy’,` `‘intensity’)` might be used. Points may then be added or removed from the `PointList`, e.g. as 4-D data DataCube 2-D slices RealSlice DiffractionSlice N-D points PointList PointListArray Bragg disks are detected and then thresholded. Data in `PointLists` can be easily extracted or sorted by chosen coordinates. `PointListArray` instances are 2D arrays of `PointLists`, organized in memory to facilitate quick access of the `PointList` corresponding to a single array element, and are useful when storing a `PointList` for each scan position. All these datastructure classes inherit from a parent class called `DataObject` which facilitates basic searching, storing, and saving functionality for all data generated by py4DSTEM, as well as linking to any relevant metadata. D. File Structure py4DSTEM saves data in the HDF5 format, described on the HDF5 [website](http://www.hdfgroup.org/HDF5/) [38]. A description of the flavor of HDF5 used in py4DSTEM, which we refer to as “electron microscopy datasets” or EMD files, is available on the EMD [website.](https://emdatasets.com/format/) Each HDF5 / EMD file generated by py4DSTEM has a top level group containing all data, allowing for the possibility of nesting many py4DSTEM files in a single, larger file, and version tags to allow for backwards compatibility. Within the top level group a py4DSTEM file contains 3 high level groups: `data`, `metadata`, and `log` . The `data` group typically contains 5 subgroups corresponding to the 5 datastructures discussed in the previous section, and each of these contains any number of subgroups, each storing the contents of a single corresponding dataobject, including its raw data and any relevant metadata (e.g. the length of a `PointList`, the dimensions of a `DiffractionSlice`, etc). This structure makes it possible to bundle all elements of one or more data processing pipelines pertaining to a single raw dataset in a single location, and simplifies reuse between measurements of any shared datastructures. Loading data necessarily varies based on the input file type. For its native HDF5 files, py4DSTEM supports scanning the contents of a file before pulling anything into memory, so the entirety of large files need not be loaded if only some subset of smaller dataobjects are required. For very large datasets, memory mapping of datacubes is supported, whereby the contents of a loaded datacube object are left in non-volatile storage, and individual diffraction pattern are pulled into RAM only as they are accessed, enabling analysis of datasets that are larger than available system RAM. Binning during loading is also supported. For non-native files, many of the file types used in electron microscopy are proprietary and the contents are not publicly described, which hinders scientific progress within electron microscopy. py4DSTEM therefore relies on the i/o components of two other open source projects, [hyperspy](https://hyperspy.org/) and [openNCEM.](https://openncem.readthedocs.io/en/latest/) Most electron microscopy file formats are currently supported, and to-date the py4DSTEM reader has been tested and works successfully for 4D-STEM data in .dm3, .dm4, etc., formats. The metadata group contains 5 subgroups: `microscope`, `sample`, `user`, `calibration`, `comments`, and `original` . The `microscope` group contains information related to the microscope setup and acquisition parameters, such as the accelerating voltage of the beam, the camera length, the convergence angle, and so forth. The `sample` group stores information such as the material imaged, synthesis information, and any sample preparation. The `user` group is for information related to the scientist or scientists who obtained the data, including names, institutions, and contact information. The `calibration` group contains the pixel sizes (in real and diffraction space), as well as any additional calibration information such as rotational offsets, diffraction shifts, and elliptical distortions, which will be discussed in more detail in Sec. III C The `comments` group is for any miscellaneous comments. The `original` group contains any raw metadata scraped from the original data file. More details about the program structure, interface, implementation, and usage, including its data handling, modules, the 4D-STEM HDF5 file structure, logging, and metadata handling is available in the py4DSTEM documentation, or in the [py4DSTEM](https://github.com/py4dstem/py4DSTEM/) repository. III. Basic Processing In this section, we discuss the basic processing required for most datasets, namely: preprocessing in Sec. III A, Bragg disk detection (for crystalline samples) in Sec. III B, calibration in Sec. III C, polar transformations (for amorphous samples) in Sec. III D, and classification in Sec. III E. These processing steps are basic in the sense of underpinning all subsequent analyses, rather than in the sense of simplicity; these methods are not aimed at producing a final measurement or plot, but rather are the necessary preparatory work to ensure such ultimate measurements are possible, and are optimally accurate. Measurements and applications are addressed in Sec. IV. A. Preprocessing This section discusses several preprocessing steps that may be performed on a 4D-STEM dataset. None of these steps are universally required, however, care in preprocessing can significantly speed up subsequent processing, and lead to higher accuracy and precision in final analyses. Figure 3(a) shows the average of all the diffraction patterns from the GTO dataset. Vertical streaks are apparent in the image, as well as a handful of individual, erroneously saturated pixels. Zeroing the hot pixels, calculating a background image and subtracting it from each diffraction pattern, and then calculating a new average diffraction image yields Fig. 3(b). Here, hot Bkgrnd subtraction (a) (b) 2 nm <sup>-1</sup> 3 2 1 0 15 10 5 0 <u>Electron counting</u> Bin and crop (e) <u>(c)</u> <u>Pixel intensities</u> 0 100 <u>Pixel intensities</u> 200 <u>(d)</u> (f) FIG. 3. Preprocessing. (a) A position averaged diffraction pattern of raw 4D-STEM data. (b) The same position averaged diffraction pattern after subtracting a background determined from the yellow regions in (a). (c,d) The initial step of an electron counting procedure, in which minimum and maximum thresholds (black and red dashed lines, respectively) of the pixel intensities are used to rule out background pixels and x-ray strikes. (e,f) Binning and cropping. pixels were found by detecting outliers in the histogram of pixel intensities across the dataset. The background was determined by identifying edges of the detector which were beyond the HAADF detector and should ideally have no counts, then using this region (shown in yellow) over many diffraction patterns to calculate the average background streaking. Alternatively, one or many dark reference images can be recorded directly. While the nature of noise in a raw 4D-STEM dataset will vary from camera to camera and experiment to experiment, background subtraction is generally recommended. In 4D-STEM data with a sufficiently low electron dose, it is possible to detect individual electron strike events. Electron counting, i.e. determining and recording the diffraction space positions of each electron incident on the detector, is beneficial for both noise reduction and data compression. In py4DSTEM, this is implemented by first calculating a dark reference for the detector. A histogram of pixel intensity values is then generated from a random sampling of detector frames, and is used to calculate an upper intensity threshold (for excluding xray strikes) and a lower intensity threshold (for excluding the background). In Fig. 3, the histograms in panels (c,d) correspond to the low-dose dataset shown in (e,f). These diffraction patterns were recorded by placing an “amplitude plate” aperture in a condenser aperture, as described in [39]. Looping through each scan position, the dark reference is subtracted and the thresholds are applied to each detector frame, and the local maxima of the resulting image are identified. These local maxima are considered electron strike events. Optionally, their positions can be refined to subpixel precision. The electron counting shown in the figure compresses this data by a factor of _∼_ 6000. The most basic preprocessing functions include reshaping, binning, and cropping data. Binning and cropping can be performed in either real or diffraction space, and allow large datasets to be reduced to more manageable sizes. For selected file formats, py4DSTEM also supports data binning on import. Figure 3e,f shows an electron beam which has been shaped using a structured condenser aperture; from panel (e) to (f) this data has been cropped and binned by a factor of three. Reshaping the data may be necessary in some cases, for instance, some file formats do not contain complete information about the real space scan shape, and thus can be initially loaded as 3D arrays (with the two real space dimensions collapsed into one) before being correctly reshaped into 4D arrays. B. Bragg disk detection For crystalline or semi-crystalline data, analysis generally begins by identifying the locations of all the Bragg disk reflections in each diffraction pattern, which correspond to the reciprocal lattice points of the crystal. In py4DSTEM, we find the Bragg disk positions in two steps: first, we extract the structure of the probe over vacuum in diffraction space to use as a template. We then find the Bragg disks by determining all the positions in each diffraction pattern that match the structure of this template [22]. py4DSTEM includes 3 methods for generating vacuum probes. Ideally, we use an image or averaged image stack of the probe over vacuum. Alternatively, if an experimental 4D-STEM scan contains a vacuum region, or a region with only very thin material (e.g. amorphous carbon support), this can be used to generate a vacuum probe. In this case, the probes from each vacuum scan position should be aligned, to correct the translation of the diffraction patterns as the beam is scanned, and then averaged. Finally, if neither of these options is possible, a synthetic probe can be generated. Once a vacuum probe has been obtained, two additional processing steps are applied, with the purpose of generating a kernel for cross correlative template matching with the individual diffraction patterns. First, the center of the unscattered electron probe is found and shifted to the origin. Without this step, all measurements will have an offset, leading to incorrect results. Second, a Gaussian wider than the probe is subtracted, leading to a region of negative intensity surrounding the probe itself, such that the total integrated intensity of the kernel is zero. This has two advantages: first, it ensures that the cross correlation of noisy data is, on average, zero where there are no Bragg disks. Second, the negative kernel intensity penalizes cross correlation values where a Bragg disk and a template are slightly misaligned, enhancing the detectability of correlation maxima where disk/template alignment is perfect. While subtraction of a Gaussian is a useful heuristic, other approaches are possible, for instance those described in [22, 40– (a) 0.2 nm <sup>-1</sup> (b) 50 nm (c) Vacuum Probe BF Image Template matching via cross correlation (d) (e) (f) (g) (h) (i) (j) (k) 2 nm <sup>-1</sup> FIG. 4. Bragg disk detection in GTO. (a) The vacuum probe. (b) A virtual bright field image. (c) Disk detection is accomplished by cross correlation of the probe template with each diffraction pattern. (d-g) Diffraction patterns corresponding to the four scan positions indicated in (b). (h-k) The detected Bragg peaks for these four diffraction patterns. The size of each circle indicates the cross correlation intensity, a rough approximation for disk intensity. 44]. Adding structure to the electron probes using an amplitude mask in the objective aperture has also been shown to significantly enhance the precision of Bragg disk detection [39]. The Bragg disks are located by calculating the cross correlation of the probe kernel with each diffraction pattern, and then locating the correlation maxima. The disk positions can be located with subpixel precision via local Fourier upsampling in the region about each maximum [45, 46]. py4DSTEM allows for standard cross correlations, as well as phase or hybrid correlations, to be performed at this stage; see Appendix B for detailed discussion. The detected Bragg disks in each diffraction pattern are a stored in a `PointList` instance with three coordinates specifying the disk position in the diffraction plane and its cross correlation intensity, ( _qx, qy, I_ ). The Bragg disks from the complete datacube are stored in a `PointListArray` instance, with one such `PointList` for each scan position. For many analyses, such as strain or orientation mapping, all subsequent computation can be performed on this `PointListArray` alone, as it contains the most crucial scattering information. The data compression here is significant, as only 3 numbers are now required to store each Bragg disk. For a datacube consisting of 512 _×_ 512 pixel diffraction patterns with a bit depth of 16, 20 detected disks in an average diffraction pattern, and using 64-bit floating point numbers for the disk coordinates, this scheme compresses the data by a factor of approximately 1000. Once the Bragg disks have been detected, all peaks from all scan positions may be collapsed into a single image in the shape of the diffraction plane. The resulting object is roughly interpretable as a position averaged probability distribution of reciprocal lattice points, and is defined carefully in Appendix C. Figure 5 shows an example using the GTO dataset. We refer to this object as a Bragg vector map (BVM). Figure 5a shows the BVM of the complete GTO 4D-STEM scan, while Figs. 5(c-f) show the BVMs generated from subsets of the scan region indicated in the virtual image shown in Fig. 5b. The BVM of the single crystal region, Fig. 5c, shows sharp reciprocal lattice peaks of the orthorhombic crystal in the _⟨_ 01 <sup>¯</sup> 1 _⟩_ projection. The BVM of Fig. 5d also contains sharp peaks, now oriented isotropically about the origin, indicating many small, randomly (a) <mark>(b)</mark> (c) (d) (e) (f) 2 nm <sup>-1</sup> <mark>50 nm</mark> <u>2 nm</u> <sup>-1</sup> FIG. 5. Bragg vector maps of GTO. (a) The Bragg vector map from the complete dataset. (b) Virtual bright-field image with boxes indicating four regions of interest. (d-f) Bragg vector maps generated from the four corresponding regions shown in (b). oriented crystal grains. Figure 5d also shows a faint ring resulting from amorphous scattering in this mixed cystalline/amorphous region. Note that ideally the BVM would be insensitive to amorphous scattering because it should only contain counts where Bragg scattering occurs, however, false-positive Bragg disk detection can occur in the amorphous halo, resulting the ring here as well as in Fig. 5f. Figure 5e shows little amorphous signal, sharp peaks indicating crystal scattering, and fewer peaks than in Fig. 5d, suggesting this layer of the sample may contain fewer, larger crystallites. Figure 5f shows little or no crystalline signal, suggesting a purely amorphous layer. Phase mapping, found in Sec. IV B, confirms these hypotheses about the sample structure. BVMs are a useful tool in 4D-STEM data processing. In py4DSTEM they are used in processing pipelines including calibration (see Fig. 6), classification (see Fig. 8), strain mapping (see Fig. 11), and others. C. Calibration Calibration is the single most important step of any quantitatively meaningful 4D-STEM data analysis, as all subsequent measurements hinge on the accuracy of the calibration. In 4D-STEM a number of calibrations are desirable. These include correcting shifts of the diffraction pattern from the raster of the beam, correcting elliptical distortions of the diffraction patterns, calibrating the rotational offset between real and diffraction space, and calibrating the pixel sizes. Which calibrations are required will generally depend on the sample being imaged, the measurements being made, and the required precision. The data required to perform calibrations is similarly contingent, and depends on the structure of the sample, and which calibrations need to be performed. An image or a stack of images of the STEM probe over vacuum should always be acquired, and is important for analyses including Bragg disk detection, calibration of the convergence semiangle, and deconvolution of the probe. Scanning a standard calibration sample of known structure at the beginning or end of a microscope session is highly recommended, and will typically ensure the most accurate calibration of pixel sizes. Using a standard calibration sample which is polycrystalline is also highly recommended, to facilitate calibration of inevitable elliptical stretching of the diffraction patterns due to imperfect optics and alignments [43]. Obtaining an image of the probe, positioned over the sample and then highly defocused to create a shadow image in the diffraction plane, is the recommended data for calibrating the real/diffraction space rotational offset. In some cases it is possible to obtain the necessary calibrations directly from the experimental 4D-STEM scan, however, this is not guaranteed to be possible, and is especially dubious for samples of unknown structure. Figure 6 shows the complete calibration of a simulated dataset [47]. The top row of subpanels shows the data: a 4D-STEM scan of the sample of interest, in this case a single-crystalline, strained gold nanoparticle (Fig. 6a); a 4D-STEM scan of a standard calibration sample, in this case polycrystalline gold (Fig. 6b); an image of the STEM probe in the diffraction plane (Fig. 6c); and an image of the STEM probe after defocusing to make a shadow image (Fig. 6d). Diffraction shifts – overall translation of the diffraction patterns resulting from the scanning of the electron beam - yield apparent shifts of the position optic axis from one diffraction pattern to the next [48]. The size of the diffraction shifts depend on the real space field-of-view of the scan, on the camera length, and on the particular instrument used; generally speaking, we recommend measuring diffraction shifts in scans larger than a few tens of nanometers, and then applying corrections if deemed necessary. In py4DSTEM, this calibration is performed by identifying the unscattered beam at each scan position, and measuring the shifts in its position. These shifts are then fit to a plane or low order polynomial, which can be used to correct the diffraction shifts. For correcting the shifts, it is possible to shift each diffraction pattern by the measured amount to generate a new, corrected datacube, however, this is slow, resource intensive, and often unnecessary. Instead, it is often possible to simply use the measured shift values to set the origin of coordinates in any subsequent measurements made on individual diffraction patterns. Figure 6e-p shows BVMs before (e,f) and after (k,l) diffraction shift corrections have been applied to the measured bragg peak positions. The zoomed in images centered on the central peak (f,l) illustrate that the blurred peak of (f) collapses to a sharp peak in (l) after shift correction. In (g-p) we show the initial measurement of shifts of the central disk, a masking step to ignore some subset of data points, a smooth fit to the data, and the residuals, which are all much less than a single pixel. Elliptical distortions, in which circular features about the optic axis are stretched into ellipses, are generally experimentally unavoidable [43]. These result from imperfect alignments, including off-axis illumination on the probe-forming condenser aperture, stigmation in the post-specimen optics, and finite tilt of the detector plane relative to the plane normal to the optic axis. Even in a well aligned system these distortions may be significant, and are therefore important to correct in many quantitatively sensitive experiments. In py4DSTEM, elliptical distortions can be measured by fitting an elliptical function to data within some specified annular region, as shown in Fig. 6(q,r). The functional forms of the fits are discussed in more detail in Appendix D. With elliptical fits in hand, the elliptical distortions can be corrected. For crystalline data in which the Bragg peaks have been measured and subsequent analysis will be performed on the measured peak positions only, correction may be accomplished by shifting the peak positions while leaving the raw data untouched. Figure 6r shows a BVM after such correction has been performed. An alternate approach to elliptical correction is to take a polar-elliptical transform, effectively re-sampling the data into a coordinate system which shares the data’s ellipticity. This latter approach is frequently useful in analysis of amorphous datasets, and is discussed further in Sec. III D. There is in general some angle of rotation between the electron beam in the sample plane and in the detector plane. Thus in order to correctly map orientations measured in the diffraction plane into real space, it is necessary to measure and account for this rotational offset. The simplest and most robust way to measure the offset is to compare a STEM image to a defocused probe shadow image. Any STEM image will suffice, provided that the same features are visible in the STEM and shadow images, and in Fig. 6 the bright field virtual image is used. Two identical points in each of the two images are identified in Fig. 6s,t and are then used to calculate the rotational offset. If a shadow image has not been obtained, other methods to determine the rotational offset are possible, however, will necessarily be less robust. Two additional techniques for rotational calibration are provided in py4DSTEM, both based on the principles of differential phase contrast imaging. As a result, these methods tend to work well when the assumptions of differential phase contrast hold. They are discussed further, along with the relevant caveats, in Sec. IV G 1. Calibration of the diffraction space pixel size minimally requires measuring a single diffraction vector with a known spacing. More accurate measurement is possible by fitting to several known spacings. Figure 6u shows a radial integral (see Sec. III D) of the elliptically corrected Bragg vector map shown in Fig. 6r. By indexing the peaks observed and using the known lattice spacing of gold, we use the measured peak positions to calculate the detector pixels size. The horizontal axis of these plots can then be written in physical units of <sup>˚</sup> A <sup>_−_</sup> <sup>1</sup> . Ideally, the real space pixel size is determined by the distance the electron probe is rastered by the scan coils between detector frames, and is therefore equivalent to the size calibration of the instrument’s STEM scan. For this reason, processing tools for recalibration of the real space pixel size are not provided. However, should such calibration be desired, it is straightforward to edit the py4DSTEM metadata based on independent measurement of the real space pixel sizes. When specimen drift leads to large deviations of the pixel size and scan direction angles, further pixel size measurements and drift correction may be required [49– 52]. D. Polar Transformation Transformation from Cartesian to polar coordinates is an important operation in many 4D-STEM analyses, (a) <mark>(b)</mark> (c) 1 nm <sup><u>-1</u></sup> Vacuum probe (d) 20 nm <u>5 nm</u> <sup>-1</sup> 20 nm <u>5 nm</u> <sup>-1</sup> 20 nm <u>5 nm</u> <sup>-1</sup> 4D-STEM, sample of interest 4D-STEM, calibration sample Defocused probe +3 -3 (pix) (e) (f) Before shift correction (k) (l) (g) <u>(h)</u> <u>(i)</u> <u>(j)</u> (m) <u>(n)</u> <u>(o)</u> <u>(p)</u> 5 nm <sup>-1</sup> 0.5 nm <sup>-1</sup> 20 nm After shift correction Measurement <u>Mask</u> <u>Fit</u> <u>Residuals</u> (q) (r) (s) (t) 3 nm <sup>-1</sup> 20 nm Before ellipse correction After ellipse correction STEM image Shadow image <u>(u)</u> <u>111</u> <mark>111</mark> <mark>200200</mark> <u>220</u> <mark>220</mark> <mark>311311</mark> 0 0.2 0.4 0.6 0.8 1.0 1.2 FIG. 6. Calibration. (a-d) The recommended data to collect in order to fully calibrate a 4D-STEM dataset. Data shown here has been simulated. (a) A 4D-STEM dataset of a sample of interest, here a strained, single-crystal gold nanoparticle. (b) A 4D-STEM dataset of a standard calibration sample, here a distribution of gold nanoparticles. In both (a) and (b), a virtual bright-field image and three selected diffraction patterns of the 4D-STEM datasets are shown. (c) An image or image stack of the probe over vacuum. (d) An image of the probe over the sample and defocused until a shadow image is visible. (e-u) A complete set of 4D-STEM calibrations. (e-p) Measurement and correction of translations of the diffraction patterns with the beam raster. (q-r) Measurement and correction of elliptical distortions. (s,t) Measurement of the rotational offset of the electron beam between the real and diffraction planes. (u) Measurement of the detector pixel size. especially of amorphous data. Sections IV E and IV F discuss two examples, fluctuation electron microscopy and radial distribution function analysis. Polar-elliptical transformations are useful for correcting elliptical distortions, as discussed in Sec. III C. This also enables calculation of elliptically corrected radial integrals. Figure 7 shows the transformation of the BVM of the simulated calibration sample of gold nanoparticles described in Sec. III C. Both a polar (a,c) and polarelliptical (b,d) transformation have been performed, in the latter case using elliptical parameters fit from the image. In the polar case we see that, just as the circular coordinate axes poorly align with the data in (a), so too do the rings turn into vertical sinusoids in (c). In (a) ky <u>(c)</u> ~~θ~~ <u>(d)</u> ~~θ~~ polar coords polar elliptical coords (b) ky kx k k kx (e) polar-elliptical polar 0 1 2 3 4 5 6 7 k ( _Å_ 1) FIG. 7. Polar and polar-elliptical transforms. (a) Bragg vector map of the simulated gold nanoparticle calibration dataset, overlaid with a polar coordinate grid. (b) Identical data to (a), but overlaid with a polar-elliptical grid calibrated to this data. (c) The polar transform corresponding to (a). Note that the rings have been mapped to sinusoids, due to elliptical distortions. (d) The polar-elliptical transform corresponding to (b). The rings now map to lines, indicating that the elliptical calibration is correct. (e) Radial integrals calculated from the polar ( _red_ ) and polar-elliptical ( _black_ ) transforms. contrast, in (b) the axes and data are well aligned, and in (d) the rings turn into vertical lines rather than sine curves. Radial integration of a single or averaged diffraction pattern is an important operation, providing higher SNR information about electron scattering at each spatial frequency, at the expense of losing any orientation information. The polar-elliptical transform makes elliptically corrected radial integration easy - just sum along the theta axis of the transformed data. Figure 7e shows an example, with the radial integral calculated ~~from~~ the calibrated polar-elliptical transform in black and the radial integral from the simple polar transform in red. Note that the simple radial integral broadens peaks and, in the case of the first peak, splits a single peak into two apparent, but spurious, peaks. E. Classification In the context of 4D-STEM, classification refers to assigning one or more integer values to each scan position, which identify this position with associated classes. Ideally, each class corresponds to a type of diffraction pattern, or to structurally meaningful features or motifs, such that a scan position will be included in a given class if and only if its diffraction pattern contains these features. Virtual imaging, and thoughtful combination of virtual images and colormaps, is often the easiest way to visually differentiate distinct structural regions, and can be a powerful tool for microanalysis [12– 14, 53]. By identifying each pixel with discrete class types classification goes a step further, facilitating subsequent analyses as well as enabling generation and identification of class diffraction patterns [54, 55]. Figure 8 shows a simple classification example. A 4D-STEM scan was taken of a medium entropy alloy containing a twin boundary, which is about three quarters of the way up the virtual image in Fig. 8a. Diffraction patterns averaged from 100 scan positions each about the positions shown with red, green, and blue sqaures are shown in Fig. 8b-d. Inspection reveals that the reciprocal lattice in Fig. 8b is twinned with respect to that of Figs 8c,d. This dataset is therefore an excellent testbed for a classification algorithm because the correct answer is immediately apparent: each diffraction pattern in this dataset should be assigned to one of two classes, according to the side of the twin boundary where it falls. The algorithm proceeds as follows. First, all Bragg disks are located, as described in Sec. III B. Next, the BVM is calculated, after any relevant calibrations such as diffraction shift correction have been performed - see Fig. 8e. The _N_ maxima of the BVM are then located. A Voronoi tesselation of the diffraction plane is constructed using these maxima as the initial points, which carves the diffraction plane into a set of _N_ regions, each of which is defined as the set of all points closest to one BVM maximum [56] - see Fig. 8f. Each of these _N_ regions is assigned an integer value. Next, the set of Bragg peaks which has been detected at each scan position is retrieved, and each peak is assigned a label according to which Voronoi region it falls in - see Fig. 8g-i. At this stage the complexity of the data has been reduced significantly - for each scan position, we have a small (h) 63 36 (i) 3 4 Virtual image (a) <u>Diffraction patterns</u> (b) (c) (d) 63 59 Bragg Vector Map (e) Find maxima and assign labels (f) 60 34 <u>BP co-occurance</u> <u>Classified data</u> (j) (g) 45 46 26 21 28 51 54 23 16 14 24 10 3 0 1 49 42 57 1 17 19 9 27 9 11 59 56 48 35 27 29 33 29 47 40 45 50 20 32 18 26 7 6 5 2 0 1 17 39 41 8 37 3630 10 49 61 45 46 2221 2028 4351 13 15 50 20 62 43 18 17 39 53 59 56 25 63 38 55 3126 3 237 166 7 166 145 145 54 7 6 5 48 49 61 12 4 2 8 0 1 2418 17 58 4442 1219 4 9 2 11 19 4 9 2 11 8 2 32 0 1 39 41 3 13 15 50 5752 3525 47 2713 40 41 48 49 61 2915 50 2 3337 62 4 37 62 FIG. 8. A 4D-STEM classification algorithm. (a) Virtual image of a 4D-STEM dataset of a twin boundary. (b-d) Averages of 100 diffraction patterns each from the regions shown in (a). (e) The Bragg vector map. (f) BVM maxima have been located, labelled, and used to segment the diffraction plane. (g-h) The segmentation in (f) is used to label the Bragg peaks in each diffraction pattern. (j) Co-occurance of Bragg peaks is used as a criterion to assign scan positions to classes, resulting in a classification which clearly identifies the twin boundary. set of integers encoding where Bragg scattering occurred, rather than an entire 2D diffraction pattern. Initial classes are identified by determining which Bragg peaks co-occur with the highest frequency, and these classes may then be refined, for instance via non-negative matrix factorization. Here, the final result is shown in Fig. 8j, with the data cleanly separated along the twin boundary. More detailed discussion of the algorithm can be found in Appendix E, and more complex classification example can be found in Sec. IV B. IV. Measurements and applications In this section, we build on the techniques described in Sec. III to make various measurements of physical interest from 4D-STEM datasets. In Sec. IV A we generate virtual images. In Sec. IV B we apply the classification algorithm discussed in Sec. III E to the GTO dataset to retrieve maps of various crystalline and amorphous phases present in the complex, nanostructured sample. In Secs. IV C and IV D we calculate strain maps from crystalline data, and from amorphous data respectively. In Secs. IV E and IV F we further analyze amorphous samples, calculating radial distribution functions in the former section and performing fluctuation electron microscopy analysis in the latter section. We conclude with two phase retrieval methods for reconstructing the sample potential, demonstrating differential phase contrast imaging in Sec. IV G 1 and ptychography in Sec. IV G 2. A. Virtual Imaging In a traditional STEM experiment, many imaging modalities are possible, by placing detectors of different geometries in different positions in the diffraction plane [1]. 4D-STEM enables virtual recreation of a wide swath of such imaging modalities in post processing [6, 8, 57, 58]. See Appendix A. Figure 9a,b shows an averaged diffraction pattern from the single crystalline region of the GTO sample, overlaid with various virtual detectors which were used to generate the images in Fig. 9c-g. Figure 9a shows annular dark field detectors of various inner and outer collection angles, and their corresponding virtual images are shown in Fig. 9c. The Miller indices of each Bragg reflection in the _⟨_ 110 _⟩_ projection are shown in Figure 9b, and virtual images corresponding to a detector placed about each FIG. 9. Virtual imaging. (a) Virtual annular dark-field detectors. (b) Virtual bright field ( _green_ ) and dark-field ( _yellow,_ _red_ ) detectors. (c) Virtual annular dark-field images. (d) Virtual dark-field images corresponding to circular detectors about each of the indexed Bragg peaks. (e) Virtual bright-field image. (f,g) Virtual images corresponding to the yellow and red detectors shown in (b), respectively. The inner, yellow peaks are only present in one of the two expected crystal structures in this system. of these peaks are shown in Fig. 9d. Here, a single 4DSTEM scan is used to virtually recreate images analogous to 45 distinct traditional dark-field TEM images, similar to [13]. Figure 9b shows three detectors colored green, yellow, and red, corresponding to the three virtual images shown in Fig. 9e-g. The first is a virtual bright field image, while the latter two use virtual detectors which would be challenging to realize physically, but which are of particular interest because of the structural significance of the yellow and red peaks to two crystalline phases in this system: the red peaks are present in both of the two expected single crystal phases (pyrochlore and fluorite), while the yellow peaks vanish in the higher symmetry fluorite phase. Thus with 4D-STEM, it is possible to virtually recreate images corresponding to every possible integrating STEM detector geometry, and also to generate complex, bespoke detectors matched to the sample structure and properties of interest. B. Phase Mapping An important problem in many applications is mapping distinct structural phases, and potentially many phases, present within a single sample [21, 54, 55, 59]. In this section we demonstrate mapping regions of a 4D-STEM scan in which the diffraction patterns are sufficiently similar to be considered a single type, using the classification algorithm discussed in Sec. III E. This therefore constitutes ‘phase’ mapping in the sense of distinguishing regions of structural similarity, defined in terms of differences in the measured diffraction patterns. These differences may result from the presence of distinct crystal structures, crystal grains of various orientations, amorphous regions, and so on. The meaning of any one of these phases must be interpreted in the context of the particular sample, and the details of each phases’ average diffraction pattern [16]. We return to the GTO dataset as an example. The results are shown in Fig. 10. The classification algorithm identifies 82 distinct crystalline phases, including 5 single crystal phases (Fig. 10b,e) and 77 smaller crystallites (Fig. 10d,g). We then additionally identified two amorphous phases (Fig. 10c,f). This was accomplished by masking away all detected Bragg peaks, calculating radial integrals of the masked diffraction patterns, then using these curves as inputs to a non-negative matrix factorization algorithm. Masking Bragg peaks is not required for purely amorphous data, but is essential for mixed amorphous/crystalline specimens, as Bragg scattering even from small crystallites in a primarily amorphous matrix would otherwise dominate the radially integrated signal. In this dataset, we find a single crystal region which appears to transition smoothly from a pyrochlore structure (Fig. IV Bb, _dark_ _purple_, and Fig. 10e, upper left) to a flourite structure in which the superlattice reflections vanish (Fig. IV Bb, _yellow_, and Fig. 10e, lower right). Below the single crystal region is a mixed crystalline/amorphous region (Fig. IV Bc, _lighter_ _green_, and Fig. 10f, right). Below this is a layer of larger crystallites (Fig. IV Bd,g), followed by a pure amorphous region (Fig. IV Bc, _darker_ _green_, and Fig. 10f, left). With a phase map in hand, any number of additional analyses, such as the orientation or size distribution of the crystallites, or the strain in the single crystal (see Fig. 11), become readily calculable. FIG. 10. Phase mapping. (a) All of the structurally distinct phases identified in this system, using the classification algorithm described in III E. (b,e) The single crystal phases and their class diffraction patterns. (c,f) The amorphous phases and their class diffraction patterns. (d,g) The polycrystalline phases and their class diffraction patterns. C. Crystalline Strain Mapping The diffraction pattern of a crystalline sample from a low index zone axis contains a grid of Bragg disks given by the reciprocal lattice of the sample. Therefore the spacing of the Bragg disks is inversely proportional to the real space atomic spacing. Precise measurements of the reciprocal lattice vectors can therefore be used to map the local strain present in a crystalline sample, given by the deviations of the lattice from the ideal spacing and angles [18, 60–64]. In Fig. 11 we map the strain of the single crystal regions of the GTO data. Obtaining a strain map begins with Bragg peak detection as discussed in Sec. III B and data calibration as discussed in Sec. III C. Beginning from the calibrated BVM of the region of interest (Fig. 11a), the average reciprocal lattice vectors are extracted by taking its Radon transform, and then finding the projection angles at which the peaks of the BVM align (Fig. 11b). With the lattice vectors in hand, the BVM peaks are indexed (Fig. 11c). We then refine the reciprocal lattice vectors for each diffraction pattern by performing a fit to its set of detected Bragg peaks, using the average lattice vectors as an initial guess and weighting the fit according to the cross correlation intensities of the detected peaks. A reference lattice is chosen, and the infinitesimal strain tensor is computed at each beam position by examining the deviation of its local lattice vectors from the reference lattice. For further discussion see Appendix F. The results of this analysis are shown in Fig. 11eh. Here, the _x_ - and _y_ -directions are shown in both real and diffraction space with red and orange arrows, respectively. _ϵxx_ and _ϵyy_ refer to the compressive/tensile (negative/positive) strain of the lattice along the _x_ and _y_ directions shown, while _ϵxy_ and _θ_ are the shear strain and the rotation of the lattice, respectively. Among other revealing features, the _ϵxx_ map in this data shows significant tensile strain along the interface of the parent and recrystallized single crystal, indicating stretching of the crystal perpendicular to the interface. The choice of reference lattice is crucial to obtaining meaningful strain maps. In the simplest case, the experimental 4D-STEM scan contains a region of known undeformed lattice, which can be used directly to define the reference lattice. Alternatively, it is possible to obtain a separate scan of unstrained material to use as reference, however in this case, good calibrations are essential – see Sec. III C. With good calibrations and a known crystal structure, it is also possible to define a reference lattice by hand. In the case of the GTO dataset, in which there is a parent crystal at the top of the image and a region of recrystallization below, the parent crystal can be used as reference. Strain tensor values depend, in general, on the choice of coordinate system. It is therefore necessary to specify coordinates; without this specification, e.g. by including the coordinate axes on the plots, strain maps are not physically interpretable. Because there is some arbitrary rotation between real and diffraction space in 4D-STEM data, it is also important to show the orientation of the (a) (b) (c) 335 <u>333</u> <u>113</u> <u>113</u> 444 442 440 442 <u>331</u> 331 442 440 442 222 220 <u>222</u> 111 333 113 <u>113</u> 4 <u>333</u> <u>111</u> 006 006 115 <u>115</u> 224 004 002 000 002 <u>222</u> <u>442</u> <u>333</u> <mark>100 nm</mark> <u>111</u> <u>331</u> 0 <u>2</u> 2 nm <sup>-1</sup> (e) _xx_ <u>335</u> <u>224</u> <u>115</u> 004 <u>115</u> <u>224</u> <u>224</u> <u>111</u> <u>222</u> <u>220</u> 3 <u>331</u> 1.50 0.75 0.00 % -0.75 -1.50 1.00 0.50 0.00 -0.50 -1.00 <u>442</u> <u>440</u> D. Amorphous Strain Mapping Electron diffraction experiments of amorphous materials, or materials containing a substantial fraction of an amorphous phase, will typically include ring-like features with a radius given by a characteristic scattering length. Similarly to crystalline materials, a local increase or decrease in the average atomic spacing (i.e. strain) in amorphous materials will cause a decrease or increase respectively in the amorphous ring radius. By fitting an elliptical function to each diffraction image, we can directly measure these deviations due to local strain. This has been demonstrated both in individual TEM diffraction images [65] and in _in_ _situ_ 4D-STEM experiments [66]. In py4DSTEM, we have implemented strain measurements of amorphous materials using the same elliptic fitting routines described in Sec. III C and Appendix D. Figure 12a-c show the elliptical fits. In each of the three plots shown, the data being displayed alternates in a pinwheel pattern between the data and the fit, for easy visual assessment of the fit quality. In the average diffraction pattern of the pure amorphous region, Fig. 12a, the data (shaded blue) is in excellent agreement with the fit. Using this fit as an initial guess, noisier individual diffraction patterns like Fig. 12b,c can then be fit as well. In data containing mixed amorphous and crystalline material, to obtain good elliptical fits to the amorphous signal it is important to mask off any Bragg scattering. In Fig. 12b,c the smaller black circles represent such masked regions. Figure 12d-g shows the strains computed beginning from these fits, then finding the deviation of the elliptical distortions from a reference. Here the median of the fully amorphous region is used. As with crystalline strain mapping, the choice of reference is important, and should be selected carefully based on the individual experiment. Figure 12d-f, showing the compressive/tensile strains along the shown _x_ and _y_ directions as well as the shear strain, are comparable to the crystalline _ϵxx_, _ϵyy_, and _ϵxy_ plots from Fig. 11. Figure 12g additionally shows <u>12</u> <sup>(</sup> <sup>_ϵxx_</sup> <sup>+</sup> <sup>_ϵyy_</sup> <sup>),</sup> <sup>representing</sup> <sup>the</sup> <sup>local</sup> <sup>dilation</sup> <sup>of</sup> the structure. Across the four shown amorphous strain plots we observe local structural changes, especially at the crystalline-amorphous interfaces. E. Radial Distribution Functions The radial distribution function (RDF), or _g_ ( _r_ ), describes the relative density of atoms some distance _r_ from a given atomic position. Thus the RDF characterizes the distribution of distances between atoms in a given material. It can serve as an important fingerprint for amorphous materials, as it gives information about the distance and density of neighboring shells of atoms, which depend on the material’s structure, chemistry and defect density [67]. (f) _yy_ x kx (g) _xy_ (h) y ky (i) Diffraction space Real space 1. rotate 2. possible flip FIG. 11. Crystalline strain mapping. (a) Bragg vector map of the crystalline region of the GTO sample. (b) Automated detection of the lattice vectors, using the Radon transform. (c) The indexed Bragg vector map. (e-h) Strain maps of the single crystal region. The upper color bar applies to (e-g), and the lower colorbar to (h). (i) The relevant coordinate systems in real and diffraction space. axes in both real and diffraction space. In Fig. 11h, two sets of yellow axes show the chosen coordinate with respect to which the strain maps are are measured, in real space and diffraction space respectively. In this data, the rotation between the two was small ( _∼_ 2 <sup>_◦_</sup> ), however note that in general it need not be, and will vary between microscopes. The best coordinate system to use for a give strain map depends on the sample and the relevant material questions. Typically, orienting one of the principle axes along some important crystallographic direction is best, and in Fig. 11 the strain _x_ -direction has been oriented along the _⟨_ 1 <sup>¯</sup> 10 _⟩_ direction, which is also direction of ion bombardment and of recrystallization. In a strain mapping workflow in py4DSTEM, calculating the strain from the reference lattice produces a strain map with respect to a coordinate system oriented along the detector frame (Fig. 11i, top row); typically, some coordinate orientation which is sensible for the system and questions under study should then be chosen, and the strain map rotated into this coordinate system (Fig. 11i, bottom row). I(k) <u>single atom</u> scattering factor θ <u>(b)</u> <u>k</u> 5 nm <sup>-1</sup> 50 40 30 20 10 (a) <u>(c)</u> 0 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 k ( _Å_ 1) FIG. 12. Amorphous strain. (a-c) Elliptical fits to the average amorphous diffraction pattern, and two two selected diffraction patterns. In (a), blue wedges show the data, while clear wedges show the fit function. In (b) and (c), the data and the fit are similarly interleaved, and Bragg scattering has been masked away to ensure good fitting. (d-e) The compressive/tensile strains _ϵxx_ and _ϵyy_, the shear strain _ϵxy_, and the dilation <sup><u>1</u></sup> 2 <sup>(</sup> <sup>_ϵxx_</sup> <sup>+</sup> <sup>_ϵyy_</sup> <sup>).</sup> In this section, we qualitatively discuss the calculation of the RDF, and the structure of the resulting plot. Formal discussion of our methods, which follow [37, 68], are found in Appendix G. The RDF can be directly determined from the average diffraction pattern of an amorphous material, as long as enough counts / images are collected to average out any local density fluctuations, and the probe convergence semiangle is sufficiently small to not blur out the diffraction pattern [33]. An example of the mean diffraction pattern from amorphous silicon is shown in Fig. 13a. A radial integral is then calculated, here using a polar-elliptical methods of Sec. III D, yielding the diffracted intensity as a function of distance from the optic axis. The resulting curve, _I_ ( _k_ ), is shown in Fig. 13c. The important elements of this signal are (1) thermal diffuse background, resulting from thermal motion of the atoms and which dominates the behavior shown here at low _k_ values, (2) the single atom scattering factors, describing the scattered intensity profiles which result from individual atoms and which dominate the behavior at high _k_ values, and (3) the structure factor Φ( _k_ ), which describes the arrangement of atoms relative to one another in the material. By fitting the thermal background and atomic scattering factors it is possible to calculate the structure factor, and from the structure factor it is possible to calculate the RDF. Figure 13d and ~~(d)~~ 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 k ( _Å_ 1) 1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0 ~~<u>(e)</u>~~ 0 2 4 6 8 10 12 r ( ) _Å_ FIG. 13. Radial distribution function of amorphous silicon. (a) An average diffraction pattern. (b) The polar-elliptical transform of (a). (c) The radial intensity profile, calculated from (b). (d) The structure factor, calculated by determining and subtracting off the single atom scattering factor, and applying a bandpass mask to cut off high and low frequency noise. (e) The radial distribution function, calculated using the structure factor, showing the first few shells of Si atoms. e show the structure factor and RDF, respectively. We ultimately invert the structure factor, a diffraction space quantity, to retrieve the RDF, a real space quantity. The sampling of the RDF is thus determined by the maximum _k_ values in the experimental data. In py4DSTEM we therefore upsample by padding the structure factor with zeros before inversion, which allows extraction of an RDF which is in principle arbitrarily smooth. However, that smoothness should not be over-interpreted: the highest frequencies at which true (a) (b) median DP max DP (c) (d) (e) median mean q 111 = 0.32 Å <sup>-1</sup> q 220 = 0.53 Å <sup>-1</sup> q 311 = 0.62 Å <sup>-1</sup> 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 ( )Å <sup>-1</sup> FIG. 14. Fluctuation electron microscopy of predominantly amorphous silicon. (a) An average diffraction pattern of the 4D-STEM scan, using median statistics. (b) A diffraction image generated by selecting the maximum value at each pixel across all scan positions, and revealing the presence of some amount of Bragg scattering, and therefore crystallinity, in this sample. (c) The radial intensity profiles of the dataset using median ( _red_ ) and mean ( _blue_ ) statistics respectively. (d) The variance over all angles versus radial position. (e) _⟨IV_ ( ( _qq_ ) _⟩_ <u>)</u> <sup>2</sup> <sup>,</sup> <sup>a</sup> <sup>measure</sup> <sup>of</sup> <sup>short</sup> <sup>and</sup> <sup>medium</sup> <sup>range</sup> <sup>order</sup> <sup>which</sup> becomes larger with increasing order. Note the two peaks in blue (mean statistics) which become a single broad peak in red (median statistics). These come from Bragg scattering, suggesting the median statistics are superior for evaluating the amorphous structure. information has been transferred is set by the maximum _k_ from the experimental data. In gathering data for RDF analysis it is important to capture high scattering angles to use in fitting the atomic scattering factors, therefore fairly short camera lengths are recommended. F. Fluctuation Electron Microscopy Fluctuation electron microscopy (FEM) is a method which, like RDF analysis, is used to characterize the structure of amorphous materials. In RDF analysis structure is typically considered out to distances of perhaps the first few shells of neighboring atoms, considered the “short range order” regime. However, many amorphous materials have a substantial degree of structural ordering beyond the first few shells [69]. This property is referred to as “medium range order” in materials science [70, 71]. When using 4D-STEM to study amorphous materials, the STEM probe size (set by the convergence semiangle and/or probe defocus) can be tuned to match the size of atomic clusters. When these clusters deviate from a fully random distribution, they lead to “speckles” in the amorphous halo. The technique of quantifying the degree of variability as a function of scattering angle and probe size is called fluctuation electron microscopy (FEM) [72]. In this section we qualitatively discuss FEM, and a mathematical treatment is in Appendix H. Our approach follows the methods of [73]. The idea is to calculate the variance _V_ ( _k_ ) of the diffraction patterns as a function of scattering angle. With an appropriate normalization (see the appendix), the variance can be thought of as a metric of order. Consider the limiting cases: in a minimally ordered sample the atomic distribution is completely homogeneous, leading to perfectly smooth diffracted rings and thus zero variance at a given scattering angle. In a maximally ordered sample, a perfect crystal, the rings resolve into Bragg disks, so that the variance at some fixed _k_ containing peaks will be maximized. The RDF is primarily sensitive to the 2-body atomic pair correlations, whereas the FEM variance is more sensitive to 4-body pair-pair correlations [36, 70], hence its utility in examining medium range order. Figure 14 shows an FEM measurement of an amorphous silicon sample, performed in py4DSTEM. Figure 14a shows the mean diffraction pattern of the dataset, with two strong amorphous rings visible. However, plotting the maximum intensity across all probe positions as in Fig. 14b shows some Bragg disk features, due to small regions of crystallinity in some probe positions. We could simply exclude these patterns from the FEM measurement, but there is a simpler way to suppress or eliminate unwanted contributions of crystalline regions to the variance _V_ ( _q_ ): replace the mean intensity as a function of orientation angle _φ_ with the median intensity. Median statistics are much more robust against outliers, such as the high variance due to Bragg peaks. Figure 14c-e show FEM measurements using both mean and median statistics. The presence of crystalline regions barely effects the mean intensity _⟨I_ ( _q_ ) _⟩φ,_ R, but strongly modulates the variance _V_ ( _q_ ). Figure 14e shows a strong signal at _q_ = 0 _._ 318 <sup>˚</sup> A <sup>_−_</sup> <sup>1</sup> that corresponds to the distribution of nearest neighbor atoms in amorphous Si, with a mean scattering vector approximately equal to the crystalline Si [111] lattice spacing. This signal is approximately the same using both mean and median statistics, unlike the second peak. When the normalized variance is calculated using mean statistics, two additional Bragg peak signals become visible on top of the second broad amorphous peak, corresponding to the [220] and [311] crystalline Si diffraction peaks. This example highlights the importance of either careful inspection of the diffraction images or using robust statistical methods such as medians when performing FEM studies. G. Phase retrieval py4DSTEM includes two methods for reconstruction of the sample potential: differential phase contrast (DPC) and ptychography. Broadly, the idea in both methods is to extract the amount of extra phase that has been added to the electron beam at each scan position. That phase is then taken to be the total (i.e. projected) sample potential at this scan position times a constant which encodes electron-charge interaction strength. Figure 15 show the results of the py4DSTEM phase retrieval algorithms applied to a carbon nanotube [74]. These methods make the transmission function approximation and the projection approximation, and thus can be expected to be most reliable for thin, low_Z_ samples. In cases where these conditions don’t hold, phase retrieval should be interpreted cautiously. _1._ _Differential_ _phase_ _contrast_ Differential phase contrast (DPC) uses the fact that, for a sufficiently thin object, the mean deflection of the electron probe at each scan position in the STEM raster is related to the specimen electric and magnetic field components transverse to the beam propagation direction. Examples of material science applications of this technique include the study of built-in electric fields in semiconductor devices [75], magnetic skyrmions [76] and domain structures [77] and as a technique for efficient visualisation of light atoms in materials [78]. The technique was first suggested by Dekkers and De Lang [79], was extensively applied to the study of magnetic materials from the 1970s onward by Chapman and colleagues and has seen more ubiquitous use with increased uptake of more sophisticated segmented detectors [80] and the advent of fast-readout electron cameras in STEM [81]. Figure 15a shows the sample potential after DPC reconstruction. The mean probe deflections are shown in Fig. 15c,d at each scan position in the _x_ - and _y_ -directions, respectively. Once these are calculated, optionally after defining some mask to cut off high angle scattering, DPC considers this vector field of deflections to be the gradient of some scalar function. The primary task of DPC is thus to reconstruct the scalar field (a.k.a. the DPC image) which has as its gradient the measured probe deflections. In py4DSTEM this inversion is accomplished by Fourier integration of the probe deflections [82, 83]. In the phase object regime (also known as the multiplicative approximation), the resulting scalar field is proportional to the sample potential. Appendix I derives the relation between the beam deflections and the sample potential, and discusses the Fourier integration approach used. A consequence of Fourier integration is that it implicitly assumes periodic boundary conditions, which can be problematic for non-periodic electron microscopy specimens. Boundary condition handling is important to a high quality DPC reconstruction, and in py4DSTEM we have used an iterative boundary condition correction algorithm which is discussed in detail in Appendix I. The rotational offset between real and diffraction space needs to be correctly calibrated to perform the Fourier integration step. One possibility is to use the method discussed in Sec. III C. In the context of DPC, alternative approaches to this calibration are also possible. In one, the beam deflections are assumed to be a conservative vector field, which must be true if they are the gradient of a scalar field. However, if the coordinate systems of real and reciprocal space contain a relative rotation, the measured beam deflections will all be similarly rotated, resulting in general in a nonconservative field. The correct rotational offset can thus be identified by finding the relative rotation which results in beam deflections which are conservative, which can be identified by minimizing the curl as a function of the rotation. In another approach, we note that the contrast of a DPC reconstruction, that is the contrast of the scalar field which results from Fourier integration of the beam deflections, is typically maximized when the rotational offset is correct. Thus the calibration may also be performed by maximizing the DPC contrast as a function of real/diffraction space rotation. Note that this method permits a 180 degree ambiguity in the rotational offset, corresponding to a contrast reversal in the DPC image. Finally, we note that Fourier integration effectively applies a low pass filter (see Appendix I). Some amount of low pass filtering is therefore inherent in DPC imaging as implemented in py4DSTEM. _2._ _Ptychography_ Phase retrieval is difficult because phase is never directly recorded; instead, the detector only captures the square modulus of the electron wavefunction. In electron ptychography of crystals, the idea is that with a large enough convergence angle, the central disk will begin to overlap with other Bragg disks. In the overlap regions the phases of the two beams add coherently, and consequently phase reconstruction is possible by analyzing these regions. The method is analogous to holography, which combines a scattered beam and a reference beam to create an interference pattern, except that the ‘scattered’ and ‘reference’ beams are now the central beam and the Bragg reflected beams. Variations in these regions of interference as the beam is scanned enable phase retrieval. Ptychography was first suggested as a method to solve the crystallographic phase problem by Hoppe [84–86], and later extended to solve the phase Differential Phase Contrast Single Side Band Ptychography (a) (b) (c) (d) CoMx CoMy pixels (e) 0.20 -0.8 +0.8 <u>DPC Convergence</u> 0.1 ~~5~~ 0 250 500 Iterations FIG. 15. Phase retrieval of a carbon nanotube, using (a) differential phase contrast, or (b) single side band ptychography. (c,d) The centers of mass of the diffraction patterns, used in DPC. (e) Convergence of the boundary condition correction component of the DPC algorithm. problem for arbitrary specimens by Rodenburg [87]. py4DSTEM includes a ptychographic reconstruction algorithm which calculates the phase in a single step, based on the single-side-band approach and discussed in detail in Appendix J. Figure 15b shows the results for the carbon nanotube discussed above, and clearly reveals both the walls of the tube as well as the tortuous structure of carbon inside the tube. In general, direct solvers tend to be fast, however, better reconstruction quality is usually achieved with iterative algorithms. Unfortunately, a patent on iteration creates substantial challenges to making iterative ptychography codes of any sort freely available to the scientific community. V. Conclusion In this paper, we have presented the py4DSTEM software package written in Python, for analysis of 4DSTEM experiments. We have described the program’s purpose and structure, including an HDF5 based file standardization for 4D-STEM. We’ve described how py4DSTEM can be used for preprocessing and calibrating data, finding Bragg disk positions, transformation into polar-elliptical coordinates, and for classifying diffraction patterns based on commonalities in their diffraction patterns. We demonstrated measurements including virtual imagining, phase mapping, mapping strain in crystalline and amorphous materials, RDF and FEM analyses, and phase reconstruction with DPC and with ptychography. The analysis here spans 8 datasets, including seven experimental and one synthetic dataset. The py4DSTEM codes and many examples are freely [available in the py4DSTEM repository on Github.](https://github.com/py4dstem/py4DSTEM) As an open source project, both new users and new contributors are enthusiastically encouraged to try the code, use it in your own work, or make a pull request. Acknowledgements This project is supported by the Toyota Research Institute. Work at the Molecular Foundry was supported by the Office of Science, Office of Basic Energy Sciences, of the U.S. Department of Energy under Contract No. DE-AC02-05CH11231. BHS and LAH were supported by the Toyota Research Institute. SEZ was supported by STROBE, an NSF Science and Technology Center, under Grant No. DMR 1548924. SZ was supported by the US Office of Naval Research under Grant No. N0001417-1-2283. JD was supported by the Dow University Partnership Initiative Program. CO and JC acknowledge support of Department of Energy Early Career Research Awards. The authors thank Shreyas Cholia, Matthew Henderson, Rollin Thomas, and Ludovico Bianchi from the National Energy Research Scientific Computing Center (NERSC) for support with high-performance computing integration. NERSC is a U.S. Department of Energy Office of Science User Facility operated under Contract No. DE-AC02-05CH11231. The authors thank Blas Uberuaga for sample acquisition and support. Thanks also to the developers of hyperspy, openNCEM, scipy, numpy, and matplotlib, without whom this project would not have been possible. coordinate k = ( _kx, ky_ ) are determined by the real and diffraction space pixel size calibrations. The value of each _Ii,j,n,m_ is given by the electron flux passing through the appropriate detector pixel, or by the square modulus of the beam wavefunction integrated over the detector pixel at k when the beam raster position is R . Thus the 4DSTEM dataset may be modelled by - _ky_ +∆ _k_ _ky_ _I_ ( R _,_ k ) = - _kx_ +∆ _k_ _kx_ _|_ Ψ( R _,_ k ) _|_ <sup>2</sup> _dkxdky_ FIG. 16. Schematic of STEM experimental geometry, showing initial probe focused onto sample surface, propagating through sample, exiting the sample, and finally being imaged in the far field detector plane. Appendices A. Basic formalism for 4D-STEM Figure 16 shows the geometry of a STEM experiment. We define the following probe wavefunctions: Ψ0( k ) = initial probe formed in diffraction space. _ψ_ 0( r ) = probe focused onto sample surface. _ψ_ ( r ) = probe at exit plane of sample. Ψ( k ) = far field probe in detector plane. where r and k denote coordinates in the real space image and diffraction space planes, respectively, and the diffraction plane coordinate _|_ k _|_ = <sup>_<u>α</u>_</sup> _λ_ <sup>for</sup> <sup>scattering</sup> <sup>angle</sup> _α_ and relativistically corrected electron wavelength _λ_ . In a STEM experiment, scan coils are used to move the probe to a given position R, denoted by _ψ_ 0( r _−_ R ). In this appendix, we first describe a simple model for 4DSTEM datasets, which primarily refers to the diffraction plane wavefunction Ψ( R _,_ k ). We then briefly discuss the more general question of how the wavefunction evolves from the initial probe Ψ0 to the final probe Ψ on the detector. A 4D-STEM dataset typically takes the form of a fourdimensional array of intensity values, _I_ = _Ii,j,n,m_ = _I_ ( _Rx, Ry, kx, ky_ ) = _I_ ( R _,_ k ) _._ Here, each _Ii,j,n,m_ is a scalar and ( _i, j, n, m_ ) _∈_ N, i.e. the dataset is a discrete 4D grid of numbers. The correspondences between ( _i, j_ ) and scan position R = ( _Rx, Ry_ ) and between ( _n, m_ ) and diffraction _≈|_ Ψ( R _,_ k ) _|_ <sup>2</sup> where the approximation is exact in the limit of infinitesimally small detector pixels. Note that this simple model does not account for finite information transfer in the microscope, which could be included with a multiplicative transfer function _M_ ( k ). In a STEM experiment with an integrating detector (ADF, BF, etc.), the image _I_ ( R ) can be modeled as where _A_ ( _k_ max) is the 2D “top hat” function, and _k_ max is the maximum scattering vector of the probe. The probe incident on the sampe is then an Airy disk function _ψ_ 0( r ) = <sup><u>J1(2</u></sup> <sup>_<u>πk</u>_</sup> <sup><u>max</u></sup> <sup>_<u>|</u>_</sup> <sup><u>r</u></sup> <sup>_<u>|</u>_</sup> <sup><u>)</u></sup> (A5) _~~√~~_ _<u>π|</u>_ r _|_ _I_ ( R ) = _|_ Ψ( R _,_ k ) _|_ <sup>2</sup> _D_ ( k ) _d_ k (A1) where _D_ ( k ) reflects the detector geometry. For some 4DSTEM signal _I_ ( R _,_ k ) we can write down an equivalent virtual image _I_ v( R ) as: _I_ v( R ) = _I_ ( k _,_ R ) _D_ ( k ) _d_ k _._ (A2) If Eqs. A1 and A2 look similar, it’s because they are. The key difference is in the meaning of the integration over _D_ ( k ): in the former equation, it describes the action of the detector, and the integration occurs in hardware during data acquisition; in the latter equation, it is a prescription for which pixels of the 4D datacube need to be summed in post-processing. The evolution of the probe is comparatively simple from the probe forming aperture to the sample plane, and from the sample plane to the detector - both are given by Fourier transforms: _ψ_ 0( r ) = _F_ k _→_ r Ψ0( k ) Ψ( k ) = _F_ r _→_ k _ψ_ ( r ) (A3) where _F_ r _→_ k is the forward transform from the real to diffraction domain, and _F_ k _→_ r is the inverse transform from the diffraction to real domain. The most common initial condition for the electron probe in 4D-STEM is given by a circular aperture in a condenser plane Ψ0( k ) = _A_ ( _k_ max) = - 1 if _|_ k _| ≤_ _k_ max (A4) 0 otherwise where J1 is a Bessel function <u>of</u> the first kind, and the peak amplitude is equal to <sup>_√_</sup> _<u>πk</u>_ max. This function is shown graphically in the upper right corner of Figure 16. More complex STEM probes can be formed by using amplitude-patterned apertures [39, 88], phase plates [89– 92], or other methods [93, 94]. In a vacuum, _ψ_ 0( r ) = _ψ_ ( r ), so that Ψ( k ) and Ψ0( k ) are identical up to scaling and phase factors, so that without a sample the image on the detector directly reflects the electron beam passing through the probe-forming aperture. The change in the wavefunction from _ψ_ 0( r ) to _ψ_ ( r ), as the beam passes through a sample is, in general, analytically intractable, so numerical methods are typically used. Using some approximations described in [34], and omitting the scan coordinate R for clarity, the interaction of the STEM probe with the sample is governed by the time-independent Schr¨odinger equation 1 propagation operations. The multislice method is often used for modeling 4D-STEM experiments, but can require a prohibitively high amount of computation time for very large simulations. Recently, a more efficient method has been developed to simulate 4DSTEM experiments called PRISM [96], which has been made available as a simulation code [97], and extended to simulate electron energy loss spectroscopy (STEMEELS) inelastic scattering as well [98]. B. Cross, phase, and hybrid correlations Cross-correlative template matching is a standard tool in image processing, and is widely used in computational analysis for electron microscopy [99, 100]. The purpose of this appendix is to outline the formalism for these methods, and to briefly discuss the effects of and appropriate uses cases for so-called ‘hybrid’ correlations. For functions _f_ and _g_, written in one dimension for simplicity, the cross correlation is defined as _<u>∂ψ</u>_ <u>(</u> <u>r</u> <u>)</u> <u>(</u> <u>r</u> <u>)</u> = <sup>_<u>iλ</u>_</sup> _∂z_ 4 _π_ 4 _π_ - _<u>∂</u>_ 2 _<u>ψ</u>_ <u>(</u> <u>r</u> <u>)</u> + <sup>_<u>∂</u>_</sup> <sup>2</sup> <sup>_<u>ψ</u>_</sup> <sup><u>(</u></sup> <sup><u>r</u></sup> <sup><u>)</u></sup> - + _iσV_ ( r ) _ψ_ ( r ) (A6) _∂x_ <sup>2</sup> _∂y_ <sup>2</sup> where _i_ is the imaginary constant, _σ_ is the relativisticallycorrected electron-matter interaction constant, and _V_ ( r ) is the electrostatic potential inside the sample. Because the two operators on the right-hand side of equation A6 do not commute, it is typical to use a split-step method to numerically solve this equation called the multislice method, first derived in [95]. To use the multislice method to solve the interaction of the electron beam with the sample, we first divide up the sample into a series of _N_ slices, _Vn_ ( r ), which are 2D arrays that integrate all of the electrostatic potential contained in a given slice of thickness ∆ _z_, given by - _z_ +∆ _z/_ 2 ( _f_ _⋆g_ )( _x_ ) = - _∞_ _∞_ _f_ ( _y_ ) <sup>_∗_</sup> _g_ ( _x_ + _y_ ) _dy_ (B1) _Vn_ ( r ) = _V_ ( r ) _dz_ (A7) _z−_ ∆ _z/_ 2 By assuming each slice has infinitesimal thickness, the solution to the transmission operator is given by _ψ_ ( r ) = _T_ ( r ) _ψ_ 0( r ) = _e_ <sup>_iσVn_</sup> <sup>(</sup> <sup>r</sup> <sup>)</sup> _ψ_ 0( r ) _._ (A8) Between each slice, we assume zero electrostatic potential and can therefore advance the electron wave by using the free-space propagation operator, which can be efficiently applied in Fourier space [34] �� _._ (A9) where <sup>_∗_</sup> indicates complex conjugation. The key idea here is that if _f_ ( _x_ _−_ _a_ ) = _g_ ( _x_ ), then ( _f ⋆g_ )( _x_ = _a_ ) will be a maximum, because the integrand then becomes _|f_ ( _y_ ) _|_ <sup>2</sup> and two functions are perfectly overlapped. Therefore, the cross correlation of the vacuum probe template with a diffraction pattern can be used to extract the Bragg disk positions simply by identifying the cross correlation maxima. Computationally, this is implemented via the cross correlation theorem, which states that ( _f_ _⋆g_ )( _x_ ) = _F_ <sup>_−_</sup> <sup>1</sup> (( _Ff_ ) <sup>_∗_</sup> ( _Fg_ )) (B2) where _F_ is the Fourier transform. This follows directly from the Fourier transform of Eq. B1 and the change of variables _x_ <sup>_′_</sup> = _x_ + _y_ . Equation B2 therefore allows the integral of Eq. B1 to be computed efficiently via a few FFT operations, which is important because performing the cross correlation on each diffraction pattern (often 10,000 or more) is the most computationally intensive step of many analysis workflows. In contrast to Eq. B2, the so-called phase correlation normalizes by the amplitude in Fourier space before applying the inverse transform: _ψ_ ( r ) = _F_ k _→_ r - _e_ <sup>_iλ_</sup> <sup>∆</sup> <sup>_z|_</sup> <sup>k</sup> <sup>_|_</sup> <sup>2�</sup> �� _F_ r _→_ k _ψ_ 0( r ) _._ (A9) Note that the propagation operator _e_ <sup>_iλ_</sup> <sup>∆</sup> <sup>_z|_</sup> <sup>k</sup> <sup>_|_</sup> <sup>2</sup> uses the 2D inverse spatial coordinate k = _kx_ 2 + _ky_ 2. We alternate the application of the transmission and propagation operators to calculate the final wavefunction after interacting with the sample, ( _f_ _⋆g_ )phase( _x_ ) = _F_ <sup>_−_</sup> <sup>1</sup> - <u>(</u> _<u>Ff</u>_ <u>)</u> _∗_ <u>(</u> _<u>Fg</u>_ <u>)</u> _|_ ( _Ff_ ) <sup>_∗_</sup> ( _Fg_ ) _|_ (B3) _ψ_ 0( r ) _,_ _e_ <sup>_iσVn_</sup> <sup>(</sup> <sup>r</sup> <sup>)�����</sup> _ψ_ ( r ) = - _N_ - - _F_ k _→_ r _n_ =1 - _e_ <sup>_iλ_</sup> <sup>∆</sup> <sup>_z|_</sup> <sup>k</sup> <sup>_|_</sup> <sup>2�</sup> _F_ r _→_ k This leads to an analytically pleasing result: now, if _f_ ( _x −_ _a_ ) = _g_ ( _x_ ), then ( _f_ _⋆g_ )phase( _x_ ) = _δ_ ( _x −_ _a_ ). The result follows directly from substituting _f_ ( _x −_ _a_ ) = _g_ ( _x_ ) in to Eq. B3 and making use of the Fourier shift theorem. Thus where the cross correlation simply has a maximum where _f_ and _g_ best overlap, the phase correlation yields which is typically referred to as the exit wave. This method requires _N_ transmission operations and _N_ _−_ a delta function which selects the point of interest. As a practical matter, however, phase correlations are also highly sensitive to noise, and this application tend to lead to many false positives when used with real data. An intermediate approach is possible using a hybrid correlation, in which a normalization somewhere in between a phase and cross correlation is used, as follows: Taking a summation over all scan positions gives _ry∈Ry_ _B_ ( k ) = = _rx∈Rx_ _rx,ry,i_ _Irx,ry,iδ_ ( k _−_ k _rx,ry,i_ ) (C4) _Brx,ry_ ( k ) (C3) _B_ is the Bragg vector map. Physically, is interpretable as a (unnormalized) distribution of measured Bragg vector directions found within the sample over the area of the 4D-STEM scan. D. Elliptical fitting and transforms In this appendix we describe various elements of py4DSTEM that make use of or relate to elliptical coordinates. First we discuss elliptical fitting, which is important for correction of elliptical distortions. We then briefly describe and relate the two elliptical parametrizations used in the code. Finally, we describe polar-elliptical transformations and radial integration. Two primary elliptical fitting routines are available in py4DSTEM. The first is appropriate for data that is well-described by a 1D elliptical curve - for instance, a Bragg vector map from a sample with many randomly oriented grains will typically contain elliptical rings associated with each characteristic spacing of the material. The second is a sum of two Gaussian functions, a simple Gaussian and a ‘double-sided’ Gaussian, and is appropriate for fitting amorphous diffraction patterns, and is a two-dimensional fit designed to capture the first amorphous halo. For 1D elliptical curve fitting, we first define some annular region of our 2D dataset containing pixels ( _kxi, kyi_ ), each with intensity _Ii_ . We then determine the ellipse that most closely fits this data by computing ( _f_ _⋆g_ )n( _x_ ) = _F_ <sup>_−_</sup> <sup>1</sup> - <u>(</u> _<u>Ff</u>_ <u>)</u> <sup>_∗_</sup> <u>(</u> _<u>Fg</u>_ <u>)</u> _|_ ( _Ff_ ) <sup>_∗_</sup> ( _Fg_ ) _|_ <sup>1</sup> <sup>_−n_</sup> (B4) Here, _n_ _∈_ [0 _,_ 1]. For _n_ = 1, the result is a cross correlation, and for _n_ = 0, the result is a phase correlation. Intermediate values may be thought of is applying intermediate weighting to the amplitude versus phase components of the signals in Fourier space. While the hybrid correlation is a heuristic approach, it is often effective. Giving more weight to the phase components (lower values of _n_ ) increases sensitivity to edges and can do a better job of identifying faint Bragg disks, however, the trade off is typically an increase in falsepositives. Experience with many datasets indicates that an _n_ value in the neighborhood 0.85 or 0.9 - similar to a cross correlation, but with a slightly increased sensitivity to edges - frequently yields good results. The noisier the data, the more caution is in order in using lower _n_ values, and for very noisy data pure cross-correlations are recommended. Figure 17 shows cross, hybrid (for several _n_ values) and phase correlations in one dimension for simulated data with and without noise. C. Bragg vector map formalism Let us refer to the _i_ ’th Bragg disk detected in the diffraction pattern at scan position ( _Rx, Ry_ ) as _BRx,Ry,i_ . In computer memory, this might be thought of as a length 3 tuple: _BRx,Ry,i_ = ( _kx,i, ky,i, Ii_ ), where the subscript _i_ indicates the _i_ ’th peak, and the three values are the coordinates of the disk center in diffraction space and the disk’s intensity. Analytically, we can think of the _BRx,Ry,i_ as Kronecker deltas of strength _Ii_ : _BRx,Ry,i_ ( k ) = _Iiδ_ ( _kx −_ _kx,i_ ) _δ_ ( _ky −_ _ky,i_ ) (C1) The delta function specifies where the Bragg condition is met for parallel illumination; Bragg disks are formed by translating each point in the central disk by this vector, and may be thought of as the convolution of the aperture function with Eq. C1 Let’s denote the set of all Bragg disks detected at a scan position ( _Rx, Ry_ ) as _BRx,Ry_ . For _N_ disks in _BRx,Ry_ we can write arg min _kx_ 0 _,ky_ 0 _,A,B,C_ �[ _A_ ( _kxi_ _−_ _kx_ 0) <sup>2</sup> + _B_ ( _kxi_ _−_ _kx_ 0)( _kyi_ _−_ _ky_ 0)+ _i_ _C_ ( _kyi_ _−_ _ky_ 0) <sup>2</sup> _−_ 1] _Ii_ _BRx,Ry_ ( k ) = _N_ _i_ =1 _Iiδ_ ( _kx −_ _kx,i_ ) _δ_ ( _ky −_ _ky,i_ ) (C2) The double-sided Gaussian function for amorphous halo fitting is defined as _f_ ( _kx, ky_ ; _I_ 0 _, I_ 1 _, σ_ 0 _, σ_ 1 _, σ_ 2 _, c, R, kx_ 0 _, ky_ 0 _, B, C_ ) = _N_ ( _r_ ; 0 _, σ_ 0 _, I_ 0 _,_ )+ _N_ ( _r_ ; _R, σ_ 1 _, I_ 1)Θ( _r −_ _R_ )+ _N_ ( _r_ ; _R, σ_ 2 _, I_ 1)Θ( _R −_ _r_ ) where ( _kx, ky_ ) are the coordinates and ( _I_ 0 _, I_ 1 _, σ_ 0 _, σ_ 1 _, σ_ 2 _, c, R, kx_ 0 _, ky_ 0 _, B, C_ ) are parameters, where _N_ ( _r_ ; _R, σ, I_ ) is a Gaussian centered at _R_ with standard deviation _σ_ and with maximum amplitude _I_, where Θ is the Heaviside step function, and where _r_ is the radial coordinate of an elliptical system given by _r_ <sup>2</sup> = ( _kx −_ _kx_ 0) <sup>2</sup> + _B_ ( _kx −_ _kx_ 0)( _ky −_ _ky_ 0) + _C_ ( _ky −_ _ky_ 0). When performing a fit, as before we first define an Without Noise With Noise Cross Hybrid Phase Cross Hybrid Phase FIG. 17. Cross correlation, phase correlation, and hybrid correlation. A 1D vacuum probe has been correlated with a 1D comb of Bragg disks without (left) and with (right) noise. Various values of _n_ are used, where _n_ = 1 is a cross correlation, _n_ = 0 is a phase correlation, and intermediate values are ‘hybrid’ correlations - see Eq. B4. Hybrid correlations increase sensitivity to edges and narrow the central maxima relative to a cross correlation, but also increase sensitivity to noise. annular region in the dataset to fit, typically about the first amorphous halo. The first term is meant to fit the decaying background, while the second and third terms fit the amorphous halo, while allowing for an asymmetrical shape on the inner/outer sides of the ring. When fitting ellipses we use the parametrization 1 = _A_ ( _kx −_ _kx_ 0) <sup>2</sup> + _B_ ( _kx −_ _kx_ 0)( _ky −_ _ky_ 0) + _C_ ( _ky −_ _ky_ 0) <sup>2</sup> (D1) for numerical stability. However the parameters of this form are not the most easily geometrically interpretable, so for this reason we also make use of the alternate parametrization _kx_ = _kx_ 0 + _A_ <sup>_′_</sup> _r_ cos( _θ_ ) cos( _φ_ ) _−_ _B_ <sup>_′_</sup> _r_ sin( _θ_ ) sin( _φ_ ) (D2) _ky_ = _ky_ 0 + _B_ <sup>_′_</sup> _r_ cos( _θ_ ) sin( _φ_ ) + _A_ <sup>_′_</sup> _r_ sin( _θ_ ) cos( _φ_ ) where ( _kx, ky_ ) are cartesian coordinates, ( _r, θ_ ) are polarelliptical coordinates, and ( _A_ <sup>_′_</sup> _, B_ <sup>_′_</sup> _, φ_ ) are parameters corresponding to the two semi-axis, and the tilt of the _A_ <sup>_′_</sup> -axis with respect to the _kx_ -axis. Equations D1 and D2 are related by _A_ <sup>_′_</sup> = _B_ <sup>_′_</sup> = ~~�~~ <u>2</u> _A_ + _C_ + _ξ_ ~~�~~ <u>2</u> _A_ + _C −_ _ξ_ _ξ_ = ( _A −_ _C_ ) <u>�</u> _<u>B</u>_ 1 + _A −_ _C_ <u>�2</u> _φ_ = <sup><u>1</u></sup> - _<u>B</u>_ 2 <sup>tan</sup> <sup>_−_</sup> <sup>1</sup> _A −_ _C_ Once the appropriate elliptical parameters are known, polar-elliptical transformations may be performed. After specifying a range and sampling the new polar coordinates, each point ( _r, θ_ ) is mapped to some ( _kx, ky_ ) position in Cartesian space, from which a bilinear interpolation is then used to compute the value at ( _r, θ_ ). In py4DSTEM, arrays returned after polarelliptical transformation are numpy masked arrays, to ensure that coordinates beyond the frame of the raw data are correctly handled, and also facilitating masking data where necessary, e.g. from a beamstop. Radial integrals are calculated by first computing the polar elliptical (or polar) transformation then summing along the _θ_ -direction. E. Classification The underlying principle of the classification scheme described in Sec. III E is the definition of a particular feature vector, which is useful because it efficiently encodes the key physical features of crystalline electron scattering - the Bragg vectors. It therefore massively reduces the size of the data before classification, while honing in on the most physically relevant element of the diffraction data. For a calibrated Bragg vector map containing _N_ delta-like peaks, we associate with each such peak an integer _i_ _∈{_ 0 _, ..., N_ _−_ 1 _}_ . For each diffraction pattern we generate a length- _N_ vector _v_ . The _i_ ’th element of _v_ is defined in one of two ways: (1) a Boolean value indicating whether this diffraction patterns contains this Bragg peak, or (2) a floating point value of the intensity of this Bragg peak in this diffraction pattern. With these feature vectors in hand, we use matrix factorization methods to complete the classification. First we construct the matrix _X_ which has the feature vectors _v_ as its columns. For data with _RN_ = _RNx_ _×RNy_ diffraction patterns, _X_ has dimensions _N_ _×RN_ . _X_ is then written as _X_ = _WH_ (E1) where _W_ has shape _N_ _×_ _C_, _H_ has shape _C_ _×_ _RN_, and _C_ is the number of classes. _W_ may be thought of as a collection of _C_ column vectors, each describing a class in terms of weights for the various possible Bragg vectors observed over the entire dataset. _H_ may be thought of as a set of column vectors which describe how to obtain, through linear combination of the classes, good approximations for each of the observed diffraction patterns. Alternatively, the row vectors of _H_ may be thought of as an image (albeit reshaped): there are _C_ of them, and each describes how much to weight the corresponding class in each of the _RN_ positions of the electron beam. In Secs III E and IV B we use an algorithm based on the frequency of co-occurance of Bragg peaks across diffraction patterns to set initial values for _W_ and _H_ . We then optimize using nonnegative matrix factorization [101]. F. Strain In this appendix we discuss how the crystalline and amorphous strains are calculated in Secs. IV C and IV D. We’re interested in the infinitesimal strain matrix, where the deformed lattice differs very little from the undeformed lattice. For a material with a deformed state characterized by some displacement field u, and considering the system in a coordinate system with abscissa and ordinate ( _x_ 1 _, x_ 2), the infinitessimal strain matrix is _ϵ_ can then be retrieved from _T_ <sup>_a_</sup> . In practice, we calculate basis lattice vectors of the reciprocal lattice _g_ = ( g 1 _,_ g 2), by performing an intensity-weighted fit to measured Bragg peak positions at each scan position. The corresponding reference vectors _g_ <sup>0</sup> = ( g 1 <sup>0</sup> <sup>_,_</sup> <sup>g</sup> 2 <sup>0)</sup> <sup>can</sup> <sup>be</sup> <sup>determined</sup> <sup>several</sup> <sup>ways,</sup> including defining a reference region, dataset, or using a known crystal structure. At this point it is possible to use _g_ to determine _a_, then compute _ϵ_ with the _−_ <sup><u>1</u></sup> 2 <sup><u>1</u></sup> 2 - _<u>∂u∂x</u>_ 21 <sup>+</sup> <sup>_<u>∂u</u>_</sup> _∂x_ 1 <sup><u>2</u></sup>   _∂x_ 1   _<u>∂u∂x</u>_ 11 _−_ <sup><u>1</u></sup> 2 <sup><u>1</u></sup> 2 - _<u>∂u∂x</u>_ 21 <sup>+</sup> <sup>_<u>∂u</u>_</sup> _∂x_ 1 <sup><u>2</u></sup> _ϵ_ = - _ϵ_ 11 _ϵ_ 12 _ϵ_ 21 _ϵ_ 22 = _∂x_ 1 - _<u>∂u</u>_ <u>2</u> _∂x_ 2 (F1) and is typically accompanied by _θR_ = 21 - _<u>∂u∂x</u>_ 21 <sup>_−_</sup> <sup>_<u>∂u</u>_</sup> _∂x_ 1 <sup><u>2</u></sup> . The _ϵii_ terms represent the compressive/tensile strain along the x - _i_ directions, with positive values corresponding to tension. _ϵ_ 12 represents the shear strain, and our sign convention is chosen such that positive values correspond to the angle spanned from x �1 to x �2 becoming more obtuse in the deformed body. _θR_ represents the rotation of the material, with positive values corresponding to counterclockwise rotation of a right-handed coordinate system. For both crystalline and amorphous strain, the strain matrix is calculated at each beam position by comparing two comparable measurements: one of the local structure, and one of an undeformed reference structure. For crystalline strain, the measurement we use is a pair of reciprocal lattice basis vectors. For amorphous strain, the measurement is a transformation of the ellipse fit to the (first) amorphous halo. For crystalline strain, consider a real space lattice with reference basis vectors _a_ <sup>0</sup> = ( a <sup>0</sup> 1 <sup>_,_</sup> <sup>a</sup> <sup>0</sup> 2 <sup>)</sup> <sup>and</sup> <sup>local,</sup> <sup>deformed</sup> lattice vectors _a_ = ( a 1 _,_ a 2). The transformation matrix _Ta_ 0 _→a_ describes the linear deformation of the space, and given the lattice vectors is calculable via _a_ = _T_ <sup>_a_</sup> _a_ <sup>0</sup> The strain matrix in Eq. F1 is defined with respect to some arbitrary area element of the material under study, so we consider a square unit area element with sides (� e <sup>0</sup> 1 <sup>_,_</sup> <sup>�</sup> <sup>e</sup> <sup>0</sup> 2 <sup>)</sup> <sup>=</sup> <sup>(</sup> <sup>x</sup> <sup>�1</sup> <sup>_,_</sup> <sup>�</sup> <sup>x</sup> <sup>2).</sup> <sup>The</sup> <sup>transformation</sup> <sup>_T a_</sup> <sup>maps</sup> <sup>these</sup> to a new set of vectors ( e 1 _,_ e 2). In the limit of small area elements, the relevant derivatives are then expressible as _<u>∂u</u>_ <u>1</u> _∂x_ 1 _<u>∂u</u>_ <u>1</u> _∂x_ 2 _<u>∂u</u>_ <u>2</u> _∂x_ 1 _<u>∂u</u>_ <u>2</u> _∂x_ 2 <sup>0</sup> 1 <sup>)</sup> <sup>_·_</sup> <sup>�</sup> <sup>e</sup> 1 <sup>0</sup> = _T_ 11 <sup>_a_</sup> = ( e 1 _−_ e <sup>0</sup> 1 11 <sup>_a_</sup> <sup>_−_</sup> <sup>1</sup> = ( e 1 _−_ e <sup>0</sup> 1 <sup>0</sup> 1 <sup>)</sup> <sup>_·_</sup> <sup>�</sup> <sup>e</sup> 2 <sup>0</sup> = _T_ 21 <sup>_a_</sup> 21 = ( e 2 _−_ e <sup>0</sup> 2 <sup>0</sup> 2 <sup>)</sup> <sup>_·_</sup> <sup>�</sup> <sup>e</sup> 1 <sup>0</sup> = _T_ 12 <sup>_a_</sup> 12 = ( e 2 _−_ e <sup>0</sup> 2 <sup>0</sup> 2 <sup>)</sup> <sup>_·_</sup> <sup>�</sup> <sup>e</sup> 2 <sup>0</sup> = _T_ 22 <sup>_a_</sup> 22 <sup>_a_</sup> <sup>_−_</sup> <sup>1</sup> methods above. Alternatively, assuming sufficiently small deformations that we may discard terms of second order and higher in a Taylor expansion in both rotation and scaling, it is possible to compute _ϵ_ directly from the transformation _Tg_ 0 _→g_, describing the linear deformation of reciprocal space, with remarkably little alteration to the above equations. In this case, the final expressions for the strain are _ϵ_ 11 = 1 _−_ _T_ 11 <sup>_g_</sup> _ϵ_ 22 = 1 _−_ _T_ 22 <sup>_g_</sup> _ϵ_ 12 = _−_ 2 <sup><u>1</u></sup> <sup>(</sup> <sup>_T g_</sup> 12 <sup>+</sup> <sup>_T g_</sup> 21 <sup>)</sup> _θR_ = <sup><u>1</u></sup> 2 <sup>(</sup> <sup>_T g_</sup> 12 <sup>_−_</sup> <sup>_T g_</sup> 21 <sup>)</sup> (F2) Taking a first order Taylor expansion about _A_ = 1, _C_ = 1, and _B_ = 0 yields the linear strain approximation _ϵ_ 11 = <sup><u>1</u></sup> 2 <sup>(</sup> <sup>_A −_</sup> <sup>1)</sup> _ϵ_ 22 = <sup><u>1</u></sup> 2 <sup>(</sup> <sup>_C −_</sup> <sup>1)</sup> _ϵ_ 12 = <sup><u>1</u></sup> (F8) 2 <sup>_B._</sup> Note that when using the linear approximation above, it is important to use a value for _q_ ref that is very close to the reference lattice average scattering radius, as the accuracy of the above expressions will suffer as the approximations _A ≈_ 1 and _C_ _≈_ 1 become worse. An alternative method of determining the real-space strains corresponding to an ellipse can be done using matrix notation. In matrix form, the ellipse equation F3 can be represented as To measure strain from the diffraction pattern of an amorphous material, we fit ellipses at each probe position using the methods described in Appendix D. After shifting the origin of each ellipse to k = (0 _,_ 0), we have - _A_ _B/_ 2� _,_ (F9) _B/_ 2 _C_ _q_ ref 2 = _Akx_ 2 + _Bkxky_ + _Cky_ 2 (F3) _M_ = where _q_ ref is a reference radius, which defines an undeformed (circular) amorphous halo given by _q_ ref 2 = _kx_ 2 + _ky_ 2 _._ (F4) Because the measurement takes place in reciprocal space, it is more convenient to define the transformation matrix from the measured ellipse given by Eq. F4 to the reference circle given by Eq. F3, which is given by _′_ _′_ - _kx_ _ky_ where the major and minor axis directions are the eigenvectors of _M_, and their lengths are the square root of the eigenvalues. In the eigenbasis reference frame then, the transformation matrix, T, is simply the square root of the diagonalized eigenvalues, aligned with the corresponding eigenvectors. However, this must be rotated back to the traditional _xy_ reference frame, or another chosen reference frame, via tensor rotation T <sup>_′_</sup> = RTR <sup>T</sup> (F10) where R is a standard rotation matrix and the superscript T represents transpose. The angle with respect to the _xy_ axis can be found by taking the twoargument arctangent (atan2) of an eigenvector. Finally, once T <sup>_′_</sup> is in the correct orientation, the strains are simply _ϵ_ 11 = _T_ 11 _−_ 1 _ϵ_ 22 = _T_ 22 _−_ 1 _ϵ_ 12 = ( _T_ 12 + _T_ 21) _._ (F11) We also note that most experiments will contain some degree of ellipticity even when no strain is present. In these cases, we will subtract the reference strain state from all measurements. G. Radial Distribution Functions We computation the radial distribution function following the methods of [37, 68]. Beginning from an amorphous diffraction pattern, often averaged over many probe positions to increase the signal to noise ratio, we measure the radial intensity _⟨I_ ( _k_ ) _⟩φ_ averaged over the angular direction _φ_ . Figure 13a-c shows such data _′_ _′_ = T _,_ (F5) - _kx′_ _ky_ _′_ where where <u>1</u> T = _~~√~~_ _A_ + _C_ + _W_ - _A_ + <sup><u>1</u></sup> 2 2 <sup><u>1</u></sup> <sup>_W_</sup> <sup><u>1</u></sup> 2 <sup>_W_</sup> _B_ _B_ _C_ + 2 <sup><u>1</u></sup> _,_ _W_ = �4 _AC −_ _B_ <sup>2</sup> _._ This expression is valid as long as the roots are real, i.e. 4 _AC_ _−_ _B_ <sup>2</sup> _>_ 0. To calculate the strain deformation tensor, we proceed in a similar manner to F2, althrough we note the direction of the transformation has already been changed to the real space transformation directions, _ϵ_ 11 = _T_ 11 _−_ 1 _ϵ_ 22 = _T_ 22 _−_ 1 _ϵ_ 12 = <sup><u>1</u></sup> (F6) 2 <sup>(</sup> <sup>_T_</sup> <sup>12 +</sup> <sup>_T_</sup> <sup>21)</sup> <sup>_._</sup> The full expressions for the strain tensor components are _A_ + <sup><u>1</u></sup> <u>2</u> _ϵ_ 11 = _~~√~~_ _A_ + _C_ _C_ + <sup><u>1</u></sup> <u>2</u> _ϵ_ 22 = _~~√~~_ _A_ + _C_ _A_ + <sup><u>1</u></sup> <u>2</u> <sup>_W_</sup> _~~√~~_ _A_ + _C_ + _A_ + _C_ + _W_ <sup>_−_</sup> <sup>1</sup> _C_ + <sup><u>1</u></sup> <u>2</u> <sup>_W_</sup> _~~√~~_ _A_ + _C_ + _A_ + _C_ + _W_ <sup>_−_</sup> <sup>1</sup> _<u>B</u>_ _ϵ_ 12 = _~~√~~_ (F7) _A_ + _C_ + _W_ for amorphous silicon. Next, we estimate the structure factor using the expression Φ( _q_ ) = <sup>_<u>⟨I</u>_</sup> <sup><u>(</u></sup> <sup>_<u>q</u>_</sup> <sup><u>)</u></sup> <sup>_<u>⟩φ −</u>_</sup> <sup>_<u>I</u>_</sup> <sup><u>BG(</u></sup> <sup>_<u>q</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>N</u>_</sup> <sup>_<u>⟨f</u>_</sup> <sup><u>(</u></sup> <sup>_<u>q</u>_</sup> <sup><u>)2</u></sup> <sup>_<u>⟩</u>_</sup> _N_ _⟨f_ ( _q_ ) <sup>2</sup> _⟩_ _q M_ ( _q_ ) _,_ (G1) intensity as a function of scattering angle _⟨I_ ( _q_ ) _⟩φ,_ R from all diffraction patterns at probe positions R . Next, we measure the variance _V_ ( _q_ ) of the intensity as a function of scattering angle over all diffraction patterns _V_ ( _q_ ) = _⟨_ [ _⟨I_ ( _q_ ) _⟩φ −⟨I_ ( _q_ ) _⟩φ,_ R ] <sup>2</sup> _⟩_ R _._ (H1) In order to reduce the effect of thickness when comparing multiple datasets, we then compute the normalized variance _V_ norm( _q_ ) as where _I_ BG( _q_ ) is a background intensity estimate, _⟨f_ ( _q_ ) <sup>2</sup> _⟩_ is the mean-square of the parameterized singleatom scattering factors for all atomic species present, multiplied by _N_ total atoms in the probe volume, and _M_ ( _q_ ) is a masking function. The single atom scattering term is typically fit to the high scattering angle region, past the region where oscillating structure factor peaks are visible. The background _I_ BG( _q_ ) can be an additional constant offset, a more complex fitting function, or just neglected. A masking envelope function _M_ ( _q_ ) is required to zero the structure factor Φ( _q_ ) at low scattering angles due to residual intensity from the central beam. This function can also be used to zero the structure factor Φ( _q_ ) at high scattering angles as well, due to residual fitting errors in _N_ _⟨f_ ( _q_ ) <sup>2</sup> _⟩_ and _I_ BG( _q_ ). Figure 13c shows the single atom scattering fit, and Fig. 13d shows the masked structure factor. Next, we obtain the reduced radial distribution function (RDF) _g_ ( _r_ ) by taking the discrete (type II) sine transform of Φ( _q_ ), equal to The RDF measurement described above is primarily sensitive to the 2-body atomic pair correlations, whereas the FEM variance is more sensitive to 4-body pair-pair correlations [70]. I. Differential Phase Contrast In this appendix we summarize the mathematical underpinnings of the differential phase contrast method, adapted from Ref. [102]. Following from Appendix A, we select for the STEM detector in Eq. A1, the so-called first moment detector function D ( _k_ ) = k . Note that, in contrast to Eq. A1, here we use a vector valued detector function, yielding a vector valued image: _<u>V</u>_ <u>(</u> _<u>q</u>_ <u>)</u> _V_ norm( _q_ ) = _⟨I_ ( _q_ ) _⟩_ <sup>2</sup> _φ,_ R (H2) �� _<u>r</u>_ ∆ _r_ <sup>+ 1</sup> - <sup>�</sup> _,_ _g_ ( _r_ ) = _q_ max _q_ =0 Φ( _q_ ) sin - _<u>π</u>_ _q_ max - ∆ _<u>qq</u>_ <sup>+</sup> <sup><u>1</u></sup> 2 _|_ Ψ( k _,_ R ) _|_ <sup>2</sup> k _d_ k (I1) (G2) where _q_ max is the maximum _q_ where Φ( _q_ ) is non-zero, and ∆ _q_ and ∆ _r_ are the pixel sizes in diffraction and real space respectively. _g_ ( _r_ ) should ideally approach 0 as _r_ _→_ 0 within the nearest neighbor shell, and approach 1 as _r_ _→∞_, but errors in the above fitting procedure can cause deviations from these results. [37] Other authors recommend subtracting a 4 <sup>th</sup> order polynomial from Φ( _q_ ) in order to reduce low spatial frequency artifacts. Here, we add a sigmoidal damping mask which clamps the RDF to zero as _r_ _→_ 0. Figure 13e shows the final result of the calculation, _g_ ( _r_ ). Finally, we can also compute the atomic density _ρ_ ( _r_ ) of our sample using the expression _ρ_ ( _r_ ) = _r_ [ _g_ ( _r_ ) + 4 _πrρ_ 0] _,_ (G3) where _ρ_ 0 is the bulk atomic density of the sample. This expression can be used to determine the coordination number of neighboring shells of atoms, by integrating over the distances _r_ corresponding to a specific shell. H. Fluctuation Electron Microscopy The FEM computation here follows the methods of [73]. The first steps are identical to an RDF study, namely calibrating the elliptic distortions, performing the polar transformation and measuring the average I ( R ) = Physically, this distinction reflects that such a detector is sensitive to deflections of the total intensity of the electron beam, which is itself a vector quantity. A good approximation to Eq. I1 is possible using a segmented detector geometries [103]. Substituting this into Eq. A3, this detector choice allows us to write: I ( R ) = = _|F_ r _→_ k ( _ψ_ ( r _,_ R )) _|_ <sup>2</sup> k _d_ k _F_ r _→_ k ( _ψ_ ( r _,_ R )) _F_ r <sup>_∗_</sup> _→_ k <sup>(</sup> <sup>_ψ_</sup> <sup>(</sup> <sup>r</sup> <sup>_,_</sup> <sup>R</sup> <sup>))</sup> <sup>k</sup> <sup>_d_</sup> <sup>k</sup> = <sup><u>1</u></sup> 2 _πi_ _F_ r _→_ k ( _∇_ r _ψ_ ( r _,_ R )) _× F_ r <sup>_∗_</sup> _→_ k <sup>(</sup> <sup>_ψ_</sup> <sup>(</sup> <sup>r</sup> <sup>_,_</sup> <sup>R</sup> <sup>))</sup> <sup>_d_</sup> <sup>k</sup> where <sup>_∗_</sup> indicates a complex conjugation, and in the last line the derivative property of the Fourier transform has been invoked. <sup>2</sup> So far no assumptions have been made. If a thin specimen is assumed <sup>3</sup> we may model the probe-sample 2 I.e. _F_ r _→_ k ( _∇f_ ( r )) = 2 _πi_ k _F_ r _→_ k ( _f_ ( r )) 3 A necessary but not sufficient condition is that the probe depth of field (equal to 1 _._ 7 _λ/α_ <sup>2</sup> ) is much greater than the specimen thickness. interaction as multiplication of the electron wave function with a specimen transmission function _T_ ( r ) and we can continue with I ( R ) = <sup><u>1</u></sup> 2 _πi_ - _d_ k _d_ r _e_ <sup>_−_</sup> <sup>2</sup> <sup>_πi_</sup> <sup>k</sup> <sup>_·_</sup> <sup>r</sup> - _ψ_ 0( r _−_ R ) _∇T_ ( r ) + _T_ ( r ) _∇ψ_ 0( r _−_ R ) _×_ _d_ r <sup>_′_</sup> _e_ <sup>2</sup> <sup>_πi_</sup> <sup>k</sup> <sup>_·_</sup> <sup>r</sup> <sup>_′_</sup> _ψ_ 0 <sup>_∗_</sup> <sup>(</sup> <sup>r</sup> <sup>_−_</sup> <sup>R</sup> <sup>)</sup> <sup>_T ∗_</sup> <sup>(</sup> <sup>r</sup> <sup>_′_</sup> <sup>)</sup> = <sup><u>1</u></sup> 2 _πi_ - _d_ r _|ψ_ 0( r _−_ R ) _|_ <sup>2</sup> _∇T_ ( r ) _T_ <sup>_∗_</sup> ( r ) + _∇_ r _ψ_ 0( r _−_ R ) _ψ_ 0 <sup>_∗_</sup> <sup>(</sup> <sup>r</sup> <sup>_−_</sup> <sup>R</sup> <sup>)</sup> <sup>_|T_</sup> <sup>(</sup> <sup>r</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup> (I2) We now take the phase object approximation and write the transmission function as _T_ ( r ) = _e_ <sup>_iσV_</sup> <sup>(</sup> <sup>R</sup> <sup>)</sup> . The second half of the sum in Eq. I2 then becomes <u>1</u> 2 _πi_ _d_ r _∇_ r _ψ_ 0( r _−_ R ) _ψ_ 0 <sup>_∗_</sup> <sup>(</sup> <sup>r</sup> <sup>_−_</sup> <sup>R</sup> <sup>)</sup> = <sup>ℏ</sup> 2 _π_ _d_ r _ψ_ 0 <sup>_∗_</sup> <sup>(</sup> <sup>r</sup> <sup>_−_</sup> <sup>R</sup> <sup>)</sup> <sup>p</sup> <sup>�</sup> <sup>_ψ_</sup> <sup>0(</sup> <sup>r</sup> <sup>_−_</sup> <sup>R</sup> <sup>)</sup> = <sup>ℏ</sup> 2 _π_ <sup>_⟨_</sup> <sup>p</sup> <sup>_⟩_</sup> where _⟨_ p _⟩_ is the expectation value of the probe momentum, and we’ve made use of the fact that the momentum operator is p - = _i_ <u>1ℏ</u> <sup>_∇_</sup> <sup>.</sup> <sup>But</sup> <sup>_⟨_</sup> <sup>p</sup> <sup>_⟩_</sup> <sup>is independent</sup> of R and thus provides some constant offset to I ( R ), and can be neglected. Continuing from Eq. I2 and again using the phase object approximation, we find I ( R ) = <sup><u>1</u></sup> 2 _πi_ - _d_ r _|ψ_ 0( r _−_ R ) _|_ <sup>2</sup> ( _iσ∇V_ ( r )) = _−_ <sup>_<u>σ</u>_</sup> 2 _π_ = _−_ <sup>_<u>σ</u>_</sup> _d_ rE ( r ) _|ψ_ 0( r _−_ R ) _|_ <sup>2</sup> = _−_ 2 <sup>_<u>σ</u>_</sup> _π_ <sup>E</sup> <sup>(</sup> <sup>R</sup> <sup>)</sup> <sup>_∗|ψ_</sup> <sup>0(</sup> <sup>R</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup> (I3) where _∗_ denotes a convolution, and we’ve made use of the fact that E = _−∇V_ . To solve for _V_ given _I_ requires that we integrate Eq (I3), and we follow [24, 82, 83] and write _/σ ._ (I4) <mark>(a)</mark> <mark>(b)</mark> <mark>(c)</mark> <mark>(d)</mark> <mark>(e)</mark> <mark>(f)</mark> FIG. 18. (a) A test image, a holographic reconstruction of a biological cell in saline from Ref. [104], along with the numerical derivatives of a cropped region (white dashed line) of the image in (b) and (c). A DPC reconstruction from (b) and (c) produces (d), which has artifacts, most noticeably that indicated with a red arrow, result form the boundary conditions implicitly assumed by the use of fast Fourier transforms. (e) The approach implemented by py4DSTEM, discussed in the body text, is to reconstruct on a padded grid [the original grid of (b) and (c) is indicated by the dashed outline]. The result of 10 iterations is shown in (f) which does not exhibit the same artefacts as (d). reconstruction of a biological cell in saline from Ref. [104], shown in Fig. 18(a). The _x_ and _y_ numerical derivatives of a cropped region (indicated by a white dashed outline) of Fig. 18(a) are shown in Fig. 18(b) and (c) respectively and the result of the solution proposed in Eq. (I4) is shown in Fig. 18(d). An artefact of the implicit periodic boundary conditions can be seen in part of the white cell on the right-hand side of the frame appearing on the opposite left-hand side as indicated by a red arrow in Fig. 18(d). The approach pursued in py4DSTEM to remedy this is to solve Eq. (I4) on a larger grid, one that has been “padded” with zeros as shown in Fig. 18(e). The original grid corresponding to the input derivatives in Fig. 18 is indicated by a white dashed outline in Fig. 18. The gradient of the solution in Fig. 18(e) is taken and the result subtracted from the input derivatives Fig. 18(b) and (c). The result of this subtraction (the residual) forms the input for another solution of Eq. (I4) on a padded grid which is added to the phase solution as a correction. This processes is iterated upon until convergence, the result of just 10 iterations is shown in Fig. 18(f), a more faithful reproduction of Fig. 18(a) than Fig. 18(d). J. Ptychography In this appendix we summarize the mathematics of the ptychographic reconstruction method implemented _V_ ( R ) = _−F_ k <sup>_−_</sup> _→_ <sup>1</sup> r - <u>k</u> _<u>· F</u>_ <u>k</u> _<u>→</u>_ <u>r</u> _<u>{</u>_ <u>I</u> <u>(</u> <u>R</u> <u>)</u> _<u>}</u>_ _ik_ <sup>2</sup> Technically a quantitative measurement of _V_ ( R ) also requires deconvolution of the probe wave function [105], a step which we ignore in py4DSTEM due to the fact that this serves to amplify noise in most experimental datasets. An additional challenge is the implicit assumption of periodic boundary conditions in the use of fast Fourier transforms to solve Eq. (I4). This is demonstrated in Fig. 18 for reconstruction of a test image, a holographic in Fig. 15. Beginning from the transmission function approximation, the measured intensity _I_ at a spatial frequency k and a probe position R is given by where _∧_ is the logical and operation and the maximum disk size is _k_ 0 = _<u>αλ</u>_ <sup>for</sup> <sup>convergence</sup> <sup>semi-angle</sup> <sup>_α_</sup> <sup>and</sup> electron wavelength _λ_ . Here, the first line requires that k is inside the central disk, the second line requires that k is inside the disk shifted by _−_ K, and the third line requires that _k_ is also _outside_ the disk shifted by K . Thus _K_ selects a region of double overlap while also excluding the region of triple overlap. If only data from k _∈K_ is used, the third term in Eq. J2 vanishes, so that _ψ_ 0( r _−_ R ) _T_ ( r ) _e_ <sup>2</sup> <sup>_πi_</sup> <sup>r</sup> <sup>_·_</sup> <sup>k</sup> _d_ r ���� 2 _._ (J1) _I_ ( k _,_ R ) = ���� The goal is to retrieve _T_ from _I_ . We first consider the transformed datacube _I_ ( k _,_ K ) = _F_ R _→_ K _I_ ( k _,_ R ), where K is the reciprocal coordinate to scan position R . Thus this is the datacube has been written in terms of scan frequencies. Assuming the sample is a weak phase object, this may be written as [106] _I_ ( k _,_ K ) = _|_ Ψ0( k ) _|_ <sup>2</sup> _δ_ ( k ) + Ψ0( k )Ψ <sup>_∗_</sup> 0 <sup>(</sup> <sup>k</sup> <sup>+</sup> <sup>K</sup> <sup>)</sup> <sup>_T_</sup> <sup>(</sup> <sup>_−_</sup> <sup>k</sup> <sup>)</sup> <sup>_∗_</sup> _−_ Ψ <sup>_∗_</sup> 0 <sup>(</sup> <sup>k</sup> <sup>)Ψ0(</sup> <sup>k</sup> <sup>_−_</sup> <sup>K</sup> <sup>)</sup> <sup>_T_</sup> <sup>(</sup> <sup>k</sup> <sup>)</sup> (J2) where _T_ ( k ) = _F_ r _→_ k _T_ ( r ). The latter two terms in this expression each contain two copies of the aperture function, one centered at the optic axis and one shifted by the scan frequency K . For some given K, these terms can each be nonzero only at values of k where both disks are nonzero; that is, in the overlap between the shifted and unshifted disks. By looking only at the nonzero overlap between two disks, it is possible to simplify and solve Eq. J2 by eliminating one of its terms. To eliminate the third term, define the set of pixels _K_ = _{_ k : ( _|_ k _| < k_ 0) _∧_ ( _|_ k + K _| < k_ 0) _∧_ ( _|_ k _−_ K _| > k_ 0) _}_ [1] Stephen J Pennycook, “A scan through the history of STEM,” in _Scanning_ _Transmission_ _Electron_ _Microscopy_ (Springer, 2011) pp. 1–90. [2] JM Cowley, “Scanning transmission electron microscopy of thin specimens,” Ultramicroscopy 2, 3–16 (1976). [3] ZL Wang and JM Cowley, “Simulating high-angle annular dark-field stem images including inelastic thermal diffuse scattering,” Ultramicroscopy 31, 437– 453 (1989). [4] Steven R Spurgeon, “Scanning transmission electron microscopy of oxide interfaces and heterostructures,” arXiv preprint arXiv:2001.00947 (2020). [5] Nestor J Zaluzec, “Quantitative measurements of magnetic vortices using position resolved diffraction in Lorentz STEM,” Microscopy and Microanalysis 8, 376– 377 (2002). [6] J-J Fundenberger, A Morawiec, Emmanuel Bouzy, and Jean-S´ebastien Lecomte, “Polycrystal orientation maps from TEM,” Ultramicroscopy 96, 127–137 (2003). [7] M Watanabe and D Williams, “Development of diffraction imaging for orientation analysis of grains in scanning transmission electron microscopy,” Microscopy where Γ is the disk-overlap function Γ( k _,_ K ) = Ψ0( k )Ψ <sup>_∗_</sup> 0 <sup>(</sup> <sup>k</sup> <sup>+</sup> <sup>K</sup> <sup>)</sup> <sup>_−_</sup> <sup>Ψ</sup> 0 <sup>_∗_</sup> <sup>(</sup> <sup>k</sup> <sup>)Ψ0(</sup> <sup>k</sup> <sup>_−_</sup> <sup>K</sup> <sup>)</sup> <sup>_._</sup> (J5) and Microanalysis 13, 962–963 (2007). [8] Andrew R Lupini, Miaofang Chi, Sergei V Kalinin, Albina Y Borisevich, Juan Carlos Idrobo, and Stephen Jesse, “Ptychographic imaging in an aberration corrected stem,” Microscopy and Microanalysis 21, 1219–1220 (2015). [9] Mark W Tate, Prafull Purohit, Darol Chamberlain, Kayla X Nguyen, Robert Hovden, Celesta S Chang, Pratiti Deb, Emrah Turgut, John T Heron, Darrell G Schlom, Daniel C Ralph, Gregory D Fuchs, Katherine S Shanks, Hugh T Philipp, David A Muller, and Sol M Gruner, “High dynamic range pixel array detector for scanning transmission electron microscopy,” Microscopy and Microanalysis 22, 237–249 (2016). [10] Colin Ophus, “Four-dimensional scanning transmission electron microscopy (4d-stem): From scanning nanodiffraction to ptychography and beyond,” Microscopy and Microanalysis 25, 563–582 (2019). [11] Bernhard Schaffer, Christian Gspan, Werner Grogger, Gerald Kothleitner, and Ferdinand Hofer, “Hyperspectral imaging in TEM: New ways of information extraction and display,” Microscopy and _<u>I</u>_ <u>(</u> <u>k</u> _<u>,</u>_ <u>K</u> <u>)</u> (J3) Ψ0( k )Ψ <sup>_∗_</sup> 0 <sup>(</sup> <sup>k</sup> <sup>+</sup> <sup>K</sup> <sup>)</sup> <sup>_,_</sup> _T_ ( _−_ k ) <sup>_∗_</sup> = k _∈K_ and _T_ ( r ) can be obtained with a subsequent inverse Fourier transform. Since this uses only data from a single double-overlap region, this method has been dubbed single-sideband reconstruction. This approach can be extended to include data from the whole bright-field in the reconstructions. If the sample is a weak phase object, it obeys Friedel symmetry, so that _T_ ( k ) = _T_ ( _−_ k ) <sup>_∗_</sup> [106]. Inserting this into Eq. J2 and solving gives [91] _T_ ( k ) = _I_ ( k _,_ K ) _·_ _|_ <sup><u>Γ</u></sup> Γ( <sup>_∗_</sup> k <sup><u>(</u></sup> <sup><u>k</u></sup> _,_ K <sup>_<u>,</u>_</sup> <sup><u>K</u></sup> ) _|_ <sup><u>)2</u></sup> <sup>_,_</sup> (J4) k : _|_ k _|<k_ 0 Microanalysis 14, 70–71 (2008). [12] Jing Tao, Dario Niebieskikwiat, M Varela, Weidong Luo, MA Schofield, Y Zhu, Myron B Salamon, JianMin Zuo, Sokrates T Pantelides, and Stephen J Pennycook, “Direct imaging of nanoscale phase separation in La0 _._ 55Ca 0 _._ 45 <sup>MnO</sup> 3 <sup>:</sup> relationship to colossal magnetoresistance,” Physical Review Letters 103, 097202 (2009). [13] Christoph Gammer, V Burak Ozdol, Christian H Liebscher, and Andrew M Minor, “Diffraction contrast imaging using virtual apertures,” Ultramicroscopy 155, 1–10 (2015). [14] Huigang Zhang, Hailong Ning, John Busbee, Zihan Shen, Chadd Kiggins, Yuyan Hua, Janna Eaves, Jerome Davis, Tan Shi, Yu-Tsun Shao, _et_ _al._, “Electroplating lithium transition metal oxides,” Science Advances 3, e1602427 (2017). [15] Jordan A Hachtel, Juan Carlos Idrobo, and Miaofang Chi, “Sub-˚angstrom electric field measurements on a universal detector in a scanning transmission electron microscope,” Advanced Structural and Chemical Imaging 4, 10 (2018). [16] Robert A Schwarzer and J Sukkau, “Automated crystal orientation mapping (ACOM) with a computercontrolled TEM by interpreting transmission Kikuchi patterns,” Materials Science Forum 273, 215–222 (1998). [17] Koji Usuda, Toshinori Numata, Toshifumi Irisawa, Norio Hirashita, and Shinichi Takagi, “Strain characterization in SOI and strained-Si on SGOI MOSFET channel using nano-beam electron diffraction (NBD),” Materials Science and Engineering: B 124, 143–147 (2005). [18] A B´ech´e, JL Rouviere, L Cl´ement, and JM Hartmann, “Improved precision in strain measurement using nanobeam electron diffraction,” Applied Physics Letters 95, 123114 (2009). [19] Thomas A Caswell, Peter Ercius, Mark W Tate, Alper Ercan, Sol M Gruner, and David A Muller, “A high-speed area detector for novel imaging techniques in a scanning transmission electron microscope,” Ultramicroscopy 109, 304–311 (2009). [20] Christoph T Koch, V Burak ¨Ozd¨ol, and Kazuo Ishizuka, “Quantitative four-dimensional electron diffraction in the TEM,” Microscopy and Analysis, 5 (2012). [21] A Kobler, A Kashiwar, H Hahn, and C K¨ubel, “Combination of in situ straining and ACOM TEM: A novel method for analysis of plastic deformation of nanocrystalline metals,” Ultramicroscopy 128, 68–81 (2013). [22] Thomas C Pekin, Christoph Gammer, Jim Ciston, Andrew M Minor, and Colin Ophus, “Optimizing disk registration algorithms for nanobeam electron diffraction strain mapping,” Ultramicroscopy 176, 170– 176 (2017). [23] Jingwei Hou, Christopher W Ashling, Sean M Collins, Andraˇz Krajnc, Chao Zhou, Louis Longley, Duncan N Johnstone, Philip A Chater, Shichun Li, Marie-Vanessa Coulet, _et_ _al._, “Metal-organic framework crystal-glass composites,” Nature communications 10, 1–10 (2019). [24] Ivan Lazi´c, Eric GT Bosch, and Sorin Lazar, “Phase contrast STEM for thin samples: Integrated differential phase contrast,” Ultramicroscopy 160, 265–280 (2016). [25] Z Chen, M Weyland, P Ercius, J Ciston, C Zheng, MS Fuhrer, AJ D’Alfonso, LJ Allen, and SD Findlay, “Practical aspects of diffractive imaging using an atomic-scale coherent electron probe,” Ultramicroscopy 169, 107–121 (2016). [26] Knut M¨uller-Caspary, Martial Duchamp, Malte R¨osner, Vadim Migunov, Florian Winkler, Hao Yang, Martin Huth, Robert Ritz, Martin Simson, Sebastian Ihle, _et_ _al._, “Atomic-scale quantification of charge densities in two-dimensional materials,” Physical Review B 98, 121408 (2018). [27] Francisco de la Pea, Eric Prestat, Vidar Tonaas Fauske, Pierre Burdet, Petras Jokubauskas, Magnus Nord, Tomas Ostasevicius, Katherine E. MacArthur, Mike Sarahan, Duncan N. Johnstone, Joshua Taillon, Jonas Lhnemann, Vadim Migunov, Alberto Eljarrat, Jan Caron, Thomas Aarholt, Stefano Mazzucco, Michael Walls, Tom Slater, Florian Winkler, pquinn dls, Ben Martineau, Gal Donval, Robert McLeod, Eric R. Hoglund, Ivo Alxneit, Daniel Lundeby, Trond Henninen, Luiz Fernando Zagonel, and Andreas Garmannslund, “hyperspy/hyperspy: Hyperspy v1.5.2 (version v1.5.2).” Zenobo http://doi.org/10.5281/zenodo.3396791 (2019). [28] Magnus Nord, Robert WH Webster, Kirsty A Paton, Stephen McVitie, Damien McGrouther, Ian MacLaren, and Gary W Paterson, “Fast pixelated detectors in scanning transmission electron microscopy. part i: Data acquisition, live processing and storage,” arXiv preprint arXiv:1911.11560 (2019). [29] Duncan N. Johnstone, Phillip Crout, Joonatan Laulainen, Simon Hgs, Ben Martineau, Tina Bergh, Stef Smeets, Sean Collins, Jdrzej Morzy, Hkon nes, Eric Prestat, Tiarnan Doherty, Tomas Ostasevicius, Mohsen Danaie, and Rob Tovey, “pyxem/pyxem: pyxem 0.7. 1,” Zenodo 10.5281/zenodo.3533653 (2019). [30] Alexander Clausen, Dieter Weber, Karina Ruzaeva, Vadim Migunov, Jan Caron, Rahul Chandra, Magnus Nord, Colin Lawrence Livermore National Lab Ophus, Simon Peter, Jay Schyndel van, Jaeweon Shin, Knut Mller-Caspary, and Rafal Dunin-Borkowski, “Libertem/libertem: 0.3.0,” (2020). [31] Steven E; Barnard Edward; DaCosta Luis R; Brown Hamish Galloway; Henderson Matt; Ginsburg David Savitzky, Benjamin H; Zeltmann, “py4dstem/py4dstem: Doi release,” [Zenobo](http://dx.doi.org/10.5281/zenodo.3333960) [http://doi.org/10.5281/zenodo.3333960](http://dx.doi.org/10.5281/zenodo.3333960) (2020), [10.5281/zenodo.3333960.](http://dx.doi.org/10.5281/zenodo.3333960) [32] C Barry Carter and David B Williams, _Transmission_ _electron_ _microscopy:_ _Diffraction,_ _imaging,_ _and_ _spectrometry_ (Springer, 2016). [33] Takeshi Egami and Simon JL Billinge, _Underneath_ _the_ _Bragg_ _peaks:_ _structural_ _analysis_ _of_ _complex_ _materials_ (Elsevier, 2003). [34] Earl J Kirkland, _Advanced_ _computing_ _in_ _electron_ _microscopy_ (Springer Science & Business Media, 2010). [35] Reiner Hegerl and W Hoppe, “Dynamische theorie der kristallstrukturanalyse durch elektronenbeugung im inhomogenen prim¨arstrahlwellenfeld,” Berichte der Bunsengesellschaft f¨ur physikalische Chemie 74, 1148– 1154 (1970). [36] JM Rodenburg, “Measurement of higher-order correlation functions in amorphous materials via coherent microdiffraction,” Electron Microscopy and Analysis 1999: Proceedings of the Institute of Physics Electron Microscopy and Analysis Group Conference, University of Sheffield, 24-27 August 1999 161, 145 (1999). [37] Xiaoke Mu, Di Wang, Tao Feng, and Christian K¨ubel, “Radial distribution function imaging by stem diffraction: Phase mapping and analysis of heterogeneous nanostructured glasses,” Ultramicroscopy 168, 1–6 (2016). [38] The HDF Group, “Hierarchical Data Format, version 5,” (1997-NNNN), http://www.hdfgroup.org/HDF5/. [39] Steven E Zeltmann, Alexander M¨uller, Karen C Bustillo, Benjamin Savitzky, Lauren Hughes, Andrew M Minor, and Colin Ophus, “Patterned probes for high precision 4d-stem bragg measurements,” Ultramicroscopy, 112890 (2019). [40] MJ Williamson, P van Dooren, and J Flanagan, “Quantitative analysis of the accuracy and sensitivity of strain measurements from nanobeam electron diffraction,” IEEE 22nd International Symposium on the Physical and Failure Analysis of Integrated Circuits (IPFA), 197–200 (2015). [41] Tim Grieb, Florian F Krause, Christoph Mahr, Dennis Zillmann, Knut M¨uller-Caspary, Marco Schowalter, and Andreas Rosenauer, “Optimization of NBED simulations for disc-detection measurements,” Ultramicroscopy 181, 50–60 (2017). [42] Tim Grieb, Florian F Krause, Marco Schowalter, Dennis Zillmann, Roman Sellin, Knut M¨uller-Caspary, Christoph Mahr, Thorsten Mehrtens, Dieter Bimberg, and Andreas Rosenauer, “Strain analysis from nanobeam electron diffraction: Influence of specimen tilt and beam convergence,” Ultramicroscopy 190, 45–57 (2018). [43] Christoph Mahr, Knut M¨uller-Caspary, Robert Ritz, Martin Simson, Tim Grieb, Marco Schowalter, Florian F Krause, Anastasia Lackmann, Heike Soltau, Arne Wittstock, _et_ _al._, “Influence of distortions of recorded diffraction patterns on strain analysis by nanobeam electron diffraction,” Ultramicroscopy 196, 74–82 (2019). [44] Elliot Padgett, Megan E Holtz, Paul Cueva, Eric Langenberg, Darrell G Schlom, and David A Muller, “The exit-wave power-cepstrum transform for scanning nanobeam electron diffraction. part 1: Robust strain mapping at subnanometer resolution and subpicometer precision,” arXiv preprint arXiv:1911.00984 (2019). [45] Manuel Guizar-Sicairos, Samuel T. Thurman, and James R. Fienup, “Efficient subpixel image registration algorithms,” Opt. Lett. 33, [156–158](http://dx.doi.org/ 10.1364/OL.33.000156) (2008). [46] R. Soummer, L. Pueyo, A. Sivaramakrishnan, and R. J. Vanderbei, “Fast computation of Lyot-style coronagraph propagation,” Opt. [Express](http://dx.doi.org/ 10.1364/OE.15.015935) 15, 15935– [15951](http://dx.doi.org/ 10.1364/OE.15.015935) (2007). [47] Colin Ophus and Benjamin H Savitzky, “Simulated calibration dataset for 4d scanning transmission electron microscopy,” Zenodo 10.5281/zenodo.3592520 (2020). [48] AJ Craven and TW Buggy, “Design considerations and performance of an analytical stem,” Ultramicroscopy 7, 27–37 (1981). [49] Xiahan Sang and James M LeBeau, “Revolving scanning transmission electron microscopy: Correcting sample drift distortion without prior knowledge,” Ultramicroscopy 138, 28–35 (2014). [50] Colin Ophus, Jim Ciston, and Chris T Nelson, “Correcting nonlinear drift distortion of scanning probe and scanning transmission electron microscopies from image pairs with orthogonal scan directions,” Ultramicroscopy 162, 1–9 (2016). [51] Benjamin H Savitzky, Ismail El Baggari, Colin B Clement, Emily Waite, Berit H Goodge, David J Baek, John P Sheckelton, Christopher Pasco, Hari Nair, Nathaniel J Schreiber, _et_ _al._, “Image registration of low signal-to-noise cryo-stem data,” Ultramicroscopy 191, 56–65 (2018). [52] Yi Wang, Y Eren Suyolcu, Ute Salzberger, Kersten Hahn, Vesna Srot, Wilfried Sigle, and Peter A van Aken, “Correcting the linear and nonlinear distortions for atomically resolved STEM spectrum and diffraction imaging,” Microscopy 67, i114–i122 (2018). [53] Alpesh Khushalchand Shukla, Quentin M Ramasse, Colin Ophus, Despoina Maria Kepaptsoglou, Fredrik S Hage, Christoph Gammer, Charles Bowling, Pedro Alejandro Hern´andez Gallegos, and Subramanian Venkatachalam, “Effect of composition on the structure of lithium-and manganese-rich transition metal oxides,” Energy & Environmental Science 11, 830–840 (2018). [54] G Brunetti, D Robert, P Bayle-Guillemaud, JL Rouviere, EF Rauch, JF Martin, JF Colin, F Bertin, and C Cayron, “Confirmation of the dominocascade model by LiFePO4/FePO4 precession electron diffraction,” Chemistry of Materials 23, 4515–4524 (2011). [55] Marcus Gallagher-Jones, Colin Ophus, Karen C Bustillo, David R Boyer, Ouliana Panova, Calina Glynn, Chih-Te Zee, Jim Ciston, Kevin Canton Mancia, Andrew M Minor, _et_ _al._, “Nanoscale mosaicity revealed in peptide microcrystals by scanning electron nanodiffraction,” Communications biology 2, 1–8 (2019). [56] C Bradford Barber, David P Dobkin, and Hannu Huhdanpaa, “The quickhull algorithm for convex hulls,” ACM Transactions on Mathematical Software (TOMS) 22, 469–483 (1996). [57] Nestor J Zaluzec, “Computationally mediated experimental science,” Microscopy and Microanalysis 9, 150–151 (2003). [58] J Fatermans, AJ den Dekker, K M¨uller-Caspary, I Lobato, CM OLeary, PD Nellist, and S Van Aert, “Single atom detection from low contrast-to-noise ratio electron microscopy images,” Physical Review Letters 121, 056101 (2018). [59] Edgar F Rauch, Joaquin Portillo, Stavros Nicolopoulos, Daniel Bultreys, Sergei Rouvimov, and Peter Moeck, “Automated nanocrystal orientation and phase mapping in the transmission electron microscope on the basis of precession electron diffraction,” Zeitschrift f¨ur Kristallographie International journal for Structural, physical, and Chemical Aspects of Crystalline Materials 225, 103–109 (2010). [60] Koji Usuda, Tomohisa Mizuno, Tsutomu Tezuka, Naoharu Sugiyama, Yoshihiko Moriyama, Shu Nakaharai, and Shinichi Takagi, “Strain relaxation of strained-Si layers on SiGe-on-insulator (SGOI) structures after mesa isolation,” Applied Surface Science 224, 113–116 (2004). [61] JP Liu, K Li, SM Pandey, FL Benistant, A See, MS Zhou, LC Hsia, Ruud Schampers, and Dmitri O Klenov, “Strain relaxation in transistor channels with embedded epitaxial silicon germanium source/drain,” Applied Physics Letters 93, 221912 (2008). [62] E Sourty, J Stanley, and B Freitag, “Using stem with quasi-parallel illumination and an automated peakfinding routine for strain analysis at the nanometre scale,” Physical and Failure Analysis of Integrated Circuits, 2009. IPFA 2009. 16th IEEE International Symposium on the, 479–484 (2009). [63] Paola Favia, Mihaela Popovici, Geert Eneman, Gang Wang, Mireia Bargallo-Gonzalez, Eddy Simoen, Nicolas Menou, and Hugo Bender, “Nano-beam diffraction: crystal structure and strain analysis at the nanoscale,” ECS Transactions 33, 205–219 (2010). [64] Fumihiko Uesugi, Akira Hokazono, and Shiro Takeno, “Evaluation of two-dimensional strain distribution by STEM/NBD,” Ultramicroscopy 111, 995–998 (2011). [65] C Ebner, R Sarkar, J Rajagopalan, and C Rentenberger, “Local, atomic-level elastic strain measurements of metallic glass thin films by electron diffraction,” Ultramicroscopy 165, 51–58 (2016). [66] Christoph Gammer, Colin Ophus, Thomas C Pekin, J¨urgen Eckert, and Andrew M Minor, “Local nanoscale strain mapping of a metallic glass during in situ testing,” Applied Physics Letters 112, 171905 (2018). [67] D Srolovitz, Takeshi Egami, and Vaclav Vitek, “Radial distribution function and structural relaxation in amorphous solids,” Physical Review B 24, 6936 (1981). [68] David RG Mitchell and TC Petersen, “Rdftools: A software tool for quantifying short-range ordering in amorphous materials,” Microscopy research and technique 75, 153–163 (2012). [69] Jr C Phillips, “Topology of covalent non-crystalline solids I: Short-range order in chalcogenide alloys,” Journal of Non-Crystalline Solids 34, 153–181 (1979). [70] MMJ Treacy and JM Gibson, “Variable coherence microscopy: A rich source of structural information from disordered materials,” Acta Crystallographica Section A 52, 212–220 (1996). [71] JM Gibson, MMJ Treacy, and PM Voyles, “Atom pair persistence in disordered materials from fluctuation microscopy,” Ultramicroscopy 83, 169–178 (2000). [72] PM Voyles and DA Muller, “Fluctuation microscopy in the STEM,” Ultramicroscopy 93, 147–159 (2002). [73] Stephanie N Bogle, Lakshmi N Nittala, Ray D Twesten, Paul M Voyles, and John R Abelson, “Size analysis of nanoscale order in amorphous materials by variable-resolution fluctuation electron microscopy,” Ultramicroscopy 110, 1273–1278 (2010). [74] H Yang, RN Rutte, L Jones, M Simson, R Sagawa, H Ryll, M Huth, TJ Pennycook, MLH Green, H Soltau, _et_ _al._, “Simultaneous atomic-resolution electron ptychography and Z-contrast imaging of light and heavy elements in complex nanostructures,” Nature Communications 7, 12532 (2016). [75] Naoya Shibata, Scott D Findlay, Hirokazu Sasaki, Takao Matsumoto, Hidetaka Sawada, Yuji Kohno, Shinya Otomo, Ryuichiro Minato, and Yuichi Ikuhara, “Imaging of built-in electric field at a pn junction by scanning transmission electron microscopy,” Scientific reports 5, 10040 (2015). [76] Takao Matsumoto, Yeong-Gi So, Yuji Kohno, Hidetaka Sawada, Yuichi Ikuhara, and Naoya Shibata, “Direct observation of _σ_ 7 domain boundary core structure in magnetic skyrmion lattice,” Science advances 2, e1501280 (2016). [77] J N Chapman, P E Batson, E M Waddell, and R P Ferrier, “The direct determination of magnetic domain wall profiles by differential phase contrast electron microscopy,” Ultramicroscopy 3, 203–214 (1978). [78] Jiamei Song, Christopher S Allen, Si Gao, Chen Huang, Hidetaka Sawada, Xiaoqing Pan, Jamie Warner, Peng Wang, and Angus I Kirkland, “Atomic resolution defocused electron ptychography at low dose with a fast, direct electron detector,” Scientific reports 9, 3919 (2019). [79] NH Dekkers and H De Lang, “Differential phase contrast in a STEM,” Optik 41, 452–456 (1974). [80] Naoya Shibata, Scott D Findlay, Yuji Kohno, Hidetaka Sawada, Yukihito Kondo, and Yuichi Ikuhara, “Differential phase-contrast microscopy at atomic resolution,” Nature Physics 8, 611 (2012). [81] Matus Krajnak, Damien McGrouther, Dzmitry Maneuski, Val O’Shea, and Stephen McVitie, “Pixelated detectors and improved efficiency for magnetic imaging in STEM differential phase contrast,” Ultramicroscopy 165, 42–50 (2016). [82] Matthew R Arnison, Kieran G Larkin, Colin JR Sheppard, Nicholas I Smith, and Carol J Cogswell, “Linear phase imaging using differential interference contrast microscopy,” Journal of microscopy 214, 7–12 (2004). [83] Ryan Close, Zhen Chen, Naoya Shibata, and SD Findlay, “Towards quantitative, atomicresolution reconstruction of the electrostatic potential via differential phase contrast using electrons,” Ultramicroscopy 159, 124–137 (2015). [84] Walter Hoppe, “Beugung im inhomogenen prim¨arstrahlwellenfeld. i. prinzip einer phasenmessung von elektronenbeungungsinterferenzen,” Acta Crystallographica Section A: Crystal Physics, Diffraction, Theoretical and General Crystallography 25, 495–501 (1969). [85] W Hoppe and G Strube, “Beugung in inhomogenen prim¨arstrahlenwellenfeld. ii. lichtoptische analogieversuche zur phasenmessung von gitterinterferenzen,” Acta Crystallographica Section A: Crystal Physics, Diffraction, Theoretical and General Crystallography 25, 502–507 (1969). [86] W Hoppe, “Beugung im inhomogenen prim¨arstrahlwellenfeld. iii. amplituden-und phasenbestimmung bei unperiodischen objekten,” Acta Crystallographica Section A: Crystal Physics, Diffraction, Theoretical and General Crystallography 25, 508–514 (1969). [87] JM Rodenburg and RHT Bates, “The theory of super resolution electron microscopy via Wigner-distribution deconvolution,” Phil. Trans. R. Soc. Lond. A 339, 521– 553 (1992). [88] Giulio Guzzinati, Wannes Ghielens, Christoph Mahr, Armand B´ech´e, Andreas Rosenauer, Toon Calders, and Jo Verbeeck, “Electron bessel beam diffraction for precise and accurate nanoscale strain mapping,” arXiv preprint arXiv:1902.06979 (2019). [89] Benjamin J McMorran, Amit Agrawal, Ian M Anderson, Andrew A Herzing, Henri J Lezec, Jabez J McClelland, and John Unguris, “Electron vortex beams with high quanta of orbital angular momentum,” science 331, 192–195 (2011). [90] Colin Ophus, Jim Ciston, Jordan Pierce, Tyler R Harvey, Jordan Chess, Benjamin J McMorran, Cory Czarnik, Harald H Rose, and Peter Ercius, “Efficient linear phase contrast in scanning transmission electron microscopy with matched illumination and detector interferometry,” Nature Communications 7 (2016). [91] Hao Yang, Peter Ercius, Peter D Nellist, and Colin Ophus, “Enhanced phase contrast transfer using ptychography combined with a pre-specimen phase plate in a scanning transmission electron microscope,” Ultramicroscopy 171, 117–125 (2016). [92] Jo Verbeeck, Armand B´ech´e, Knut M¨uller-Caspary, Giulio Guzzinati, Minh Anh Luong, and Martien Den Hertog, “Demonstration of a 2 _×_ 2 programmable phase plate for electrons,” Ultramicroscopy 190, 58–65 (2018). [93] AM Blackburn and JC Loudon, “Vortex beam production and contrast enhancement from a magnetic spiral phase plate,” Ultramicroscopy 136, 127–143 (2014). [94] Giulio Pozzi, Peng-Han Lu, Amir H Tavabi, Martial Duchamp, and Rafal E Dunin-Borkowski, “Generation of electron vortex beams using line charges via the electrostatic aharonov-bohm effect,” Ultramicroscopy 181, 191–196 (2017). [95] John M Cowley and A F Moodie, “The scattering of electrons by atoms and crystals. I. a new theoretical approach,” Acta Crystallographica 10, 609–619 (1957). [96] Colin Ophus, “A fast image simulation algorithm for scanning transmission electron microscopy,” Advanced Structural and Chemical Imaging 3, 13 (2017). [97] Alan Pryor, Colin Ophus, and Jianwei Miao, “A streaming multi-GPU implementation of image simulation algorithms for scanning transmission electron microscopy,” Advanced Structural and Chemical Imaging 3, 15 (2017). [98] Hamish G Brown, Jim Ciston, and Colin Ophus, “A linear-scaling algorithm for rapid computation of inelastic transitions in the presence of multiple electron scattering,” arXiv preprint arXiv:1908.07628 (2019). [99] Joachim Frank, “Averaging of low exposure electron micrographs of non-periodic objects,” Ultramicroscopy 1, 159–162 (1975). [100] Jan Modersitzki, _Numerical_ _methods_ _for_ _image_ _registration_ (Oxford University Press on Demand, 2004). [101] F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay, “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research 12, 2825–2830 (2011). [102] EM Waddell and JN Chapman, “Linear imaging of strong phase objects using asymmetrical detectors in stem,” Optik 54, 83–96 (1979). [103] Knut M¨uller-Caspary, Florian F Krause, Florian Winkler, Armand B´ech´e, Johan Verbeeck, Sandra Van Aert, and Andreas Rosenauer, “Comparison of first moment stem with conventional differential phase contrast and the dependence on electron dose,” Ultramicroscopy 203, 95–104 (2019). [104] Paul M¨uller, Mirjam Sch¨urmann, Salvatore Girardo, Gheorghe Cojoc, and Jochen Guck, “Accurate evaluation of size and refractive index for spherical objects in quantitative phase imaging,” Opt. [Express](http://dx.doi.org/10.1364/OE.26.010729) 26, [10729–10743](http://dx.doi.org/10.1364/OE.26.010729) (2018). [105] HG Brown, Naoya Shibata, Hirokazu Sasaki, T C Petersen, D M Paganin, M J Morgan, and S D Findlay, “Measuring nanometre-scale electric fields in scanning transmission electron microscopy using segmented detectors,” Ultramicroscopy 182, 169–178 (2017). [106] JM Rodenburg, BC McCallum, and PD Nellist, “Experimental tests on double-resolution coherent imaging via STEM,” Ultramicroscopy 48, 304–314 (1993).

섹션 본문

섹션 본문이 없습니다.

참고문헌 103건

  1. Medium-Range Order in Amorphous Silicon Measured by Fluctuation Electron Microscopy: Final Report, 23 June 1999--23 August 2002 2003 10.2172/15004839
  2. Imaging of built-in electric field at a p-n junction by scanning transmission electron microscopy Scientific Reports · Nature Portfolio · 2015 10.1038/srep10040
  3. Towards quantitative, atomic-resolution reconstruction of the electrostatic potential via differential phase contrast using electrons Ultramicroscopy · Elsevier BV · 2015 10.1016/j.ultramic.2015.09.002
  4. Quantitative analysis of the accuracy and sensitivity of strain measurements from nanobeam electron diffraction 2015 10.1109/ipfa.2015.7224366
  5. Phase contrast STEM for thin samples: Integrated differential phase contrast Ultramicroscopy · Elsevier BV · 2015 10.1016/j.ultramic.2015.10.011
  6. Quantitative Measurements of Magnetic Vortices using Position Resolved Diffraction in Lorentz Stem Microscopy and Microanalysis · Oxford University Press · 2002 10.1017/s143192760210064x
  7. Revolving scanning transmission electron microscopy: Correcting sample drift distortion without prior knowledge Ultramicroscopy · Elsevier BV · 2014 10.1016/j.ultramic.2013.12.004
  8. The direct determination of magnetic domain wall profiles by differential phase contrast electron microscopy Ultramicroscopy · Elsevier BV · 1978 10.1016/s0304-3991(78)80027-8
  9. Combination of in situ straining and ACOM TEM: A novel method for analysis of plastic deformation of nanocrystalline metals Ultramicroscopy · Elsevier BV · 2013 10.1016/j.ultramic.2012.12.019
  10. Beugung im inhomogenen Primärstrahlwellenfeld. I. Prinzip einer Phasenmessung von Elektronenbeungungsinterferenzen Acta Crystallographica Section A · International Union of Crystallography · 1969 10.1107/s0567739469001045
  11. Design considerations and performance of an analytical stem Ultramicroscopy · Elsevier BV · 1981 10.1016/0304-3991(81)90020-6
  12. Fluctuation microscopy in the STEM Ultramicroscopy · Elsevier BV · 2002 10.1016/s0304-3991(02)00155-9
  13. Differential phase-contrast microscopy at atomic resolution Nature Physics · Nature Portfolio · 2012 10.1038/nphys2337
  14. Experimental tests on double-resolution coherent imaging via STEM Ultramicroscopy · Elsevier BV · 1993 10.1016/0304-3991(93)90105-7
  15. Strain relaxation of strained-Si layers on SiGe-on-insulator (SGOI) structures after mesa isolation Applied Surface Science · Elsevier BV · 2004 10.1016/j.apsusc.2003.11.058
  16. High Resolution Radial Distribution Function of Pure Amorphous Silicon Physical Review Letters · American Physical Society · 1999 10.1103/physrevlett.82.3460
  17. Direct Imaging of Nanoscale Phase Separation in<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msub><mml:mi>La</mml:mi><mml:mn>0.55</mml:mn></mml:msub><mml:msub><mml:mi>Ca</mml:mi><mml:mn>0.45</mml:mn></mml:msub><mml:msub><mml:mi>MnO</mml:mi><mml:mn>3</mml:mn></mml:msub></mml:math>: Relationship to Colossal Magnetoresistance Physical Review Letters · American Physical Society · 2009 10.1103/physrevlett.103.097202
  18. Size analysis of nanoscale order in amorphous materials by variable-resolution fluctuation electron microscopy Ultramicroscopy · Elsevier BV · 2010 10.1016/j.ultramic.2010.05.001
  19. Electron Vortex Beams with High Quanta of Orbital Angular Momentum Science · American Association for the Advancement of Science · 2011 10.1126/science.1198804
  20. Beugung in inhomogenen Primärstrahlenwellenfeld. II. Lichtoptische Analogieversuche zur Phasenmessung von Gitterinterferenzen Acta Crystallographica Section A · International Union of Crystallography · 1969 10.1107/s0567739469001057
  21. Evaluation of two-dimensional strain distribution by STEM/NBD Ultramicroscopy · Elsevier BV · 2011 10.1016/j.ultramic.2011.01.035
  22. Fast computation of Lyot-style coronagraph propagation Optics Express · Optica Publishing Group · 2007 10.1364/oe.15.015935
  23. Beugung im inhomogenen Primärstrahlwellenfeld. III. Amplituden- und Phasenbestimmung bei unperiodischen Objekten Acta Crystallographica Section A · International Union of Crystallography · 1969 10.1107/s0567739469001069
  24. Strain relaxation in transistor channels with embedded epitaxial silicon germanium source/drain Applied Physics Letters · American Institute of Physics · 2008 10.1063/1.3040323
  25. Strain characterization in SOI and strained-Si on SGOI MOSFET channel using nano-beam electron diffraction (NBD) Materials Science and Engineering B · Elsevier BV · 2005 10.1016/j.mseb.2005.08.062
  26. Diffraction contrast imaging using virtual apertures Ultramicroscopy · Elsevier BV · 2015 10.1016/j.ultramic.2015.03.015
  27. Confirmation of the Domino-Cascade Model by LiFePO<sub>4</sub>/FePO<sub>4</sub> Precession Electron Diffraction Chemistry of Materials · American Chemical Society · 2011 10.1021/cm201783z
  28. A high-speed area detector for novel imaging techniques in a scanning transmission electron microscope Ultramicroscopy · Elsevier BV · 2008 10.1016/j.ultramic.2008.11.023
  29. Underneath the Bragg Peaks Materials Today · Elsevier BV · 2003 10.1016/s1369-7021(03)00635-7
  30. Realistic models of paracrystalline silicon Physical review. B, Condensed matter · American Physical Society · 2001 10.1103/physrevb.63.235207
  31. Improved precision in strain measurement using nanobeam electron diffraction Applied Physics Letters · American Institute of Physics · 2009 10.1063/1.3224886
  32. Variable Coherence Microscopy: a Rich Source of Structural Information from Disordered Materials Acta Crystallographica Section A Foundations of Crystallography · Wiley · 1996 10.1107/s0108767395012876
  33. Automated nanocrystal orientation and phase mapping in the transmission electron microscope on the basis of precession electron diffraction Zeitschrift für Kristallographie · De Gruyter · 2010 10.1524/zkri.2010.1205
  34. Vortex beam production and contrast enhancement from a magnetic spiral phase plate Ultramicroscopy · Elsevier BV · 2013 10.1016/j.ultramic.2013.08.009
  35. Radial distribution function and structural relaxation in amorphous solids Physical review. B, Condensed matter · American Physical Society · 1981 10.1103/physrevb.24.6936
  36. Averaging of low exposure electron micrographs of non-periodic objects Ultramicroscopy · Elsevier BV · 1975 10.1016/s0304-3991(75)80020-9
  37. The scattering of electrons by atoms and crystals. I. A new theoretical approach Acta Crystallographica · Wiley · 1957 10.1107/s0365110x57002194
  38. Efficient subpixel image registration algorithms Optics Letters · Optica Publishing Group · 2008 10.1364/ol.33.000156
  39. Hyperspectral Imaging in TEM: New Ways of Information Extraction and Display Microscopy and Microanalysis · Oxford University Press · 2008 10.1017/s1431927608081348
  40. Simulating high-angle annular dark-field stem images including inelastic thermal diffuse scattering Ultramicroscopy · Elsevier BV · 1989 10.1016/0304-3991(89)90340-9
  41. Polycrystal orientation maps from TEM Ultramicroscopy · Elsevier BV · 2003 10.1016/s0304-3991(02)00435-7
  42. Scanning transmission electron microscopy of thin specimens Ultramicroscopy · Elsevier BV · 1976 10.1016/s0304-3991(76)90161-3
  43. Atom pair persistence in disordered materials from fluctuation microscopy Ultramicroscopy · Elsevier BV · 2000 10.1016/s0304-3991(00)00013-9
  44. The theory of super-resolution electron microscopy via Wigner-distribution deconvolution Philosophical Transactions of the Royal Society of London Series A Physical and Engineering Sciences · Royal Society · 1992 10.1098/rsta.1992.0050
  45. Automated Crystal Orientation Mapping (ACOM) with a Computer-Controlled TEM by Interpreting Transmission Kikuchi Patterns Materials science forum · Trans Tech Publications · 1998 10.4028/www.scientific.net/msf.273-275.215
  46. RDFTools: A software tool for quantifying short‐range ordering in amorphous materials Microscopy Research and Technique · Wiley · 2011 10.1002/jemt.21038
  47. Development of Diffraction Imaging for Orientation Analysis of Grains in Scanning Transmission Electron Microscopy Microscopy and Microanalysis · Oxford University Press · 2007 10.1017/s1431927607075204
  48. Topology of covalent non-crystalline solids I: Short-range order in chalcogenide alloys Journal of Non-Crystalline Solids · Elsevier BV · 1979 10.1016/0022-3093(79)90033-4
  49. Using STEM with quasi-parallel illumination and an automated peak-finding routine for strain analysis at the nanometre scale 2009 10.1109/ipfa.2009.5232604
  50. A Scan Through the History of STEM Springer eBooks · Springer Nature · 2010 10.1007/978-1-4419-7200-2_1
  51. (Invited) Nano-Beam Diffraction: Crystal Structure and Strain Analysis at the Nanoscale ECS Transactions · Institute of Physics · 2010 10.1149/1.3485694
  52. Linear phase imaging using differential interference contrast microscopy Journal of Microscopy · Wiley · 2004 10.1111/j.0022-2720.2004.01293.x
  53. The quickhull algorithm for convex hulls ACM Transactions on Mathematical Software · Association for Computing Machinery · 1996 10.1145/235815.235821
  54. Dynamische Theorie der Kristallstrukturanalyse durch Elektronenbeugung im inhomogenen Primärstrahlwellenfeld Berichte der Bunsengesellschaft für physikalische Chemie · 1970 10.1002/bbpc.19700741112
  55. Influence of electron dose rate on electron counting images recorded with the K2 camera Journal of Structural Biology · Elsevier BV · 2013 10.1016/j.jsb.2013.08.005
  56. Correcting nonlinear drift distortion of scanning probe and scanning transmission electron microscopies from image pairs with orthogonal scan directions Ultramicroscopy · Elsevier BV · 2015 10.1016/j.ultramic.2015.12.002
  57. High Dynamic Range Pixel Array Detector for Scanning Transmission Electron Microscopy Microscopy and Microanalysis · Oxford University Press · 2016 10.1017/s1431927615015664
  58. Direct observation of Σ7 domain boundary core structure in magnetic skyrmion lattice Science Advances · American Association for the Advancement of Science · 2016 10.1126/sciadv.1501280
  59. Efficient linear phase contrast in scanning transmission electron microscopy with matched illumination and detector interferometry Nature Communications · Nature Portfolio · 2016 10.1038/ncomms10719
  60. Local, atomic-level elastic strain measurements of metallic glass thin films by electron diffraction Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.04.004
  61. Pixelated detectors and improved efficiency for magnetic imaging in STEM differential phase contrast Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.03.006
  62. Radial distribution function imaging by STEM diffraction: Phase mapping and analysis of heterogeneous nanostructured glasses Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.05.009
  63. Practical aspects of diffractive imaging using an atomic-scale coherent electron probe Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.06.009
  64. Simultaneous atomic-resolution electron ptychography and Z-contrast imaging of light and heavy elements in complex nanostructures Nature Communications · Nature Portfolio · 2016 10.1038/ncomms12532
  65. Enhanced phase contrast transfer using ptychography combined with a pre-specimen phase plate in a scanning transmission electron microscope Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.09.002
  66. Ptychographic Imaging in an Aberration Corrected STEM Microscopy and Microanalysis · Oxford University Press · 2015 10.1017/s1431927615006881
  67. Optimizing disk registration algorithms for nanobeam electron diffraction strain mapping Ultramicroscopy · Elsevier BV · 2017 10.1016/j.ultramic.2016.12.021
  68. A fast image simulation algorithm for scanning transmission electron microscopy Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0046-1
  69. Optimization of NBED simulations for disc-detection measurements Ultramicroscopy · Elsevier BV · 2017 10.1016/j.ultramic.2017.04.015
  70. Electroplating lithium transition metal oxides Science Advances · American Association for the Advancement of Science · 2017 10.1126/sciadv.1602427
  71. Generation of electron vortex beams using line charges via the electrostatic Aharonov-Bohm effect Ultramicroscopy · Elsevier BV · 2017 10.1016/j.ultramic.2017.06.001
  72. Measuring nanometre-scale electric fields in scanning transmission electron microscopy using segmented detectors Ultramicroscopy · Elsevier BV · 2017 10.1016/j.ultramic.2017.07.002
  73. A streaming multi-GPU implementation of image simulation algorithms for scanning transmission electron microscopy Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0048-z
  74. Effect of composition on the structure of lithium- and manganese-rich transition metal oxides Energy & Environmental Science · Royal Society of Chemistry · 2018 10.1039/c7ee02443f
  75. Accurate evaluation of size and refractive index for spherical objects in quantitative phase imaging Optics Express · Optica Publishing Group · 2018 10.1364/oe.26.010729
  76. Correcting the linear and nonlinear distortions for atomically resolved STEM spectrum and diffraction imaging Microscopy · Oxford University Press · 2018 10.1093/jmicro/dfy002
  77. Strain analysis from nano-beam electron diffraction: Influence of specimen tilt and beam convergence Ultramicroscopy · Elsevier BV · 2018 10.1016/j.ultramic.2018.03.013
  78. Local nanoscale strain mapping of a metallic glass during <i>in situ</i> testing Applied Physics Letters · American Institute of Physics · 2018 10.1063/1.5025686
  79. Single Atom Detection from Low Contrast-to-Noise Ratio Electron Microscopy Images Physical Review Letters · American Physical Society · 2018 10.1103/physrevlett.121.056101
  80. Sub-Ångstrom electric field measurements on a universal detector in a scanning transmission electron microscope Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2018 10.1186/s40679-018-0059-4
  81. Influence of distortions of recorded diffraction patterns on strain analysis by nano-beam electron diffraction Ultramicroscopy · Elsevier BV · 2018 10.1016/j.ultramic.2018.09.010
  82. Atomic-scale quantification of charge densities in two-dimensional materials Physical review. B./Physical review. B · American Physical Society · 2018 10.1103/physrevb.98.121408
  83. Comparison of first moment STEM with conventional differential phase contrast and the dependence on electron dose Ultramicroscopy · Elsevier BV · 2018 10.1016/j.ultramic.2018.12.018
  84. Nanoscale mosaicity revealed in peptide microcrystals by scanning electron nanodiffraction Communications Biology · Nature Portfolio · 2019 10.1038/s42003-018-0263-8
  85. Electron Bessel beam diffraction for precise and accurate nanoscale strain mapping Applied Physics Letters · American Institute of Physics · 2019 10.1063/1.5096245
  86. Atomic Resolution Defocused Electron Ptychography at Low Dose with a Fast, Direct Electron Detector Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-40413-z
  87. Computationally Mediated Experimental Science Microscopy and Microanalysis · Oxford University Press · 2003 10.1017/s1431927603440427
  88. Metal-organic framework crystal-glass composites Nature Communications · Nature Portfolio · 2019 10.1038/s41467-019-10470-z
  89. Four-Dimensional Scanning Transmission Electron Microscopy (4D-STEM): From Scanning Nanodiffraction to Ptychography and Beyond Microscopy and Microanalysis · Oxford University Press · 2019 10.1017/s1431927619000497
  90. Image registration of low signal-to-noise cryo-STEM data Ultramicroscopy · Elsevier BV · 2018 10.1016/j.ultramic.2018.04.008
  91. Demonstration of a 2 × 2 programmable phase plate for electrons Ultramicroscopy · Elsevier BV · 2018 10.1016/j.ultramic.2018.03.017
  92. USID and Pycroscopy – Open Source Frameworks for Storing and Analyzing Imaging and Spectroscopy Data Microscopy and Microanalysis · Oxford University Press · 2019 10.1017/s1431927619001831
  93. Linear-scaling algorithm for rapid computation of inelastic transitions in the presence of multiple electron scattering Physical Review Research · American Physical Society · 2019 10.1103/physrevresearch.1.033186
  94. Patterned probes for high precision 4D-STEM bragg measurements Ultramicroscopy · Elsevier BV · 2019 10.1016/j.ultramic.2019.112890
  95. pyxem/pyxem: pyxem 0.10.0 2019 10.5281/zenodo.3533653
  96. The exit-wave power-cepstrum transform for scanning nanobeam electron diffraction: robust strain mapping at subnanometer resolution and subpicometer precision Ultramicroscopy · Elsevier BV · 2020 10.1016/j.ultramic.2020.112994
  97. Fast Pixelated Detectors in Scanning Transmission Electron Microscopy. Part I: Data Acquisition, Live Processing, and Storage Microscopy and Microanalysis · Oxford University Press · 2020 10.1017/s1431927620001713
  98. The 4D Camera – An 87 kHz Frame-rate Detector for Counted 4D-STEM Experiments Microscopy and Microanalysis · Oxford University Press · 2020 10.1017/s1431927620019753
  99. LiberTEM/LiberTEM: 0.4.1 Zenodo (CERN European Organization for Nuclear Research) · European Organization for Nuclear Research · 2020 10.5281/zenodo.3674003
  100. Simulated calibration dataset for 4D scanning transmission electron microscopy Zenodo (CERN European Organization for Nuclear Research) · CERN European Organization for Nuclear Research · 2019 10.5281/zenodo.3592520
  101. Advanced Computing in Electron Microscopy 2010 10.1007/978-1-4419-6533-2
  102. Transmission Electron Microscopy Springer eBooks · Springer Nature · 2016 10.1007/978-3-319-26651-0
  103. hyperspy/hyperspy: HyperSpy v1.5.2 Zenodo (CERN European Organization for Nuclear Research) · European Organization for Nuclear Research · 2019 10.5281/zenodo.3396791