Models API
Data models for the DIG processing pipeline.
AuditTrail
dataclass
Immutable processing history.
Each step is appended (never removed). The trail can be serialized to JSON for reproducibility.
Source code in dig/models/audit.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
add_step(name, parameters=None)
Append a processing step to the trail.
Source code in dig/models/audit.py
44 45 46 47 48 49 50 51 52 53 | |
from_json(path)
classmethod
Load an audit trail from a JSON file.
Source code in dig/models/audit.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
save(path)
Save the audit trail to a JSON file.
Source code in dig/models/audit.py
62 63 64 65 | |
to_json()
Serialize the audit trail to JSON.
Source code in dig/models/audit.py
55 56 57 58 59 60 | |
Grid3D
dataclass
A 3D GPR volume assembled from multiple parallel profiles.
Dimensions: (inline, crossline, depth/time)
Source code in dig/models/grid.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
crossline_section(crossline_index)
Extract a single crossline profile.
Source code in dig/models/grid.py
49 50 51 | |
inline_section(inline_index)
Extract a single inline profile.
Source code in dig/models/grid.py
45 46 47 | |
time_slice(depth_index)
Extract a single time/depth slice.
Source code in dig/models/grid.py
41 42 43 | |
MagnetometryGrid
dataclass
A 2D magnetometry grid.
Represents gridded magnetic gradient data with spatial metadata.
Source code in dig/models/magnetometry_grid.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
extent_m
property
Bounding box in metres (west, east, south, north).
ProcessingStep
dataclass
A single processing step in the audit trail.
Source code in dig/models/audit.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
Profile
dataclass
A single 2D GPR profile (radargram).
Represents one survey line with trace data and spatial metadata.
Source code in dig/models/profile.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
Survey
dataclass
A geophysical survey — the central data object.
Holds memory-mapped trace data, header metadata, coordinate system, and an immutable processing history DAG.
Source code in dig/models/survey.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
data
property
Access the trace data array.
Returns None if not loaded. Use load() to explicitly load.
shape
property
Data shape: (num_traces, samples_per_trace).
load()
Load data into memory (for processing/visualization).
For large surveys, prefer memory-mapped access via parsers.
Source code in dig/models/survey.py
59 60 61 62 63 64 65 66 67 68 69 | |