Skip to content
Skills Library
Science & research · Analysis

gprpy

/gprpy

Read and process ground-penetrating radar profiles using GPRPy. Use for sample-based dewow/background removal, auditable gain, time/depth scenarios, and radargram export with explicit acquisition units. SEG-Y input uses a separate segyio adapter; native GPRPy files are serialized sessions.

Licence
MIT
Last repository change
15.09.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 15.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/process_gpr.py

What it does and when to use it

Read and process ground-penetrating radar profiles using GPRPy. Use for sample-based dewow/background removal, auditable gain, time/depth scenarios, and radargram export with explicit acquisition units. SEG-Y input uses a separate segyio adapter; native GPRPy files are serialized sessions.

Original author description

Read and process ground-penetrating radar profiles using GPRPy. Use for sample-based dewow/background removal, auditable gain, time/depth scenarios, and radargram export with explicit acquisition units. SEG-Y input uses a separate segyio adapter; native GPRPy files are serialized sessions.

How it works

  1. Read and select operations
  2. Reproducible helper
  3. Other APIs and verification boundary
Original SKILL.md headings · 86 lines, 561 words
SKILL.md preview
---
name: gprpy
description: >-
  Read and process ground-penetrating radar profiles using GPRPy. Use for
  sample-based dewow/background removal, auditable gain, time/depth scenarios,
  and radargram export with explicit acquisition units. SEG-Y input uses a
  separate segyio adapter; native GPRPy files are serialized sessions.
license: MIT
metadata:
  version: "1.0.2"
  author: Geoscience Skills
  tags: '["GPR", "Ground-Penetrating Radar", "Near-Surface", "Signal Processing", "GPRPy", "Geophysics", "Depth Conversion", "Radargram"]'
  dependencies: '["gprpy>=1.0.14", "numpy<2", "matplotlib", "scipy", "segyio>=1.9.14"]'
  complements: '["pyvista"]'
  workflow_role: data-loading
  skill_type: domain
---

# Auditable GPR processing

GPRPy operates on arrays shaped `(samples, traces)`. Inspect acquisition
metadata before assigning physical axes: a trace index is not distance, and a
radar vendor's SEG-Y interval field may need a documented time scale. Preserve
unknown units explicitly. Do not obtain a site velocity from a generic material
lookup and present it as measured.

## Read and select operations

GPRPy 1.0.14 natively reads paired MALA `.rad/.rd3`, Sensors & Software
`.DT1/.HD`, GSSI `.DZT`, and its documented BSQ inputs. Native `.gpr` files are
Python pickle sessions, not a MALA exchange format; read only trusted sessions.
GPRPy does not natively read or export SEG-Y.

```python
import gprpy.gprpy as gp

profile = gp.gprpyProfile()
profile.importdata('profile.rad')  # requires matching profile.rd3
raw = profile.data.copy()
profile.dewow(window=64)  # argument is sample count, not ns
```

Select operations to answer the user's question. `dewow(window)` and
`agcGain(window)` take sample counts; `remMeanTrace(ntraces)` takes traces.
Background subtraction may remove real continuous reflectors. Time-power gain
changes amplitude scaling and is not a calibrated attenuation correction.
Keep the raw arrays and record every applied operation. Window edge behaviour
and the effective interior support need particular care; see the
[processing reference](references/processing_steps.md).

`setVelocity(velocity)` uses m/ns and computes the zero-offset constant-velocity
scenario `depth = twtt * velocity / 2`; it does not estimate velocity or migrate
reflectors. Resolve time zero and antenna-offset assumptions first. Retain
native two-way time alongside any assumed depth, and state which independent
measurements support velocity and its uncertainty.

## Reproducible helper

The [processing helper](scripts/process_gpr.py) supports tested `.rad/.rd3` and
`.sgy/.segy` routes. The latter explicitly uses segyio before real GPRPy
processing. It writes `profile.npz` and `processing.json` and reads them back;
NPZ loading uses `allow_pickle=False`. Outputs include raw amplitudes,
intermediate arrays, final amplitudes, original sample/trace indices, available
physical axes, source checksums, parameters and selected encoded header fields.
A new output directory prevents silent replacement of a previous result.

```bash
python scripts/process_gpr.py profile.rad --metadata sampling.json \
  --output processed --dewow-samples 64
```

Resolve paths relative to the installed skill directory. `sampling.json`
contains `source_note`, `sample_interval_ns`, `time_origin_ns`,
`trace_spacing_m`, `profile_origin_m`, `horizontal_crs` and `vertical_reference`.
Use JSON `null` for unknown time or spacing; explain provenance in `source_note`.
Uniform physical sampling requires a finite origin and a positive interval.
Irregular positions require a separately validated geometry route; do not
replace them with a fabricated regular line.

Only supply `--gain-power` when nonnegative physical time is known. Only supply
`--velocity-m-ns` for an explicitly labelled zero-offset constant-velocity depth
scenario. Both are rejected when time calibration is unresolved. No processing
step is enabled by default. The helper fails on missing/nonfinite amplitudes,
unsupported formats, non-live SEG-Y trace flags, variable trace sampling or a
failed requested export instead of reporting partial work as success.

## Other APIs and verification boundary

For plotting, use `showProfile()` or `printProfile(...)`; neither accepts the
previously documented `ax=` export pattern. GPRPy 1.0.14 has no
`bandpassFilter`, `exportASCII`, `exportSEGY` or `gprpyCMP` API. Its CMP/WARR
class is `gprpyCW`; consult the installed source before using its stacked
amplitude methods. Topographic correction uses `topoCorrect(topofile,
delimiter=',')` after a separately chosen velocity, not a `velocity=` keyword.
These advanced branches require their own acceptance checks.

The checked path uses fixed GPRPy source version 1.0.14, native generated MALA
bytes, and one licensed observed SEG-Y line. The field line's time scaling and
coordinate units remain unresolved, so only sample-index processing is claimed.
Synthetic timing and impulse depth checks are separate from field accuracy.
See [source installation and limits](references/processing_steps.md#tested-source)
for the tested commit and dependency distinction.
Files in this package (3)
  • SKILL.md 5 KB
  • references/processing_steps.md 4 KB
  • scripts/process_gpr.py 10 KB

Versions

The database has no other skills named gprpy.

Database snapshot: 13.11.2026 · package version 7348848e6592 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100segyio
    Read, write, and manipulate SEG-Y seismic data files. Fast C library with Python bindings for trace, header, inline, and crossline access. Use when the agent needs to: (1) Read/inspect SEG-Y files, (2) Extract trace data or headers, (3) Access 3D survey data by inline/crossline,…
  • 95segysak
    Read SEG-Y as labelled xarray datasets with SEGY-SAK, inspect header-defined survey dimensions and process seismic volumes lazily. Use for SEG-Y/xarray/Dask workflows; use segyio for exact low-level trace and header editing.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.