ewoksfluo.tasks.sum_detectors.sum_utils.sum_spectra_from_hdf5#

ewoksfluo.tasks.sum_detectors.sum_utils.sum_spectra_from_hdf5(bliss_scan_uri, xrf_spectra_uri_template, detector_normalization_template, detector_names)[source]#

Add spectra from multiple detectors after normalizing the spectra to a common live time.

\[MCA(\mathrm{Fe}) = \sum_i{\left[ W_i MCA_i \right] }\]
Parameters:
  • bliss_scan_uri (str) – BLISS scan URI. For example “/path/to/data.g5::/1.1”.

  • xrf_spectra_uri_template (str) – XRF spectra path with respect to the BLISS scan URI. For example “instrument/{}/data”.

  • detector_normalization_template (Optional[str]) – XRF spectra normalization template with variables with respect to the BLISS scan URI. For example “0.1/<instrument/{}/live_time>”.

  • detector_names (List[str]) – List of names to be used in the templates.

Return type:

Optional[ndarray]

Returns:

summed XRF spectra