ewoksfluo.tasks.normalization.norm_utils.compute_normalized_xrf_results#

ewoksfluo.tasks.normalization.norm_utils.compute_normalized_xrf_results(xrf_results_uri, coefficient)[source]#

Compute the normalized peak areas, associated uncertainties and mass fractions.

Let \(C\) be the normalization coefficient.

For elemental peak areas

\[A'(\mathrm{Fe}) = C \cdot A(\mathrm{Fe})\]

For the associated uncertainties (linear error propagation)

\[\sigma_{A'}(\mathrm{Fe}) = C \cdot \sigma_{A}(\mathrm{Fe})\]

For elemental mass fractions

\[M'(\mathrm{Fe}) = C \cdot M(\mathrm{Fe})\]
Parameters:
  • xrf_results_uri (str) – HDF5 group that contains the “parameters”, “uncertainties” and “massfractions” groups.

  • coefficient (ndarray) – Coefficient with which to normalize the data.

Return type:

Tuple[Dict[str, ndarray], Dict[str, ndarray], Dict[str, ndarray]]

Returns:

normalized peak areas, associated uncertainties, normalized weight fractions