formation_water

petrophys.workflow.steps.formation_water

formation_water(rw=None, rw_meas_temp=None, *, salinity_ppm=None, name=None)[source]

Formation water resistivity at formation temperature (RW).

Give Rw with the temperature it was measured at, or a salinity, or rw="header" to read RW and RWT from each well’s LAS header (useful when every well has its own value). Rw is corrected to the formation temperature of each sample with Arps’ equation along the TEMP curve; without TEMP, a profile is built from the header BHT. Uses correct_rw_temperature() and rw_from_salinity().

Parameters:
  • rw (float or "header", optional) – Formation water resistivity, ohm.m, at rw_meas_temp.

  • rw_meas_temp (str, tuple or float, optional) – Temperature at which rw was measured, with its unit, e.g. "230 degF" or "110 degC"; a bare number is read as degF, with a warning. Required with a numeric rw; with rw="header" it overrides the header RWT.

  • salinity_ppm (float, optional) – Formation water salinity, ppm NaCl equivalent, instead of rw.

  • name (str, optional) – Step name; defaults to "formation_water".

Returns:

Produces RW (ohm.m). Reads TEMP when present.

Return type:

Step

Examples

>>> from petrophys.workflow import steps
>>> steps.formation_water(rw=0.07, rw_meas_temp="230 degF")
steps.formation_water(rw=0.07, rw_meas_temp='230 degF')
>>> steps.formation_water(rw=0.07)
Traceback (most recent call last):
...
ValueError: Invalid steps.formation_water() parameters:
  - rw_meas_temp is required with rw: the temperature at which rw was measured, e.g. rw=0.07, rw_meas_temp='230 degF'