Check out the Hyperspy Workshop May 13-17, 2024 Online

calibration#

Utils for calibrating Diffraction Patterns.

Functions

find_diffraction_calibration(patterns, ...)

[Deprecated] Finds the diffraction calibration for a pattern or set of patterns by maximizing correlation scores.

get_electron_wavelength(accelerating_voltage)

Calculates the (relativistic) electron wavelength in Angstroms for a given accelerating voltage in kV.

index_dataset_with_template_rotation(signal, ...)

Index a dataset with template_matching while simultaneously optimizing in-plane rotation angle of the templates

Classes

Calibration(signal)

This is a class to hold the calibration parameters for some dataset and the methods for calibrating the dataset.

UniformDataAxis([index_in_array, name, ...])

DataAxis class for a uniform axis defined through a scale, an offset and a size.

deprecated(since[, alternative, ...])

Decorator to mark deprecated functions with an informative warning.