haqlLabs

haql-coords · public guide

Wellbore geometry you can check, not just copy.

Copied trigonometry sits in spreadsheets and well records with no one able to explain its datum or convention. haql-coords provides minimum-curvature well paths (calculated from survey stations), UTM map conversion, dog-leg severity and a deterministic survey certificate.

free and MITwellbore geometryround-trip checked

Product: haql-coords · Public guide · Updated 8 November 2026

What haql-coords does

haql-coords is a small Python library for the geometry that well records depend on: survey stations, true vertical depth, north/east displacement, dog-leg severity, UTM conversion and a certificate that recomputes the as-drilled path.

In one sentence: It gives the suite one checked geometry definition instead of a hundred inherited spreadsheet formulas.

Drilling and wells teams

Verify a path

Recompute TVD, displacement and dog-leg severity from survey stations.

Data and QC teams

Catch a shifted record

Flag a survey or coordinate that fails a basic geometry check.

Developers

Reuse a small library

Add well geometry without pulling in a full analysis stack.

Why it matters

A copied formula can be correct and still be the wrong convention. A coordinate shifted by one digit can quietly change the nearest-well calculation. A number is not proof; a round-trip and a reproducible certificate are.

  • The spreadsheet formula came from someone who left years ago; its datum is unknown.
  • One well coordinate is shifted by a digit and the geometry quietly changes.
  • A distance cannot be inverted or checked, so a wrong answer looks like a right one.
  • QC rules that compare wells need trustworthy geometry upstream.
Without haql-coordsThe hidden problem

A spreadsheet gives a plausible distance. Nobody can say which datum, sign convention or survey method produced it.

With haql-coordsThe visible answer

The survey is recomputed with a documented method, checked for depth order, range and dog-leg severity, and certified deterministically.

What goes in

The library takes survey stations and coordinate values directly in Python.

What goes inWhat it means
Survey stationsMeasured depth, inclination and azimuth for the well path.
CoordinatesUTM or geographic values for conversion and offset calculations.
Python codeThe library is imported into your own script; there is no portal or account.

What comes out

The outputs are plain values and deterministic evidence, not a hosted report.

What comes outHow to use it
Well-path valuesTrue vertical depth (TVD), north/east displacement and dog-leg severity (DLS) per segment.
Survey checkDepth-order, inclination/azimuth range and dog-leg findings with stable rule IDs.
Survey certificateFinal TVD, horizontal closure, maximum DLS and a SHA-256 over the canonical station list.
UTM conversionCoordinate conversion with an explicit method.

What it checks

The checks are deliberately small and auditable.

Check areaWhat it flags
Depth orderSurvey stations that do not progress in measured depth.
Angle rangeInclination or azimuth outside the valid range.
Dog-leg severityA dog-leg above the 2.0°/100 ft limit used by the library.
Round-trip geometryA coordinate or distance that cannot be checked both ways.

The certificate is deterministic: the same stations produce a byte-identical result and hash.

What it does not do

A useful tool should be clear about its boundaries. These are the current limits, not hidden caveats.

  • It is a geometry library, not a full well-planning, anti-collision or drilling-engineering application.
  • It depends on the quality and completeness of the survey stations you provide.
  • A passing survey check is not a substitute for engineering review of the well design.
  • The library does not replace a company's survey standards or regulatory requirements.

Findings are advisory. The tool names a contradiction or a risk with the evidence behind it. The engineering, legal or commercial judgement remains with you.

How to try it

Install it in seconds and try the geometry on a survey you already have.

  1. pip install haql-coords
  2. Build a minimum-curvature path from survey stations and inspect true vertical depth (TVD), displacement and dog-leg severity (DLS).
  3. Run check_survey() and survey_certificate() on the same stations.

Nothing leaves your machine. The paid tools run offline. The free libraries have no account, cloud call or telemetry.

Common questions

Is it really free?

Yes. haql-coords is MIT-licensed, with no account, cloud call, seat count or telemetry.

Does it need a database?

No. It is a Python library; data is passed in code.

Can it plan a well?

No. It computes and checks geometry from survey data. Well planning and anti-collision are larger disciplines.

What is dog-leg severity?

How sharply the well path bends over a measured distance, usually expressed in degrees per 100 feet.