attach_survey¶
petrophys.io.attach_survey
- attach_survey(well, survey, *, elevation=None, columns=None, sheet_name=None)[source]¶
Add
TVDandTVDSScurves towellfrom a deviation survey.- Parameters:
well (Well) – Well in measured depth.
survey (path, DataFrame, Survey or
"vertical") – The survey (seeread_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, onlyTVDis added.columns (dict, optional) – Explicit
{"md": ..., "inclination": ..., "azimuth": ...}headers of a survey table, as forread_survey().sheet_name (optional) – Sheet of an Excel survey workbook, as for
read_survey().
- Returns:
The survey the curves were computed from.
- Return type:
Notes
TVDis 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 parameterstvd_sourceanddepth_reference_elevation.