unmerge_signal#

cbclib.bin.unmerge_signal(x: numpy.ndarray, ij: numpy.ndarray, shape: Tuple[int, int], I0: numpy.ndarray, bgd: numpy.ndarray, xtal_bi: numpy.ndarray, prof: numpy.ndarray, fidxs: numpy.ndarray, idxs: numpy.ndarray, hkl_idxs: numpy.ndarray, num_threads: int = 1)[source]#

Unmerge photon counts I0 into diffraction orders hkl_idxs based on the current estimate of crystal structure factors and intercept values x.

Parameters
  • x (numpy.ndarray) – Current estimate of crystal structure factors and intercept values.

  • prof (numpy.ndarray) – Standard profiles.

  • I0 (numpy.ndarray) – Measured diffracted signal.

  • bgd (numpy.ndarray) – Background level.

  • xtal_bi (numpy.ndarray) – Sample’s projection maps.

  • hkl_idxs (numpy.ndarray) – Set of indices that numerate different Bragg reflections.

  • iidxs – Array of first indices pertaining to different diffraction streaks.

  • num_threads (int) – Number of threads used in the calculations.

Returns

An array of unmerged and background subtracted photon counts.

Return type

numpy.ndarray