darfix.core.mapping.compute_rsm#

darfix.core.mapping.compute_rsm(H, W, d, ffz, mainx, rotate=False)[source]#

Transformation to azimuthal coordinates.

Parameters:
  • H (int) – height of the image in pixels.

  • W (int) – width of the image in pixels.

  • d (float) – Distance in micrometers of each pixel.

  • ffz (float) – motor ‘ffz’ value.

  • mainx (float) – motor ‘mainx’ value.

Returns:

Tuple of two arrays of size (W, H)

Return type:

(X1, X2) : ndarray