grade_interval

petrophys.evaluation.net_pay.grade_interval

grade_interval(
lithology,
bad_hole_fraction,
thickness,
*,
non_reservoir_lithologies=(),
marginal_lithologies=(),
max_bad_hole_fraction=0.5,
min_thickness=1.0,
depth_unit='m',
)[source]

Screening confidence of a flagged interval.

Parameters:
  • lithology (str) – The interval’s lithology (e.g. majority_label() of its samples).

  • bad_hole_fraction (float or None) – Share of the interval’s samples in bad hole (None: not known).

  • thickness (float) – Interval thickness, in the unit of min_thickness.

  • non_reservoir_lithologies (iterable of str) – Rock types that cannot hold producible hydrocarbons, and fine-grained rock where a log-derived low SW is often a clay effect.

  • marginal_lithologies (iterable of str) – Rock types that cannot hold producible hydrocarbons, and fine-grained rock where a log-derived low SW is often a clay effect.

  • max_bad_hole_fraction (float) – Bad-hole share above which the interval is low confidence.

  • min_thickness (float) – Thickness below which the interval is below tool resolution.

  • depth_unit (str, default "m") – Unit of thickness and min_thickness, for the reason text.

Returns:

  • confidence (str) – "higher" or "low".

  • reasons (list of str) – Why it is low (empty when higher).

Return type:

Tuple[str, List[str]]

Examples

>>> grade_interval("SILT", 0.1, 2.0, marginal_lithologies=["SILT"])
('low', ['silt is marginal reservoir rock'])