check_drillholes
builtin
¶
check_drillholes(
collar,
survey=None,
intervals=None,
*,
hole="HOLE_ID",
x="X",
y="Y",
z="Z",
at="DEPTH",
azimuth="AZIMUTH",
dip=Ellipsis,
inclination=None,
from_="FROM",
to="TO",
max_depth=None,
grades=None,
nodata=Ellipsis,
max_deviation=20.0,
tolerance=1e-06,
)
Per-record flags of drillhole tables, a summary of every check and the values behind the checks that suggest a correction.
Rows with a missing or sentinel required value (id, coordinates,
depths, angles, from and to) are left out of the other checks, so each
defect is flagged once. Nothing is sorted or dropped; see
fix_drillholes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
collar
|
table
|
Hole id and collar coordinates, plus the hole length if |
required |
survey
|
table
|
Hole id, depth, azimuth and dip (or inclination). |
None
|
intervals
|
table or mapping of str to table
|
Interval tables, e.g. |
None
|
hole
|
str
|
Column names, as in |
'HOLE_ID'
|
x
|
str
|
Column names, as in |
'HOLE_ID'
|
y
|
str
|
Column names, as in |
'HOLE_ID'
|
z
|
str
|
Column names, as in |
'HOLE_ID'
|
at
|
str
|
Column names, as in |
'HOLE_ID'
|
azimuth
|
str
|
Column names, as in |
'HOLE_ID'
|
dip
|
str
|
Column names, as in |
'HOLE_ID'
|
inclination
|
str
|
Column names, as in |
'HOLE_ID'
|
from_
|
str
|
Column names, as in |
'HOLE_ID'
|
to
|
str
|
Column names, as in |
'HOLE_ID'
|
max_depth
|
str
|
Collar column with the hole length; enables the |
None
|
grades
|
sequence of str
|
Columns that must hold numbers, searched for |
None
|
nodata
|
sequence of float
|
Values that stand for missing data, searched in every numeric column. |
Ellipsis
|
max_deviation
|
float
|
Largest angle, in degrees, between the directions of consecutive survey stations. A single wrong station is flagged twice: on itself and on the station below. |
20.0
|
tolerance
|
float
|
Depth tolerance of gaps, overlaps and |
1e-06
|
Returns:
| Name | Type | Description |
|---|---|---|
flags |
dict of str to Table
|
One boolean Table per input table (
|
summary |
Table
|
|
details |
Table
|
One row per flagged value of |
used in