RwModule¶
petrophys.interpretation.electrical.rw.RwModule
Also available as petrophys.interpretation.electrical.RwModule
- class RwModule(method='auto')[source]¶
Formation water resistivity calculator.
Calculates Rw using multiple methods: 1. Given (from header/samples) 2. From salinity equation 3. From SP: SSP = -K × log10(Rmf/Rw) 4. From Rxo/Rt = Rmf/Rw (clean water zone)
- Parameters:
method (str, optional) – Preferred method (default: “auto”):
"given"(needsrw_given),"salinity"(needssalinity),"sp","rxo_rt", or"auto", which takes the first of a given Rw, a given salinity, the header RW, the SP and Rxo/Rt.
Notes
An SP-derived Rw below the resistivity of NaCl-saturated brine (260,000 ppm) at the same temperature is not a water resistivity. It is not returned: a
DataQualityWarninggives the value,"auto"goes on to Rxo/Rt, and"sp"returns NaN with the value inmetadata["rw_rejected"].Examples
>>> rw_calc = RwModule() >>> result = rw_calc.calculate(well, rmf=0.5)
Methods
Calculate Rw using best available method.
- calculate(
- well,
- rmf=None,
- rw_given=None,
- salinity=None,
- sp_shale=None,
- temperature=None,
Calculate Rw using best available method.
- Parameters:
well (Well) – Well object
rmf (float, optional) – Mud filtrate resistivity at formation temperature
rw_given (float, optional) – Given Rw value
salinity (float, optional) – Formation water salinity (ppm)
sp_shale (float, optional) – Shale baseline SP
temperature (float or np.ndarray, optional) – Formation temperature, degF. Defaults to the TEMP (or TMPC) curve, converted from its unit label, then to a profile from the header BHT, or without a BHT the default 30 degC/km gradient.
- Returns:
Rw calculation results
- Return type:
RwResult