WellTrajectory

class geodetic_engine.welltrajectory.WellTrajectory[source]

Bases: object

Positions along a wellbore, with how they were arrived at.

One array entry per point, surveyed or interpolated.

crs

The trajectory CRS.

method

How the offsets were georeferenced in it.

north_reference

What the survey’s azimuths were measured from.

md_unit

Unit of md.

z_unit

Unit of z, tvd and the offsets.

md

Measured depth.

inclination

Inclination from vertical, in degrees.

azimuth_true

Azimuth from true north, in degrees.

azimuth_grid

Azimuth from grid north, in degrees; equal to azimuth_true in a geographic CRS, and NaN in a projected one that does not preserve angles at the wellhead, where no one convergence turns azimuths onto the grid.

east

Offset east of the wellhead, against true north.

north

Offset north of the wellhead, against true north.

tvd

True vertical depth below the wellhead.

x

First coordinate value in crs, in its own unit.

y

Second coordinate value in crs.

z

Elevation, wellhead z - tvd.

curvature

Dogleg per metre of MD, in radians; see dls().

is_survey_station

True for a surveyed station, False for a point interpolated between them.

frame

The wellhead and datum the trajectory was georeferenced on.

model

The minimum curvature model, in metres, for interpolating.

local_crs

The local CRS the offsets were read in, if the method used one.

operations

What was done, in order.

name

The well’s name, if the input gave one; plots use it as the label.

property factors: ProjectionFactors

Grid convergence and scale factor at the wellhead.

property dls_length: float

Default MD length of a dogleg severity, 100 in feet and 30 otherwise.

dls(per_length=None)[source]

Dogleg severity in degrees per per_length of MD, in md_unit.

Defaults to dls_length, per 100 ft or per 30 m.

Return type:

FloatArray

interpolate(md)[source]

The trajectory at the given measured depths, on its arcs.

Parameters:

md (ArrayLike) – Depths in md_unit, within the surveyed interval. Their order and duplicates are preserved. LMP queries are anchored to the original survey, not to other query points.

Raises:

InvalidSurveyError – If a depth is outside the surveyed interval.

Return type:

WellTrajectory

resample(step, *, include_survey=True)[source]

The trajectory every step of MD, in md_unit.

Parameters:
  • step (float) – Spacing of the points.

  • include_survey (bool, default: True) – Keep the surveyed stations as well.

Return type:

WellTrajectory

projection_factors()[source]

Grid convergence and scale factor at every point.

Return type:

ProjectionFactors

to_geographic(target='EPSG:4326', operation=None)[source]

Horizontal positions in another CRS, usually a geographic one.

A datum change needs operation named, or a bound trajectory CRS, exactly as for Transformation.

Return type:

TransformationResult

to_dataframe()[source]

One row per point, with the dogleg severity at its default length.

Return type:

DataFrame

plot(**options)[source]

A 3D plotly figure.

See plot_trajectory() for the options.

Return type:

Any

__init__(crs, method, north_reference, md_unit, z_unit, md, inclination, azimuth_true, azimuth_grid, east, north, tvd, x, y, z, curvature, is_survey_station, frame, model, local_crs, operations, name=None)