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

DPCSignal2D#

class pyxem.signals.DPCSignal2D(*args, **kwargs)[source]#

Bases: Signal2D

Signal for processing differential phase contrast (DPC) acquired using scanning transmission electron microscopy (STEM).

The signal assumes the data is 3 dimensions, where the two signal dimensions are the probe positions, and the navigation dimension is the x and y disk shifts.

The first navigation index (s.inav[0]) is assumed to the be x-shift and the second navigation is the y-shift (s.inav[1]).

Attributes

Methods

DPCSignal2D.correct_ramp([corner_size, ...])

Subtract a plane from the signal by fitting a plane to the corners.

DPCSignal2D.flip_axis_90_degrees([flips])

Flip both the spatial and beam deflection axis

DPCSignal2D.gaussian_blur([sigma, output])

Blur the x- and y-beam shifts.

DPCSignal2D.get_bivariate_histogram([...])

Useful for finding the distribution of magnetic vectors(?).

DPCSignal2D.get_color_image_with_indicator([...])

Make a matplotlib figure showing DPC contrast.

DPCSignal2D.get_color_signal([rotation, ...])

Get DPC image visualized using continuous color scale.

DPCSignal2D.get_magnitude_signal([autolim, ...])

Get DPC magnitude image visualized as greyscale.

DPCSignal2D.get_phase_signal([rotation])

Get DPC phase image visualized using continuous color scale.

DPCSignal2D.phase_retrieval([method, ...])

Retrieve the phase from two orthogonal phase gradients.

DPCSignal2D.rotate_beam_shifts(angle)

Rotate the beam shift vector.

DPCSignal2D.rotate_data(angle[, reshape])

Rotate the scan dimensions by angle.

DPCSignal2D.to_beamshift()

Get BeamShift signal from the DPCSignal.