Worked examples¶
The worked examples are children, measurements and parents with their inputs and the scores the
scheme gives them. They are the tests that every implementation of the scheme runs, and the
tables below are built from one file, so this page cannot disagree with it. The file is
ghfdb/qc/worked_examples.json
in the package, and it is the single source of every example.
Each example names the tests that assert it, in the last column, and links the file that holds them. The tests of the GHFDB portal assert the examples that the portal also holds, with the same inputs and the same expected scores. The examples for the rules that the corrigendum of Fuchs et al. (2023) added are asserted by this package’s tests alone.
How to read the tables¶
Inputs are given by field code. A field that is not listed is empty. A field with several values lists them separated by commas. The legend below names each field code.
Expected gives only the values the example asserts. A T-score or TC-score that reads not determined is empty, and is never 0.
no mark and missing-information mark say whether the score or the M-score carries the mark. The M-score of a child carries it as an
x.own scores are the T-score and the TC-score of the child’s gradient and conductivity before the child’s own corrections are applied. They are given for a child only where they are asserted. See the overview.
own T-score and own TC-score mark an example that scores a gradient or a conductivity on its own, without a child. Its score then applies none of the child’s correction rules, unless a correction field is listed among its inputs.
The fields the examples use¶
Field code |
Published column name |
Name |
|---|---|---|
|
Elevation (Geographical) |
|
|
Type of exploration method |
|
|
Heat-flow value child |
|
|
Heat-flow uncertainty child |
|
|
Heat-flow interval top |
|
|
Heat-flow interval bottom |
|
|
Penetration depth |
|
|
Flag in-situ thermal properties |
|
|
Flag temperature corrections (instrumental correction) |
|
|
Flag sedimentation effect (heat flow correction) |
|
|
Flag erosion effect (heat-flow correction) |
|
|
Flag topographic effect (heat-flow correction) |
|
|
Flag paleoclimatic effect (heat-flow correction) |
|
|
Flag transient surface temperature (heat-flow correction) |
|
|
Flag convection processes (heat-flow correction) |
|
|
Flag heat refraction effect (heat-flow correction) |
|
|
Probe tilt |
|
|
Temperature method (top) |
|
|
Temperature method (bottom) |
|
|
Number of temperature recordings |
|
|
Thermal conductivity source |
|
|
Thermal conductivity location |
|
|
Thermal conductivity method |
|
|
Thermal conductivity saturation |
|
|
Thermal conductivity pT conditions |
|
|
TC number |
Which rules score a child¶
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
Exploration method [Probing (onshore, lake, river, etc.)] |
|
rules |
|
|
Exploration method [Probing (offshore, ocean)] |
|
rules |
|
|
Exploration method [Probing (clustered)] |
|
rules |
|
|
Exploration method [Drilling] |
|
rules |
|
|
Exploration method [Drilling (clustered)] |
|
rules |
|
|
Exploration method [Mining] |
|
rules |
|
|
Exploration method [Tunneling] |
|
rules |
|
|
Exploration method [Indirect (GTM, BSR, CPD, etc.)] |
|
rules |
|
|
Exploration method [Other] |
|
rules |
|
|
Exploration method [Unspecified] |
|
rules |
|
|
Exploration method empty |
— |
rules |
|
U-score¶
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
Uncertainty 4.9 on a value of 100: 4.9 % |
|
U-score |
|
|
Uncertainty 5 on a value of 100: 5 % |
|
U-score |
|
|
Uncertainty 15 on a value of 100: 15 % |
|
U-score |
|
|
Uncertainty 15.1 on a value of 100: 15.1 % |
|
U-score |
|
|
Uncertainty 25 on a value of 100: 25 % |
|
U-score |
|
|
Uncertainty 25.1 on a value of 100: 25.1 % |
|
U-score |
|
|
Uncertainty 80 on a value of 100: 80 % |
|
U-score |
|
|
The coefficient is rounded to six places before banding (4.9999996 on 100) |
|
U-score |
|
|
The coefficient is rounded to six places before banding (15.0000004 on 100) |
|
U-score |
|
|
The coefficient is rounded to six places before banding (25.0000004 on 100) |
|
U-score |
|
|
The coefficient is rounded to six places before banding (25.000001 on 100) |
|
U-score |
|
|
Value or uncertainty empty or zero |
|
U-score |
|
|
Value or uncertainty empty or zero |
|
U-score |
|
|
Value or uncertainty empty or zero |
|
U-score |
|
|
Value or uncertainty empty or zero |
|
U-score |
|
|
A negative value is read as a magnitude (-40 with 12) |
|
U-score |
|
|
A negative uncertainty is read as a magnitude (40 with -1.9) |
|
U-score |
Probe sensing: T-score¶
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
Penetration 10.01 m |
|
T-score 1.2, no mark |
|
|
Penetration 10 m |
|
T-score 1.1, no mark |
|
|
Penetration 3.01 m |
|
T-score 1.1, no mark |
|
|
Penetration 3 m |
|
T-score 1.0, no mark |
|
|
Penetration 1.01 m |
|
T-score 1.0, no mark |
|
|
Penetration 1 m |
|
T-score 0.9, no mark |
|
|
6 temperature recordings |
|
T-score 1.1, no mark |
|
|
5 temperature recordings |
|
T-score 1.0, no mark |
|
|
3 temperature recordings |
|
T-score 1.0, no mark |
|
|
2 temperature recordings |
|
T-score 0.9, no mark |
|
|
1 temperature recordings |
|
T-score 0.8, no mark |
|
|
Elevation -2500.01 m |
|
T-score 1.1, no mark |
|
|
Elevation -2500 m |
|
T-score 1.0, no mark |
|
|
Elevation -1500.01 m |
|
T-score 1.0, no mark |
|
|
Elevation -1500 m |
|
T-score 0.9, no mark |
|
|
Elevation 0: no water depth |
|
T-score 0.9, missing-information mark |
|
|
Elevation 120: no water depth |
|
T-score 0.9, missing-information mark |
|
|
Elevation empty: no water depth |
|
T-score 0.9, missing-information mark |
|
|
Tilt 30.01 degrees |
|
T-score 0.9, no mark |
|
|
Tilt 30 degrees |
|
T-score 1.0, no mark |
|
|
Tilt 10.01 degrees |
|
T-score 1.0, no mark |
|
|
Tilt 10 degrees |
|
T-score 1.1, no mark |
|
|
Tilt corrected waives the tilt criterion, even with an empty tilt |
|
T-score 1.1, no mark |
|
|
A bottom-water correction waives the water depth criterion, even with an empty elevation |
|
T-score 1.1, no mark |
|
|
No penetration and no tilt recorded |
|
T-score 0.7, missing-information mark |
|
|
Number of temperature recordings empty |
|
T-score 0.8, missing-information mark |
|
Probe sensing: TC-score¶
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
The best inputs |
|
TC-score 1.2, no mark |
|
|
4 conductivity measurements |
|
TC-score 1.2, no mark |
|
|
3 conductivity measurements |
|
TC-score 1.1, no mark |
|
|
2 conductivity measurements |
|
TC-score 1.1, no mark |
|
|
1 conductivity measurements |
|
TC-score 1.0, no mark |
|
|
A literature location: the number is not scored, even when empty |
|
TC-score 1.0, no mark |
|
|
Saturation empty |
|
TC-score 0.9, missing-information mark |
|
|
Method empty |
|
TC-score 0.6, missing-information mark |
|
|
Source empty |
|
TC-score 0.9, missing-information mark |
|
|
Location empty: the saturation row that holds does not name it, so the saturation is +0.1, and the location itself takes -0.2 with the mark, so TC is 1.0 |
|
TC-score 1.0, missing-information mark |
|
|
Saturation recorded as unspecified |
|
TC-score 0.9, no mark |
|
|
Two locations: the poorest counts |
|
TC-score 1.1, no mark |
|
|
Actual in-situ pT with a laboratory method |
|
TC-score 0.6, no mark |
|
|
pT conditions empty |
|
TC-score 0.9, missing-information mark |
|
|
Two conductivity methods, one laboratory and one an estimate: the laboratory rows do not hold, so the saturation takes -0.2 and TC is 0.6 |
|
TC-score 0.6, no mark |
|
|
A laboratory conductivity with the source empty: the laboratory row holds without the source, so the saturation is 0 and TC is 1.0, with no mark |
|
TC-score 1.0, no mark |
|
|
Replicated in-situ pT with the method empty: the pT row holds without the method, so the pT is 0, but the saturation row needs the method, so it is -0.2 with the mark and TC is 0.8 |
|
TC-score 0.8, missing-information mark |
|
Borehole and mine: T-score¶
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
Four recordings of an equilibrium log: a continuous log |
|
T-score 1.1, no mark |
|
|
Three recordings of the same log: multiple single points |
|
T-score 0.9, no mark |
|
|
A perturbed log at the top |
|
T-score 0.9, no mark |
|
|
A log at the top and a bottom-hole temperature at the bottom |
|
T-score 0.7, no mark |
|
|
Surface at the top, [cBHT] at the bottom |
|
T-score 0.7, no mark |
|
|
Surface at the top, [BHT] at the bottom |
|
T-score 0.5, no mark |
|
|
Surface at the top, [CPD] at the bottom |
|
T-score 0.4, no mark |
|
|
Surface at the top, [Other] at the bottom |
|
T-score 0.4, no mark |
|
|
[HT-FTeq] at top and bottom |
|
T-score 0.9, no mark |
|
|
[HT-FTpert] at top and bottom |
|
T-score 0.7, no mark |
|
|
A method that fits no case (DTSeq with two recordings) |
|
T-score 0.5, missing-information mark |
|
|
Both temperature methods empty |
|
T-score 0.5, missing-information mark |
|
|
Both temperature methods unspecified |
|
T-score 0.5, no mark |
|
|
Two methods at the top: the poorest counts |
|
T-score 0.5, no mark |
|
|
[cDTS] at top and bottom with three recordings: it fits no group |
|
T-score 0.5, missing-information mark |
Borehole and mine: TC-score¶
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
The best inputs, with the pT conditions scored alone |
|
own TC-score 1.0, no mark |
|
|
Only the top of the interval reported |
|
own TC-score 1.0, no mark |
|
|
Only the bottom of the interval reported |
|
own TC-score 1.0, no mark |
|
|
Neither top nor bottom of the interval reported |
|
own TC-score 0.1, missing-information mark |
|
|
Location empty |
|
own TC-score 0.8, missing-information mark |
|
|
Source [In-situ probe] |
|
own TC-score 1.1, no mark |
|
|
Source [Core-log integration] |
|
own TC-score 1.1, no mark |
|
|
Source [Core samples] |
|
own TC-score 1.0, no mark |
|
|
Source [Cutting samples] |
|
own TC-score 0.9, no mark |
|
|
Source [Outcrop samples] |
|
own TC-score 0.9, no mark |
|
|
Source [Well-log interpretation] |
|
own TC-score 0.9, no mark |
|
|
Source [Mineral computation] |
|
own TC-score 0.8, no mark |
|
|
Source [Assumed from literature] |
|
own TC-score 0.8, no mark |
|
|
Source [Other] |
|
own TC-score 0.8, no mark |
|
|
Source [Unspecified] |
|
own TC-score 0.8, no mark |
|
|
Source empty |
|
own TC-score 0.8, missing-information mark |
|
|
16 conductivity measurements |
|
own TC-score 1.0, no mark |
|
|
15 conductivity measurements |
|
own TC-score 0.9, no mark |
|
|
Number of conductivity measurements empty |
|
own TC-score 0.9, missing-information mark |
|
|
Saturation [Saturated measured in-situ] |
|
own TC-score 1.0, no mark |
|
|
Saturation [Saturated measured] |
|
own TC-score 1.0, no mark |
|
|
Saturation [Saturated calculated] |
|
own TC-score 0.9, no mark |
|
|
Saturation [Recovered] |
|
own TC-score 0.9, no mark |
|
|
Saturation [Dry measured] |
|
own TC-score 0.8, no mark |
|
|
Saturation [Other] |
|
own TC-score 0.8, no mark |
|
|
Saturation [Unspecified] |
|
own TC-score 0.8, no mark |
|
|
pT conditions [Actual in-situ (pT) conditions], scored alone |
|
own TC-score 1.0, no mark |
|
|
pT conditions [Replicated in-situ (pT)], scored alone |
|
own TC-score 1.0, no mark |
|
|
pT conditions [Corrected in-situ (pT)], scored alone |
|
own TC-score 1.0, no mark |
|
|
pT conditions [Replicated in-situ (p)], scored alone |
|
own TC-score 0.9, no mark |
|
|
pT conditions [Replicated in-situ (T)], scored alone |
|
own TC-score 0.9, no mark |
|
|
pT conditions [Corrected in-situ (p)], scored alone |
|
own TC-score 0.9, no mark |
|
|
pT conditions [Corrected in-situ (T)], scored alone |
|
own TC-score 0.9, no mark |
|
|
pT conditions [Recorded ambient pT conditions], scored alone |
|
own TC-score 0.8, no mark |
|
|
pT conditions [Unrecorded ambient pT conditions], scored alone |
|
own TC-score 0.8, no mark |
|
|
pT conditions [Unspecified], scored alone |
|
own TC-score 0.8, no mark |
|
|
pT conditions empty |
|
own TC-score 0.8, missing-information mark |
|
|
Two pT conditions: the poorest counts |
|
own TC-score 0.8, no mark |
|
|
pT conditions [Corrected in-situ (pT)] with the in-situ correction [Pressure and temperature considered] |
|
TC-score 1.0, no mark |
|
|
pT conditions [Corrected in-situ (pT)] with the in-situ correction [Not considered] |
|
TC-score 0.8, no mark |
|
|
pT conditions [Corrected in-situ (T)] with the in-situ correction [Temperature considered] |
|
TC-score 0.9, no mark |
|
|
pT conditions [Corrected in-situ (p)] with the in-situ correction [Pressure considered] |
|
TC-score 0.9, no mark |
|
|
pT conditions [Recorded ambient pT conditions] with the in-situ correction [Not considered] |
|
TC-score 0.8, no mark |
|
|
pT conditions [Recorded ambient pT conditions] with the in-situ correction [Unspecified] |
|
TC-score 0.8, no mark |
|
|
pT conditions [Actual in-situ (pT) conditions] with the in-situ correction empty |
|
TC-score 0.8, missing-information mark |
|
|
pT conditions empty, in-situ correction recorded |
|
TC-score 0.8, missing-information mark |
|
M-score¶
The inputs are the child’s T-score and TC-score, and whether each carries the mark.
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
T-score 1.0 times TC-score 0.76 = 0.76 |
|
M-score |
|
|
T-score 1.0 times TC-score 0.75 = 0.75 |
|
M-score |
|
|
T-score 1.0 times TC-score 0.74 = 0.74 |
|
M-score |
|
|
T-score 1.0 times TC-score 0.5 = 0.5 |
|
M-score |
|
|
T-score 1.0 times TC-score 0.49 = 0.49 |
|
M-score |
|
|
T-score 0.5 times TC-score 0.5 = 0.25 |
|
M-score |
|
|
T-score 0.5 times TC-score 0.49 = 0.245 |
|
M-score |
|
|
T-score 0.1 times TC-score 0.1 = 0.01 |
|
M-score |
|
|
0.833 times 0.9 is 0.7497, rounded to 0.750 before the class |
|
M-score |
|
|
Only the T-score marked |
|
M-score |
|
|
Only the TC-score marked |
|
M-score |
|
|
Both marked |
|
M-score |
|
|
T-score not determined |
|
M-score |
|
|
TC-score not determined |
|
M-score |
|
|
Both not determined, one of them marked |
|
M-score |
|
Perturbation flags¶
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
No correction recorded |
— |
flags |
|
|
C13 [Present and corrected] |
|
flags |
|
|
C14 [Present and corrected] |
|
flags |
|
|
C15 [Present and corrected] |
|
flags |
|
|
C16 [Present and corrected] |
|
flags |
|
|
C17 [Present and corrected] |
|
flags |
|
|
C18 [Present and corrected] |
|
flags |
|
|
C19 [Present and corrected] |
|
flags |
|
|
C13 [Present and not corrected] |
|
flags |
|
|
C14 [Present and not corrected] |
|
flags |
|
|
C15 [Present and not corrected] |
|
flags |
|
|
C16 [Present and not corrected] |
|
flags |
|
|
C17 [Present and not corrected] |
|
flags |
|
|
C18 [Present and not corrected] |
|
flags |
|
|
C19 [Present and not corrected] |
|
flags |
|
|
C16 [Present and not significant] |
|
flags |
|
|
C16 [Not recognized] |
|
flags |
|
|
C16 empty |
— |
flags |
Inherited code¶
The inputs are the quality codes of the children a parent could rest on, in order, and C9
where a child’s relevance matters.
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
A parent with no children |
|
U-score |
|
|
One child passes its code up |
|
U-score |
|
|
Children graded U1, U2 |
|
U-score |
|
|
Children graded U3, U1, U2 |
|
U-score |
|
|
Children graded U4, U3 |
|
U-score |
|
|
Children graded U4, Ux, U1 |
|
U-score |
|
|
Children graded M1, M3 |
|
M-score |
|
|
Children graded M4, M1x |
|
M-score |
|
|
Children graded M1x, M4x |
|
M-score |
|
|
Children graded M4x, Mx, M2 |
|
M-score |
|
|
U4 with M1 and U1 with M4 |
|
U-score |
|
|
Flags of the child with the poorest U-score |
|
flags |
|
|
The poorest M-score breaks a tie on the U-score |
|
flags |
|
|
Two children tie on both scores, in the order S then E |
|
flags |
|
|
The same two children in the order E then S |
|
flags |
|
|
An only child marked [Yes] |
|
U-score |
|
|
An only child marked [No] |
|
U-score |
|
|
Two relevant children, U1 and U3 |
|
quality code |
|
|
U1 and U2 relevant, U4 not relevant |
|
U-score |
|
|
Several children and none relevant |
|
U-score |
|
|
Two relevant children scored from conformance cases B2 and B6 |
|
U-score |
|
Whole children¶
Example |
What it shows |
Inputs |
Expected |
Tests |
|---|---|---|---|---|
|
Continuous equilibrium log, in-situ probe conductivity, no in-situ correction recorded |
|
U-score |
|
|
Continuous perturbed log, core samples, no in-situ correction recorded |
|
U-score |
|
|
Two bottom-hole temperatures, recovered core, no in-situ correction recorded |
|
U-score |
|
|
Surface temperature and one bottom-hole temperature, dry cuttings |
|
U-score |
|
|
No interval depth reported: the conductivity takes its fixed minimum |
|
U-score |
|
|
Probe with a tilt correction and a bottom-water correction, and every flag state |
|
U-score |
|
|
The same probe with no correction recorded |
|
U-score |
|
|
Onshore probe, laboratory conductivity, no elevation below sea level, no tilt |
|
U-score |
|
|
Clustered probing, conductivity estimated from literature, negative heat flow |
|
U-score |
|
|
Saturation empty, method unspecified: the estimate row for an unspecified method holds without the saturation, so the saturation is -0.2 with no mark and the grade has no mark |
|
U-score |
|
|
Corrected pT with an in-situ correction that agrees |
|
U-score |
|
|
Corrected pT with an in-situ correction recorded as not considered |
|
U-score |
|
|
Corrected pT with no in-situ correction recorded |
|
U-score |
|
|
Mining, recorded ambient pT, in-situ correction recorded as unspecified |
|
U-score |
|
|
Clustered drilling, replicated p with a pressure-considered correction |
|
U-score |
|
|
Tunnelling, literature conductivity, surface and one point |
|
U-score |
|
|
Surface case with a bottom method it does not list, and an uncertainty of zero |
|
U-score |
|
|
Indirect method, no temperature methods, no interval depth, no uncertainty |
|
U-score |
|
|
Every scored input recorded as unspecified: largest penalties and no mark |
|
U-score |
|
|
Exploration method Other: no rules to score by |
|
U-score |
|
|
Exploration method empty: no rules to score by |
|
U-score |
|
|
A child with no temperature gradient and no thermal conductivity recorded |
|
U-score |
|
|
A probe-sensing child with only its exploration method: nothing to score |
|
U-score |
|
|
A borehole child with only its exploration method: nothing to score |
|
U-score |
|
|
All seven correction fields recorded (B2 inputs, uncertainty 5 on a value of 50) |
|
flags |
|
What the examples cover¶
Every criterion of every part of the scheme has at least one example. Each row names a criterion, and lists how many examples exercise it and the first three.
Criterion |
What it covers |
Examples |
|---|---|---|
|
A child is scored by the probe-sensing rules |
3: |
|
A child is scored by the borehole and mine rules |
8: |
|
No rules apply, so the scores are not determined |
5: |
|
The four classes of the coefficient of variation |
15: |
|
The coefficient is rounded to six places |
4: |
|
The sign of the value and of the uncertainty is ignored |
3: |
|
Value or uncertainty empty or zero |
4: |
|
Probe penetration |
7: |
|
Number of temperature recordings (probe sensing) |
6: |
|
Water depth |
8: |
|
An elevation at or above sea level has no water depth |
4: |
|
Probe tilt |
6: |
|
A tilt correction waives the tilt criterion |
2: |
|
A bottom-water correction waives the water depth criterion |
2: |
|
Conductivity location (probe sensing) |
3: |
|
Saturation, method, source and location together |
13: |
|
Number of conductivity measurements (probe sensing) |
5: |
|
The number is not scored for a literature location (probe sensing) |
2: |
|
pT conditions and method (probe sensing) |
5: |
|
Continuous log |
4: |
|
A continuous log needs more than three recordings |
1: |
|
Multiple single points |
12: |
|
Surface temperature plus one point |
6: |
|
Temperature methods that fit no group |
3: |
|
No interval depth reported |
5: |
|
Conductivity location (borehole and mine) |
2: |
|
Conductivity source |
13: |
|
Number of conductivity measurements (borehole and mine) |
4: |
|
The number is not scored for a literature location (borehole and mine) |
1: |
|
Saturation (borehole and mine) |
8: |
|
pT conditions (borehole and mine) |
21: |
|
pT conditions must agree with the in-situ correction |
13: |
|
The four classes of the product |
18: |
|
The product is rounded to three places |
1: |
|
The missing-information mark follows the M-score |
12: |
|
A score that cannot be calculated gives Mx |
3: |
|
Sedimentation flag |
4: |
|
Erosion flag |
4: |
|
Topography flag |
4: |
|
Paleoclimate flag |
7: |
|
Surface-temperature variation flag |
4: |
|
Convection flag |
3: |
|
Heat refraction flag |
3: |
|
Present and not significant |
1: |
|
Not recognized |
1: |
|
Unspecified |
1: |
|
No correction recorded |
3: |
|
A parent with one child |
3: |
|
A parent with no child it rests on |
2: |
|
The poorest U-score |
7: |
|
The poorest M-score |
6: |
|
The flags of the poorest child |
4: |
|
A tie on the U-score is settled by the M-score |
1: |
|
A tie on both scores |
2: |
|
Which children a parent rests on |
6: |
|
An empty input takes the largest penalty and the mark |
20: |
|
A field that the row which holds does not name may be empty: the row scores and nothing is missing |
4: |
|
An input recorded as unspecified takes the largest penalty and no mark |
5: |
|
No interval depth sets the mark |
2: |
|
Temperature methods that fit no group set the mark |
3: |
|
U-score not determined |
7: |
|
T-score not determined |
5: |
|
TC-score not determined |
5: |
|
M-score not determined |
8: |
|
A field holding several values takes the poorest |
5: |
|
A child scored from its fields to its quality code |
6: |
|
Every field the rules read is empty, so the scores are not determined |
2: |