fit_saturation_height

petrophys.interpretation.saturation.height.fit_saturation_height

fit_saturation_height(
height,
sw,
*,
model='skelt_harrison',
phi=None,
fit_offset=False,
min_height=0.0,
height_unit='',
)[source]

Fit an empirical saturation-height function to Sw versus height above the FWL.

Parameters:
  • height (array-like) – Vertical height above the FWL (see height_above_fwl()).

  • sw (array-like) – Water saturation (v/v) at those heights.

  • model (str) – "power", "cuddy" or "skelt_harrison".

  • phi (array-like, optional) – Porosity (v/v); required by "cuddy".

  • fit_offset (bool) – Skelt-Harrison only: fit the height offset d (an FWL shift) instead of holding it at 0 for a known FWL.

  • min_height (float) – Leave out samples at or below this height (0 drops the water leg).

  • height_unit (str) – Unit of height, recorded with the fit.

Returns:

Parameters, R-squared and RMS Sw error on the fitted samples; predict evaluates the function.

Return type:

FittedSaturationHeight