.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/standards/flat_ewalds_sphere_assumption.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_standards_flat_ewalds_sphere_assumption.py: Flat Ewald's Sphere Assumption ============================== In most cases, the Ewald's sphere is assumed to be flat for diffraction patterns when doing 4D STEM. This is almost always a good assumption. That being said there are a couple of common units used with 4D STEM (e.g. nm\ :sup:`-1`, mrad, pixel coordinates) and it is important to understand how these units relate to each other. These units are also related to the camera length, pixel size, and beam energy (wavelength) of the microscope. In reality the beam energy is really the only thing that you need to know. Let's look at an example of this using the `ZrNb Precipitate` dataset. .. GENERATED FROM PYTHON SOURCE LINES 13-20 .. code-block:: Python from pyxem.data import pdnip_glass g = pdnip_glass(allow_download=True) g.calibration.beam_energy = "200 kV" g.calibration.convergance_angle = "1 mrad" # set the convergence angle .. rst-class:: sphx-glr-script-out .. code-block:: none 0%| | 0.00/305M [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: flat_ewalds_sphere_assumption.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: flat_ewalds_sphere_assumption.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_