Skip to main content

PyPI Crates.io CI codecov

Ridal — Speeding up Ground Penetrating Radar (GPR) processing

Documentation: ridal.readthedocs.io

The aim of ridal is to quickly and accurately process GPR data. In one command, most data can be processed in pre-set profiles or with custom filter settings, and batch modes allow for sequences of datasets to be processed with the same settings. It can be used from the command line, from Python, or through a browser GUI for looking at and interpreting the results. Built in rust with a high focus on testing and performance, ridal may be for you if large data volumes and strange fileformats are common issues.

The name is a take on the loosely defined "Data Abstraction Library" (DAL) projects like GDAL and PDAL, but for radar. A near-term goal of Ridal is to enable easy conversion between formats, such as ridal convert input.rad output.dzt (this is not yet implemented).

Much of the functionality has been inspired from the projects RGPR and ImpDAR; both of which are more mature projects. For example, Ridal currently only works on Malå (.rd3), GSSI (.dzt) and pulseEKKO (.dt1) radar formats. For many uses, these will more likely be the tools for you!

Image of a glacier radargram Radargram (100 MHz Malå) of Kroppbreen in Svalbard. Collected 28 Feb. 2023.

Notes

  • Prior to Feb. 2026, this program was called rsgpr.
  • The CLI/Python interface changed completely in version 0.5. See Issue #82 for more info.

Installation

Requirements

  • cargo(only for the CLI; not the python package). Easiest installed using rustup.
  • gdal (optional, for sampling heights from DEMs). For Debian or derivatives, this means gdal-bin.
  • proj (optional, for CRS support other than WGS84 UTM Zones). For Debian or derivatives, this means proj-bin.

Using cargo, the ridal CLI can be installed (after installing the requirements):

cargo install ridal

with nix, the flake can be used without worrying about the requirements above:

inputs = {
  ridal.url = "github:erikmannerfelt/ridal";
};

or in an ephemeral shell:

nix shell github:erikmannerfelt/ridal

Python

There's an early implementation of a Python package:

pip install ridal
>>> import ridal
# Print useful info as a dictionary
>>> ridal.info("path/to/file.rad")
'{...}'
# Process and save to a file
>>> ridal.process("path/to/file.rad", steps=["zero_corr", "auto_gain"], output="processed.nc")
# Process and load into memory
>>> ridal.process("path/to/file.rad", steps=["zero_corr"], return_dataset=True, return_dataset_format="xarray")
<xarray.Dataset> Size: ...
Dimensions:     (y: ..., x: ...)
Coordinates:
...
# Only load into memory with no processing
>>> ridal.read("path/to/file.rad", return_dataset_format="xarray")
<same as above>

See scripts/render_kroppbreen.py for an example of how it can be used.

Simple CLI usage

See the help page of ridal for info on how to interact with the CLI:

ridal -h

To toggle useful information on a file, the info subcommand shows the metadata and a summary of the location data:

ridal info DAT_001_A1.rd3

Processing a file using the default processing profile:

ridal process DAT_001_A1.rd3 --default

All processing steps are described in the steps reference. They can also be printed with ridal steps.

A processing step pipeline is defined using ridal process file.rad --steps "zero_corr,dewow,..." or using a file: --steps steps.txt:

subset(1 100) # Comments are supported!
zero_corr
dewow

correct_topography

The output will be a NetCDF file with the same name but an .nc suffix. By default, the output is saved in the same directory as the input. For more control, the output directory and/or filename can be controlled with -o or --output.

To process multiple files in "batch mode", provide a "glob" pattern as the filename. Optionally, for many sequential files, the --merge argument allows merging multiple files into one.

ridal batch-process data/*.rd3 --merge "10 min" --default -o output/

A profile renderer is available with the -r argument. This will be saved in the same location as the output file as a JPG if another filename is not given. Files that are already processed can be rendered on their own with the render subcommand:

ridal render processed.nc -o profile.png

The browser GUI

New in version 0.6.0.

Processed files can be looked at in a browser:

ridal gui path/to/processed/

Every Ridal .nc file below that directory is found and listed, grouped by survey, with a map of where each survey's lines were collected. Opening one gives a zoomable view of the radargram, where the cursor reports the trace number, the distance along the line, the two-way travel time and the depth, and a map shows where on the ground that point is. Radargrams are rendered where Ridal runs, and only the parts being looked at, so files larger than memory are not a problem.

Reflectors can also be picked in the browser, which needs somewhere to keep them: a project. Making one in the directory with the processed files is all that is required:

cd my_survey/
ridal project init
ridal gui

Without a path, ridal gui looks for the project by searching upwards from the current directory. Picked layers can be exported as points, as GeoJSON or CSV, from the browser or with ridal interp export.

ridal gui is for looking at your own files on your own computer, and it stops when you do. To share projects with colleagues over the network, see Running a server in the documentation.

Papers using Ridal

... and many others in preparation/review

Metadata

Release files for ridal 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ridal 0.12.0
File Actions
ridal-0.12.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for ridal-0.12.0-cp314-cp314-win_amd64.whl
ridal-0.12.0-cp314-cp314-manylinux_2_39_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.39+ x86-64 Details for ridal-0.12.0-cp314-cp314-manylinux_2_39_x86_64.whl
ridal-0.12.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for ridal-0.12.0-cp314-cp314-macosx_11_0_arm64.whl
ridal-0.12.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for ridal-0.12.0-cp313-cp313-win_amd64.whl
ridal-0.12.0-cp313-cp313-manylinux_2_39_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.39+ x86-64 Details for ridal-0.12.0-cp313-cp313-manylinux_2_39_x86_64.whl
ridal-0.12.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for ridal-0.12.0-cp313-cp313-macosx_11_0_arm64.whl
ridal-0.12.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for ridal-0.12.0-cp312-cp312-win_amd64.whl
ridal-0.12.0-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details for ridal-0.12.0-cp312-cp312-manylinux_2_39_x86_64.whl
ridal-0.12.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for ridal-0.12.0-cp312-cp312-macosx_11_0_arm64.whl
ridal-0.12.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for ridal-0.12.0-cp311-cp311-win_amd64.whl
ridal-0.12.0-cp311-cp311-manylinux_2_39_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.39+ x86-64 Details for ridal-0.12.0-cp311-cp311-manylinux_2_39_x86_64.whl
ridal-0.12.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for ridal-0.12.0-cp311-cp311-macosx_11_0_arm64.whl

Total release size: 116.4 MB

Release files / ridal-0.12.0-cp314-cp314-win_amd64.whl

Download URL ridal-0.12.0-cp314-cp314-win_amd64.whl
Size 10.5 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
0903e7db7f44f8ec03b7b12d075d7fdaf786067cfc2d5e6d735949b92a9685fa
BLAKE2b-256 checksum
How to use checksums
1c01f6b1888b00340f303b19533f68f15f22362ada8c4f8b3c49e5d74e7da1eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp314-cp314-manylinux_2_39_x86_64.whl

Download URL ridal-0.12.0-cp314-cp314-manylinux_2_39_x86_64.whl
Size 9.7 MB
Tags CPython 3.14 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
80db33b854c4f7ae9fc7e8a25a255d708226f8c7a2c60d4e2032c7ed88812d3a
BLAKE2b-256 checksum
How to use checksums
01e6fabd4a8729e43948f82edd04bea39c9c8a8d08659587398fa18686f4fe2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL ridal-0.12.0-cp314-cp314-macosx_11_0_arm64.whl
Size 9.1 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6f1343ccb062ae9ca25149a4a351fe8ce61e1c3cf5f097775a8035e747cde128
BLAKE2b-256 checksum
How to use checksums
a616b1299af27ae77757270b0aa8efa4192f0e7a491390fe80289df5b34c00b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp313-cp313-win_amd64.whl

Download URL ridal-0.12.0-cp313-cp313-win_amd64.whl
Size 10.5 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
cbc3cce7086e9c6cdd45c6b6a41e29f77b3f4bfde94d57f1c8916e81df3e6e0d
BLAKE2b-256 checksum
How to use checksums
5b13b7558f5e4da49e665b47f1d8cc47a30e994852d7734c274758b02b614372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp313-cp313-manylinux_2_39_x86_64.whl

Download URL ridal-0.12.0-cp313-cp313-manylinux_2_39_x86_64.whl
Size 9.7 MB
Tags CPython 3.13 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
69dd7183e833e4f89881fed585ac78c41650b5c637cb88c33b5a27e481cabf42
BLAKE2b-256 checksum
How to use checksums
e81d761c98a93b9b42e538b284cc0ff0de8880302617d2e2d34baac5ee26b28d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL ridal-0.12.0-cp313-cp313-macosx_11_0_arm64.whl
Size 9.1 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c15dc4e31d13df64faacd920c4edcb268ddb3d4da8fa619db97c568a16bc073d
BLAKE2b-256 checksum
How to use checksums
91a1bd50b3d8b9c744629b4fe4414d76d07bc5bf51a50c80430b8b24f2a2a0d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp312-cp312-win_amd64.whl

Download URL ridal-0.12.0-cp312-cp312-win_amd64.whl
Size 10.5 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
03eb553b2cc616c4c189c876e0e4c23e274f6ba2a3de0cf7dbe0b1e30978f5c9
BLAKE2b-256 checksum
How to use checksums
b16689b2a8e84dbb3b18d95692d63b97e3a615222afc17a025eb211eceb44ed1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL ridal-0.12.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 9.7 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
66aef70fdc03397f0a2975c56e63380a5e2a6c8f0b4bd58281900d81c6781213
BLAKE2b-256 checksum
How to use checksums
7b0fb4b46cb71425b8015aacbf50265217b50d280dd858d2fcd94664dfb7d96f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL ridal-0.12.0-cp312-cp312-macosx_11_0_arm64.whl
Size 9.1 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
045ee42d542e5589dfbc21b1460be511c26deb24051ea613473f976ffd2385df
BLAKE2b-256 checksum
How to use checksums
d1f24dad028ee1ff880a7edc426c76f2868d396e0a6193294fb326a29c5cf60a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp311-cp311-win_amd64.whl

Download URL ridal-0.12.0-cp311-cp311-win_amd64.whl
Size 10.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
b7fd0086b27a263407a48c2afe31668730992e5a2df33849b23ca339638e67f8
BLAKE2b-256 checksum
How to use checksums
a55cca53dc20aa62a95c83a0eb308ec0627c091457ffd583ab025af2f0c5fcbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL ridal-0.12.0-cp311-cp311-manylinux_2_39_x86_64.whl
Size 9.7 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
a51ffd13be9ac7416b31d46934be0e05117a5962d998b8a014e20fb9634186c3
BLAKE2b-256 checksum
How to use checksums
5306e7c2b7ea285be29579b2e5a53a874e7763a5ea5377ee547b516d73d46c61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ridal-0.12.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL ridal-0.12.0-cp311-cp311-macosx_11_0_arm64.whl
Size 8.7 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c9ca9d1ee1f21ee107e039791979841ddfbd9d00f0686f8171f47e399d76833b
BLAKE2b-256 checksum
How to use checksums
49752fabea7dc82d39ef651d2e10f1231a49de1e77cdb00c807f6a0f879ae2f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ridal 0.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page