weighted_averages

petrophys.evaluation.summaries.weighted_averages

weighted_averages(
well,
curves,
weight_curve='PHIE',
top_depth=None,
bottom_depth=None,
net_pay_curve='NET_PAY',
)[source]

Calculate averages weighted by a curve (e.g. porosity-weighted).

Each sample is weighted by weight_curve alone, not by its thickness. When net_pay_curve is named and is not on the well, a warning is given and every average is NaN.

Parameters:
  • well (Well) – Well object

  • curves (list) – Curves to average

  • weight_curve (str) – Curve to use as weights (e.g., PHIE for porosity-weighting)

  • top_depth (float, optional) – Top depth

  • bottom_depth (float, optional) – Bottom depth

  • net_pay_curve (str, optional) – Net pay flag curve (None to ignore)

Returns:

Dictionary of weighted averages

Return type:

dict