attach_survey

petrophys.io.attach_survey

attach_survey(well, survey, *, elevation=None, columns=None, sheet_name=None)[source]

Add TVD and TVDSS curves to well from a deviation survey.

Parameters:
  • well (Well) – Well in measured depth.

  • survey (path, DataFrame, Survey or "vertical") – The survey (see read_survey()), or "vertical" to declare the hole vertical (TVD = MD).

  • elevation (float, optional) – Elevation of the log’s depth reference above sea level, in the well’s depth unit; read from the header (depth_reference_elevation()) when not given. Without one, only TVD is added.

  • columns (dict, optional) – Explicit {"md": ..., "inclination": ..., "azimuth": ...} headers of a survey table, as for read_survey().

  • sheet_name (optional) – Sheet of an Excel survey workbook, as for read_survey().

Returns:

The survey the curves were computed from.

Return type:

Survey

Notes

TVD is below the log’s depth reference; TVDSS = TVD - elevation, positive below sea level. The survey is converted to the well’s depth unit. The source and elevation are recorded in the well parameters tvd_source and depth_reference_elevation.