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.11.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.11.0
File Actions
ridal-0.11.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for ridal-0.11.0-cp314-cp314-win_amd64.whl
ridal-0.11.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.11.0-cp314-cp314-manylinux_2_39_x86_64.whl
ridal-0.11.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for ridal-0.11.0-cp314-cp314-macosx_11_0_arm64.whl
ridal-0.11.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for ridal-0.11.0-cp313-cp313-win_amd64.whl
ridal-0.11.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.11.0-cp313-cp313-manylinux_2_39_x86_64.whl
ridal-0.11.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for ridal-0.11.0-cp313-cp313-macosx_11_0_arm64.whl
ridal-0.11.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for ridal-0.11.0-cp312-cp312-win_amd64.whl
ridal-0.11.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.11.0-cp312-cp312-manylinux_2_39_x86_64.whl
ridal-0.11.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for ridal-0.11.0-cp312-cp312-macosx_11_0_arm64.whl
ridal-0.11.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for ridal-0.11.0-cp311-cp311-win_amd64.whl
ridal-0.11.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.11.0-cp311-cp311-manylinux_2_39_x86_64.whl
ridal-0.11.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for ridal-0.11.0-cp311-cp311-macosx_11_0_arm64.whl

Total release size: 114.5 MB

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

Download URL ridal-0.11.0-cp314-cp314-win_amd64.whl
Size 10.3 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
364b0c7a5edd1f0a54667bb7ad6a3a2818df6381950eaefb22a8894cd94bbe83
BLAKE2b-256 checksum
How to use checksums
48e2ad33227e32dca82b2faf815263aa2d4938bd152150c2c929cbadb620134b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp314-cp314-manylinux_2_39_x86_64.whl

Download URL ridal-0.11.0-cp314-cp314-manylinux_2_39_x86_64.whl
Size 9.5 MB
Tags CPython 3.14 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
6281e68df0fce39b39bd7490782239bba912955c1128e4ebed22c135b9f7d2c6
BLAKE2b-256 checksum
How to use checksums
daa918377bd939ad7f445e0b5e6eab9b1778c7bdd20848522217e292544ed7b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL ridal-0.11.0-cp314-cp314-macosx_11_0_arm64.whl
Size 8.9 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
92a92a33a25d9b45496b1bd9aa6d57e5c39d241191c605f760d5cdeefe258165
BLAKE2b-256 checksum
How to use checksums
f4bb26c69c20c88fd5a71afd3582d0266c212b98290766ae6730d937771da990
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp313-cp313-win_amd64.whl

Download URL ridal-0.11.0-cp313-cp313-win_amd64.whl
Size 10.3 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
28320f9844db45d0cf1bf74d035b9f6852631f915d392df3edd10f2fef77d143
BLAKE2b-256 checksum
How to use checksums
b3e6616213340d7bf9a4a38fc2cb90df6401f8ec64cb3e5df712759180dfb4e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp313-cp313-manylinux_2_39_x86_64.whl

Download URL ridal-0.11.0-cp313-cp313-manylinux_2_39_x86_64.whl
Size 9.5 MB
Tags CPython 3.13 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
c39d461e94990df6e6bdccb3860ba2ddc5649f80f0209a912dfc430468a8c63d
BLAKE2b-256 checksum
How to use checksums
eb7584c7a4183fdeffe856d60595b48c503b5cef96838f996e08c53147baae43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL ridal-0.11.0-cp313-cp313-macosx_11_0_arm64.whl
Size 8.9 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b39511973aec5d80ffcd71d4a0014ffcaf61db79a76a3a1b7d18b677fabb6568
BLAKE2b-256 checksum
How to use checksums
a15a59e6bd9d8540331a8a4efdb9274857900646b5c16ea609b1a85daf0f2476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp312-cp312-win_amd64.whl

Download URL ridal-0.11.0-cp312-cp312-win_amd64.whl
Size 10.3 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
01c1c0063ebe386ff0fdca4ce6a0c1586df0136c3f5fa21708023176ae4d584d
BLAKE2b-256 checksum
How to use checksums
59b6309234243df2a63da244853e3d857480fb6619dada18942c393eac9548b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL ridal-0.11.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 9.5 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
e65cfcd0c90328af6585abd2ab36728a29f02a5901288e682b1966b64192a130
BLAKE2b-256 checksum
How to use checksums
fda4bc9826951defd026f34fbc5a733ccc001871752daa66e5050991cb4e9e45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL ridal-0.11.0-cp312-cp312-macosx_11_0_arm64.whl
Size 8.9 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a026dc502ba628bc01f5f0e8fbc0cde4c87b3063aeda4a4fc74111ab2e6d30a2
BLAKE2b-256 checksum
How to use checksums
a0a087b96b471a91b09d5ecc9a3aca8d5836a3c2319f284f252634355d9a869f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp311-cp311-win_amd64.whl

Download URL ridal-0.11.0-cp311-cp311-win_amd64.whl
Size 10.3 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
d44095bbaf881aee2705283ceaf60547a4b285ed740a837328a0a01b5d1e7709
BLAKE2b-256 checksum
How to use checksums
08b22fde5ad60f374da028207c631a94ec9bd5af8a4a43d355ed1dffa5a7d12e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL ridal-0.11.0-cp311-cp311-manylinux_2_39_x86_64.whl
Size 9.5 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
07a9b27d0bc2fb727110fc91c61bd2788892387ca4f15f2e461d0fec8dd106c5
BLAKE2b-256 checksum
How to use checksums
9387b6060aa123d5d72eb64787380e71c302b2d1a1cc94c52588e9b98d57788c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL ridal-0.11.0-cp311-cp311-macosx_11_0_arm64.whl
Size 8.9 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d124df97ce385813e24da9946c56e8ab0fbc306d77e64d032d605f57019c7713
BLAKE2b-256 checksum
How to use checksums
5196eca8cabeeb0e4cd2103203b92d7ab7960c82258cc53e2bb21cc8f1e24967
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.11.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