temperature_profile¶
petrophys.interpretation.temperature.temperature_profile
- temperature_profile(
- well,
- bht=None,
- surface_temp=DefaultParameters.SURFACE_TEMPERATURE_F,
- gradient=None,
- bht_unit='F',
- surface_temp_unit='F',
- td=None,
- td_unit=None,
- depth_unit=None,
- fallback_gradient_c_per_km=DefaultParameters.GEOTHERMAL_GRADIENT_C_PER_KM,
Calculate temperature profile for a well.
- Parameters:
well (Well) – Well object with depth data
bht (float, optional) – Bottom hole temperature (uses header if not provided, with an unlabelled header unit read as degF)
surface_temp (float, optional) – Surface temperature
gradient (float, optional) – Temperature gradient (calculated from BHT if not provided)
bht_unit (str, optional) – Unit of
bht: “F”, “C”, “K” or a label such as “degC”; unknown labels raiseValueErrorsurface_temp_unit (str, optional) – Unit of
surface_temp, asbht_unit; default “F”td (float, optional) – Total depth at which
bhtapplies. Default: the header’s TD, else the bottom of the logged interval.td_unit (str, optional) – Depth unit of
td; defaultdepth_unitdepth_unit (str, optional) – Depth unit of the well’s depths; default the well’s depth unit
fallback_gradient_c_per_km (float, optional) – Gradient used when neither
gradientnor a BHT with a total depth below the surface is available, degC/km (default: 30)
- Returns:
Temperature profile results.
sourcesays what the profile rests on:"linear_gradient_from_BHT","specified_gradient"or"fallback_geothermal_gradient".- Return type:
TemperatureResult
Notes
Without
gradientand without a BHT (argument or header) the profile is an assumption:surface_temp(default 68 degF, 20 degC) at depth 0 plusfallback_gradient_c_per_km(default 30 degC/km). No warning is issued for it; checkresult.sourcefor"fallback_geothermal_gradient", aspetrophys.interpret()does to report it.Examples
>>> from petrophys.interpretation.temperature import temperature_profile >>> result = temperature_profile(well, bht=200) >>> well["TEMP"] = result.temperature