BaseSMatrix#

class abtem.prism.s_matrix.BaseSMatrix[source]#

Bases: abtem.waves.BaseWaves

Base class for scattering matrices.

__init__()#

Methods

__init__()

dummy_probes([scan, ctf, plane])

A probe or an ensemble of probes equivalent reducing the SMatrix at a single position.

match_grid(other[, check_match])

Match the grid to another object with a Grid.

Attributes

accelerator

Accelerator object describing the acceleration energy.

angular_sampling

Reciprocal-space sampling in units of scattering angles [mrad].

antialias_cutoff_gpts

The number of grid points along the x and y direction in the simulation grid at the antialiasing cutoff scattering angle.

antialias_valid_gpts

The number of grid points along the x and y direction in the simulation grid for the largest rectangle that fits within antialiasing cutoff scattering angle.

base_axes_metadata

List of AxisMetadata for the base axes in real space.

cutoff_angles

Scattering angles at the antialias cutoff [mrad].

device

The device where the S-Matrix is created and reduced.

dtype

The datatype of waves.

energy

Electron acceleration energy in electron volts.

extent

Extent of grid for each dimension in Ångstrom.

full_cutoff_angles

Scattering angles corresponding to the full wave function size [mrad].

gpts

Number of grid points for each dimension.

grid

Simulation grid.

interpolation

Interpolation factor in the x and y directions

metadata

Metadata stored as a dictionary.

reciprocal_space_axes_metadata

List of AxisMetadata for base axes in reciprocal space.

reciprocal_space_sampling

Reciprocal-space sampling in reciprocal Ångstrom.

rectangle_cutoff_angles

Scattering angles corresponding to the sides of the largest rectangle within the antialias cutoff [mrad].

sampling

Grid sampling for each dimension in Ångstrom per grid point.

semiangle_cutoff

The radial cutoff of the plane-wave expansion [mrad].

wave_vectors

The wave vectors corresponding to each plane wave.

wavelength

Relativistic wavelength in Ångstrom.

window_extent

The cropping window extent of the waves.

window_gpts

The number of grid points describing the cropping window of the wave functions.

ensemble_axes_metadata

ensemble_shape

property accelerator: abtem.core.energy.Accelerator#

Accelerator object describing the acceleration energy.

Return type

Accelerator

property angular_sampling: tuple[float, float]#

Reciprocal-space sampling in units of scattering angles [mrad].

Return type

tuple[float, float]

property antialias_cutoff_gpts: tuple[int, int]#

The number of grid points along the x and y direction in the simulation grid at the antialiasing cutoff scattering angle.

Return type

tuple[int, int]

property antialias_valid_gpts: tuple[int, int]#

The number of grid points along the x and y direction in the simulation grid for the largest rectangle that fits within antialiasing cutoff scattering angle.

Return type

tuple[int, int]

property base_axes_metadata: list[abtem.core.axes.AxisMetadata]#

List of AxisMetadata for the base axes in real space.

Return type

list[AxisMetadata]

property cutoff_angles: tuple[float, float]#

Scattering angles at the antialias cutoff [mrad].

Return type

tuple[float, float]

property device#

The device where the S-Matrix is created and reduced.

property dtype#

The datatype of waves.

dummy_probes(scan=None, ctf=None, plane='entrance', **kwargs)[source]#

A probe or an ensemble of probes equivalent reducing the SMatrix at a single position.

Parameters
Returns

dummy_probes

Return type

Probes

property energy#

Electron acceleration energy in electron volts.

property extent: tuple[float] | tuple[float, float] | tuple[float, ...]#

Extent of grid for each dimension in Ångstrom.

Return type

tuple[float] | tuple[float, float] | tuple[float, …]

property full_cutoff_angles: tuple[float, float]#

Scattering angles corresponding to the full wave function size [mrad].

Return type

tuple[float, float]

property gpts: tuple[int] | tuple[int, int] | tuple[int, ...]#

Number of grid points for each dimension.

Return type

tuple[int] | tuple[int, int] | tuple[int, …]

property grid: abtem.core.grid.Grid#

Simulation grid.

Return type

Grid

abstract property interpolation#

Interpolation factor in the x and y directions

match_grid(other, check_match=False)#

Match the grid to another object with a Grid.

abstract property metadata: dict#

Metadata stored as a dictionary.

Return type

dict

property reciprocal_space_axes_metadata: list[abtem.core.axes.AxisMetadata]#

List of AxisMetadata for base axes in reciprocal space.

Return type

list[AxisMetadata]

property reciprocal_space_sampling: tuple[float] | tuple[float, float] | tuple[float, ...]#

Reciprocal-space sampling in reciprocal Ångstrom.

Return type

tuple[float] | tuple[float, float] | tuple[float, …]

property rectangle_cutoff_angles: tuple[float, float]#

Scattering angles corresponding to the sides of the largest rectangle within the antialias cutoff [mrad].

Return type

tuple[float, float]

property sampling: tuple[float] | tuple[float, float] | tuple[float, ...]#

Grid sampling for each dimension in Ångstrom per grid point.

Return type

tuple[float] | tuple[float, float] | tuple[float, …]

abstract property semiangle_cutoff: float#

The radial cutoff of the plane-wave expansion [mrad].

Return type

float

abstract property wave_vectors: numpy.ndarray#

The wave vectors corresponding to each plane wave.

Return type

ndarray

property wavelength#

Relativistic wavelength in Ångstrom.

abstract property window_extent#

The cropping window extent of the waves.

abstract property window_gpts#

The number of grid points describing the cropping window of the wave functions.