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,
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).topandbottombound the samples used,searchthe 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.r2is 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_curveandphi_curveeach name a curve or several in order of preference; at each depth the first of them with a value is used. Height is measured alongtvd_curvewhen one is named; otherwise the depth index is taken as true vertical depth, with a warning.searchand the depths of the result are in the unit and on the datum of that depth: thetvd_curve’s when one is named, else the well’s depth index.topandbottomare always depths on the well’s depth index (measured depth), also whentvd_curveis named.Where the least misfit is at the top or the bottom of the search the FWL is not resolved and the result’s
boundsays on which side it lies; where the 95% range reaches an edge of the search itsrange_cutsays so (seeFWLFromLogs). Widensearchin 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
searchthat is not two finite depths with the shallower first.