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

GenericFlatDetector#

class pyxem.detectors.GenericFlatDetector(size_x, size_y)[source]#

Bases: Detector

A PyFAI Detector class for an arbitrarily sized flat detector (i.e. the calibration is assumed to be constant across the detector plane)

The detector class is used for get_azimuthal_integral in a Diffraction2D signal. The data is assumed to be flat in the small angle approximation.

PyFAI works in real space coordinates, the pixel size is assumed to be 1 (m) and the remaining parameters, via knowing the calibration and wavelength, are calculated to have an appropriate physical setup.

Parameters:
  • size_x (int) – The size (in pixels) of the detector in the x coordinate.

  • size_y (int) – The size (in pixels) of the detector in the y coordinate.

Examples

>>> from pyxem.detectors import GenericFlatDetector
>>> detector = GenericFlatDetector(512,512)
>>> detector
Detector GenericFlatDetector         Spline= None
PixelSize= 1.000e+00, 1.000e+00 m

Attributes

GenericFlatDetector.aliases

Methods