histogram_pixels#

anri.index.histogram_pixels(chunks, geom, ring_tth, tth_tol, om0, histograms, chunk)[source]#

Stream pixels into one or more histograms in a single pass over the data.

Each chunk’s pixel angles are computed once and added to every histogram, so the data are read once however many histograms (e.g. a fine row-summed lit map and a coarse per-row one) are wanted.

Parameters:
Returns:

list – One flat histogram [n_rings * n_e * n_o * n_rows] per entry of histograms