temperature

petrophys.workflow.steps.temperature

temperature(
*,
bht=None,
td=None,
surface_temp=None,
temperature_gradient=None,
name=None,
)[source]

Formation temperature profile (TEMP, degF).

A linear profile from the surface temperature to the bottom-hole temperature at total depth, or from a given gradient. Without either, the LAS header BHT is used, and failing that a 30 degC/km gradient (with a warning). Wraps petrophys.interpretation.temperature.temperature_profile(), the function petrophys.interpret() uses.

formation_water() and mud_filtrate() correct resistivities along TEMP when it exists.

Parameters:
  • bht (str, tuple or float, optional) – Bottom-hole temperature with its unit, e.g. "230 degF" or "110 degC"; a bare number is read as degF, with a warning. Defaults to the LAS header BHT.

  • td (str, tuple or float, optional) – Depth of bht, e.g. "2650 m"; a bare number is in feet. Defaults to the header TD, then the deepest sample.

  • surface_temp (str, tuple or float, optional) – Surface (mean annual) temperature with its unit; default 68 degF.

  • temperature_gradient (str, tuple or float, optional) – Geothermal gradient instead of a BHT, e.g. "30 degC/km" or "1.65 degF/100ft".

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

Returns:

Requires nothing; produces TEMP (degF).

Return type:

Step

Examples

>>> from petrophys.workflow import steps
>>> steps.temperature(bht="230 degF").produces
{'TEMP': 'degF'}