tth_profile#

anri.index.tth_profile(x, val, lo, step, n)[source]#

Sum pixel intensities in 2theta bins.

Parameters:
  • x (Array) – [N, 3] (2theta, eta, omega) from pixel_angles()

  • val (Array) – [N] intensities

  • lo (float) – Bins: n of width step from lo (degrees)

  • step (float) – Bins: n of width step from lo (degrees)

  • n (int) – Bins: n of width step from lo (degrees)

Returns:

jax.Array – [n] intensity per bin