Description
Label a nonnegative ordered borehole interval and return its length.
Earth-science records distinguish depth signs, vertical datums, before-present ages, calibration factors and specimen definitions. Apparent porosity can be negative for inconsistent density inputs, and core recovery may exceed the drilled interval. Local labels and supplied transformations do not establish geological interpretation, physical validity or actual observation quality.
Label a nonnegative ordered borehole interval and return its length.
When to use this tool
Use Borehole Depth Interval Label when you already have boreholeId, fromDepth, toDepth, unitText and need to label a nonnegative ordered borehole interval and return its length.
How to use the tool and how it works
- Enter boreholeId, fromDepth, toDepth, unitText. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read label, intervalLength. Use the output convention below.
Require boreholeId/unitText nonempty and 0<=fromDepth<=toDepth; return the interval label and to-from.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| boreholeId | Borehole Id | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| fromDepth | From Depth | Required. Finite number; minimum 0. |
| toDepth | To Depth | Required. Finite number. |
| unitText | Unit Text | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| label | Label | Required. Text; maximum UTF-16 length 8192. |
| intervalLength | Interval Length | Required. Finite number. |
{
"input": {
"boreholeId": "BH17",
"fromDepth": 10,
"toDepth": 15,
"unitText": "m"
},
"output": {
"label": "BH17; 10–15 m",
"intervalLength": 5
}
} Limitations and assumptions
- A zero-width interval is accepted. No measured/true-vertical depth conversion, sample coverage, trajectory or geological interpretation is inferred.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use verified survey, sample, sensor and timescale records with consistent units and reference frames. Apply the complete geological, hydrological or physical model when local density ratios, depth spans or calibration terms cannot establish the required interpretation.
References
Similar or alternative tools
- Stratigraphic Top Base Order Check
Check stratigraphic endpoint order under a supplied vertical sign convention.
- Borehole Measured Truevertical Depth Label
Preserve an explicitly supplied borehole depth transcription and convention.