local_stats.io

This module contains some convenience I/O functions for working with image and diffraction data, particularly for constructing Point Of Normal Incidence (.poni) files.

local_stats.io.write_poni(path: str, pixel_size: float, detector_distance: float, beam_centre_x: int, beam_centre_y: int, wavelength: float) None[source]

Makes a Point Of Normal Incidence (.poni) file at path from the input arguments.

Parameters
  • path – Path to where the .poni file should be saved.

  • pixel_size – Size of each pixel, in metres.

  • detector_distance – Distance from the sample to the detector, in metres.

  • beam_centre_x – The pixel index of the beam centre along the fast axis.

  • beam_centre_y – The pixel index of the beam centre along the slow axis.

  • wavelength – The wavelength of the incident light, in metres.