StructureFactors#

class de_ebsd.crystal.StructureFactors(crystal, energy_kev, dmin, hmax, ucg_lut, v0, upz0, wavelength, hkl, g, d, ucg)[source]#

Bases: object

Structure factors of a crystal at one beam energy (inspectable stage).

Attributes:
crystal, energy_kev, dmin

The inputs that produced this table.

hmax

Largest Miller index with d >= dmin along any axis; the lookup table spans -2 hmax .. 2 hmax per axis so any difference of two reflections in the sphere is available.

ucg_lut

Complex U_g in nm^-2, shape (4 hmax + 1,) * 3, indexed [h + 2 hmax, k + 2 hmax, l + 2 hmax].

v0

Mean inner potential in volts.

upz0

Normal absorption coefficient U’_0 in nm^-2.

wavelength

Relativistic electron wavelength in nm, refraction corrected with v0.

normal_absorption_length

Normal absorption length 1 / (U’_0 lambda) in nm.

hkl, g, d, ucg

Flat listing of the reflections with 0 < g and d >= dmin that are allowed by the lattice centering, sorted by g: Miller indices (N, 3), lengths (N,) in nm^-1, spacings (N,) in nm and complex U_g (N,).

Methods

families

Group the reflection list by |g|; representative hkl, g, and U_g.

lookup

U_g for Miller indices (..., 3); indices must lie within the table.

show

Bar chart of |U_g| for the first n reflection families.

Attributes

normal_absorption_length

Normal absorption length 1 / (U'_0 lambda) in nm.

crystal

energy_kev

dmin

hmax

ucg_lut

v0

upz0

wavelength

hkl

g

d

ucg

families(n=None)[source]#

Group the reflection list by |g|; representative hkl, g, and U_g.

Returns the first n (or all) families sorted by g length.

lookup(hkl)[source]#

U_g for Miller indices (…, 3); indices must lie within the table.

property normal_absorption_length#

Normal absorption length 1 / (U’_0 lambda) in nm.

show(n=25)[source]#

Bar chart of |U_g| for the first n reflection families.

Systematic absences appear as (near-)zero bars.