sp_rw_in_window¶
petrophys.interpretation.electrical.rw.sp_rw_in_window
Also available as petrophys.interpretation.electrical.sp_rw_in_window
- sp_rw_in_window(
- well,
- *,
- rmf,
- rmf_temp_f,
- temperature_f,
- top=None,
- bottom=None,
- reference_temp_f=None,
- sp_shale_mv=None,
Estimate Rw from the SP in a depth window, at a chosen temperature.
The window is cut from the well, Rmf is moved from its measurement temperature to the formation temperature of each sample (Arps), and
RwModule(method="sp") picks the clean-sand and shale SP lines inside the window and inverts the static SP for Rw. The result is then Arps-shifted toreference_temp_f.- Parameters:
well (Well) – Well with an
SPcurve (mV). Clean water-bearing candidates are the samples with VCL <= 0.35 and PHIE >= 0.10 where those curves exist, and among them the lowest 35 % of deep resistivity; the shale line from high VCL or high GR.rmf (float) – Mud-filtrate resistivity (ohm.m) measured at
rmf_temp_f.rmf_temp_f (float) – Temperature (degF) at which
rmfwas measured.temperature_f (float or array-like) – Formation temperature in degF: one value, or one per sample of the whole well (for example
temperature_profile(...).temperature).top (float, optional) – Depth window (inclusive), in well depth units. Defaults to the whole log, which is only safe when the SP baseline does not drift.
bottom (float, optional) – Depth window (inclusive), in well depth units. Defaults to the whole log, which is only safe when the SP baseline does not drift.
reference_temp_f (float, optional) – Temperature (degF) to quote Rw at. Defaults to the window’s median temperature.
sp_shale_mv (float, optional) – Shale-line SP (mV) to use instead of picking it from the window.
- Returns:
Rw at the reference temperature plus the SP lines, Rmf and temperatures behind it.
- Return type:
- Raises:
ValueError – If the well has no SP, the window is empty, the temperature does not match the well, or a resistivity or temperature is not physical.
Notes
A small SSP (a few mV) means formation water about as saline as the filtrate; baseline noise is then a large relative error, so treat the answer as a consistency check. Hydrocarbons and clay suppress the SP deflection. See Schlumberger, Log Interpretation Principles/Applications (1989), chapter 7.
Examples
>>> import petrophys as pp >>> from petrophys.interpretation.temperature import temperature_profile >>> well = pp.read(pp.sample("30_6-5")) >>> temp_f = temperature_profile( ... well, bht=258.8, bht_unit="F", surface_temp=68.0, td=well.bottom).temperature >>> local = sp_rw_in_window(well, rmf=0.186, rmf_temp_f=75.0, temperature_f=temp_f, ... top=2800.0, bottom=2958.0, reference_temp_f=224.0) >>> round(local.ssp_mv, 1), round(local.rw, 3) (-5.2, 0.058)