find_fwl

petrophys.interpretation.saturation.height.find_fwl

find_fwl(
well,
model,
*,
sw_curve=('SW_INPUT', 'SW'),
perm_curve=('PERM_CC', 'PERM', 'PERM_CORE', 'PERM_TIMUR'),
phi_curve=('PHIE_CC', 'PHIE', 'PHIT'),
top=None,
bottom=None,
search=None,
tvd_curve=None,
)[source]

The free-water level at which a saturation-height model best matches the logs.

The FWL is varied, and at each candidate depth the model (from core, fit_j_function_from_core()) predicts Sw at every sample from its height above the FWL, permeability and porosity; the candidate with the least RMS difference from the log Sw is the estimate. The 95% range comes from the misfit profile (an F-test on the summed squared misfit, with the sample count reduced for the correlation of neighbouring log samples). top and bottom bound the samples used, search the candidate depths as (shallowest, deepest) (default: from the shallowest sample used, less 1/400 of the samples’ depth span, to one span below the deepest). Takes a well or an interpretation result. r2 is how much of the log Sw the model explains at the best FWL. Compare the estimate with a pressure FWL where one exists.

sw_curve, perm_curve and phi_curve each name a curve or several in order of preference; at each depth the first of them with a value is used. Height is measured along tvd_curve when one is named; otherwise the depth index is taken as true vertical depth, with a warning. search and the depths of the result are in the unit and on the datum of that depth: the tvd_curve’s when one is named, else the well’s depth index. top and bottom are always depths on the well’s depth index (measured depth), also when tvd_curve is named.

Where the least misfit is at the top or the bottom of the search the FWL is not resolved and the result’s bound says on which side it lies; where the 95% range reaches an edge of the search its range_cut says so (see FWLFromLogs). Widen search in either case.

A well with none of the named curves, or fewer than 20 samples with Sw, permeability and porosity, raises ValueError, as does a search that is not two finite depths with the shallower first.

Parameters:
Return type:

FWLFromLogs