scipp.density_to_counts#

scipp.density_to_counts(x, dim)#

Converts counts to count density on a given dimension.

Parameters:
  • x (DataArray | Dataset) – Data as count density.

  • dim (str) – Dimension on which to convert.

Returns:

DataArray | Dataset – Data as counts.