cutoff_sensitivity

petrophys.evaluation.sensitivity.cutoff_sensitivity

Also available as petrophys.evaluation.cutoff_sensitivity

cutoff_sensitivity(
well=None,
*,
vcl_cutoffs=None,
phie_cutoffs=None,
sw_cutoffs=None,
vcl=None,
phie=None,
sw=None,
depth=None,
lithology='clastic',
top=None,
bottom=None,
depth_unit=None,
)[source]

Net pay and net-to-gross over a grid of VCL, PHIE and Sw cutoffs.

The curves stay fixed; only the flags change, so a large grid is fast. Each row is one cutoff combination summarized with summarize_pay().

Parameters:
  • well (Well or interpretation result, optional) – Source of the depth and of any curve not passed as an array (curve lookup as in calculate_net_pay()).

  • vcl_cutoffs (float or sequence of float, optional) – Cutoff values to combine, fractions (v/v); a value above 1 and up to 100 is read as percent. A single value holds that cutoff fixed. An unset cutoff stays at its base value: the cutoff the interpretation was run with when an interpretation result is passed and that cutoff was set as one number in its settings (pp.interpret(well, sw_cutoff=0.5)), else the standard value for lithology.

  • phie_cutoffs (float or sequence of float, optional) – Cutoff values to combine, fractions (v/v); a value above 1 and up to 100 is read as percent. A single value holds that cutoff fixed. An unset cutoff stays at its base value: the cutoff the interpretation was run with when an interpretation result is passed and that cutoff was set as one number in its settings (pp.interpret(well, sw_cutoff=0.5)), else the standard value for lithology.

  • sw_cutoffs (float or sequence of float, optional) – Cutoff values to combine, fractions (v/v); a value above 1 and up to 100 is read as percent. A single value holds that cutoff fixed. An unset cutoff stays at its base value: the cutoff the interpretation was run with when an interpretation result is passed and that cutoff was set as one number in its settings (pp.interpret(well, sw_cutoff=0.5)), else the standard value for lithology.

  • vcl (array-like, optional) – Explicit curves and depths, one value per sample.

  • phie (array-like, optional) – Explicit curves and depths, one value per sample.

  • sw (array-like, optional) – Explicit curves and depths, one value per sample.

  • depth (array-like, optional) – Explicit curves and depths, one value per sample.

  • lithology (str, default "clastic") – Lithology family for the standard cutoffs.

  • top (float, optional) – Depth window (inclusive), in depth units, for example the reservoir.

  • bottom (float, optional) – Depth window (inclusive), in depth units, for example the reservoir.

  • depth_unit (str, optional) – Unit label for the thicknesses. Defaults to well.depth_unit.

Returns:

One row per combination with vcl_cutoff, phie_cutoff, sw_cutoff, the gross, net rock, net reservoir and net pay thicknesses, ntg_reservoir, ntg_pay, avg_phie_pay, avg_sw_pay, hcpt and n_pay_samples. attrs records the depth unit and window, the base cutoffs (base_cutoffs) and where each comes from (base_cutoff_source: "interpretation setting" or "standard, <lithology>"). Pivot it for a heat map, e.g. grid.pivot(index="vcl_cutoff", columns="sw_cutoff", values="ntg_pay").

Return type:

DataFrame

Raises:

ValueError – If inputs are missing or inconsistent, or a cutoff is not a finite number between 0 and 100.

Notes

Every row applies one cutoff set to every sample and leaves no sample out. An interpretation run without cutoffs in its settings takes each sample’s lithology-family standards, and every run leaves evaporite, coal, halite recognised on the logs and bad-hole samples out of net reservoir and net pay, so the base row can differ from the run’s own NET_PAY (result.summary(top, bottom)).

See also

petrophys.evaluation.net_pay.summarize_pay

One cutoff set.

petrophys.visualization.heatmap

Plot the pivoted grid.

Examples

>>> import numpy as np
>>> depth = np.arange(1000.0, 1010.0, 1.0)
>>> vcl = np.array([0.05, 0.1, 0.2, 0.3, 0.5, 0.1, 0.15, 0.25, 0.6, 0.1])
>>> phie = np.full(10, 0.2)
>>> sw = np.array([0.2, 0.3, 0.4, 0.5, 0.9, 0.55, 0.65, 0.7, 1.0, 0.35])
>>> grid = cutoff_sensitivity(vcl=vcl, phie=phie, sw=sw, depth=depth,
...                           vcl_cutoffs=[0.2, 0.4], sw_cutoffs=[0.5, 0.7])
>>> net = grid.pivot(index="vcl_cutoff", columns="sw_cutoff", values="net_pay_thickness")
>>> net.to_dict("index")    # rows: VCL cutoff; columns: Sw cutoff
{0.2: {0.5: 3.0, 0.7: 5.0}, 0.4: {0.5: 4.0, 0.7: 7.0}}

The cutoffs are strict, so the samples at VCL = 0.2 and at Sw = 0.5 or 0.7 fail the matching cutoff.