t2lm_from_bins

petrophys.interpretation.nmr.t2lm_from_bins

t2lm_from_bins(bins, t2_centers, min_bin_coverage=1.0)[source]

Logarithmic mean T2 from a T2 bin distribution array.

Parameters:
  • bins (np.ndarray) – Shape (n_depth, n_bins) — porosity (pu) in each T2 bin.

  • t2_centers (np.ndarray) – Shape (n_bins,) — T2 centre times (ms).

  • min_bin_coverage (float) – Share of the bins that must have a value at a depth, 0 to 1 (default 1: all of them); below it T2lm is NaN there.

Returns:

T2lm (ms), shape (n_depth,). NaN where total bin porosity is 0.

Return type:

np.ndarray