salinity_from_rw

petrophys.interpretation.electrical.rw.salinity_from_rw

salinity_from_rw(rw, temperature, temp_unit='F')[source]

Calculate salinity from Rw.

Inverse of rw_from_salinity.

Parameters:
  • rw (float or np.ndarray) – Formation water resistivity (ohm.m)

  • temperature (float or np.ndarray) – Temperature

  • temp_unit (str, optional) – Temperature unit: “F”, “C”, “K” or a label such as “degC”; unknown labels raise ValueError

Returns:

Salinity in ppm NaCl. Missing Rw, and Rw at or below the 0.0123 ohm.m (at 75 degF) asymptote of the fit, give NaN.

Return type:

float or np.ndarray