Skip to main content

Scripts for impulse radar

Project description

ImpDAR: an impulse radar processor

DOI Tests codecov

ImpDAR is a suite of processing and interpretation tools for impulse radar (targeted for ice-penetrating radar applications but usable for ground-penetrating radar as well). The core processing steps and general terminology come from of the St. Olaf Deep Radar processor, but everything is re-written in python and significant improvements to speed, readability, documentation, and interface have been made across the board. However, this code has a lot of history of contributors--acknowledgment of many of them are preserved in the file headers.

ImpDAR is intended to be more flexible than other available options. Support is gradually being added for a variety of file formats. Currently, GSSI, PulseEKKO, Ramac, Blue Systems, DELORES, SEGY, gprMAX, Gecko, and legacy StoDeep files are supported. ImpDAR can also read in MCoRDS files, though these are already processed so this would just be for tracing. Available processing steps include various filtering operations, trivial modifications such as restacking, cropping, or reversing data, and a few different geolocation-related operations like interpolating to constant trace spacing.

The primary interface to ImpDAR is through the command line, which allows efficient processing of large volumes of data. An API, centered around the RadarData class, is also available to allow the user to use ImpDAR in other programs.

In addition to processing, ImpDAR can also be used for interpreting the radargrams (i.e. picking layers). Picking is generally an interactive process, and there is a GUI for doing the picking; the GUI requires PyQt5, which may be annoying as a source build but is easy to install with Anaconda. The GUI also allows for basic processing steps, with the updates happening to the plot in real time. However, we have not added an 'undo' button to the GUI, so you are stuck with going back to your last saved version if you do not like the interactive results.

Documentation

Documentation of the various processing steps is here. There are examples of basic processing and plotting, and a longer example showing migration.

Installation

Easiest is pip install impdar. Some explanation of other options is available in the main documentation, but PyPi will be updated with each release.

Dependencies

Required

Python 3 The package is tested on Python 3.7 to 3.10. It is probably best to upgrade ot one of those versions, but 3.6 is likely to work though not tested while older versions are unlikely to work. 3.11 should be fine on the ImpDAR side, though you may issues with finding prebuilt binaries for some dependencies.

You also need: numpy, scipy, matplotlib, SegYIO for SEGY support and for SeisUnix migration, and h5py is needed for some data formats.

I recommend just using Anaconda for your install, since it will also get you PyQt and therefore enable the GUI.

Recommended

GDAL is needed to reproject out of WGS84, and thus for proper distance measurement. Otherwise, distance calculations re going to moderately or severely incorrect.

PyQt5 is needed to run the GUI, which is needed for picking. You can do everything from the command line, and plot the results with matplotlib, without PyQt5.

Depending on whether you need migration routines, there may be some external dependencies. ImpDAR is designed to interface with SeisUnix, which contains a number of powerful migration routines. You need to install SeisUnix yourself and get it on your path. If you are running windows, you need to figure out how to use Cygwin as well. However, the pure python migration routines in ImpDAR can work quite well, so don't let the difficulty of installing these compiled routines stop you from using those. ImpDAR searches for SeisUnix at the time of the call to the migration routine, so you can always add this later if you find that you need it.

Contributing

Support for different radar data types has primarily been added as needed--contributions for data readers for other systems, whether commercial or custom, are always welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

impdar-1.1.8.post4.tar.gz (245.1 kB view hashes)

Uploaded Source

Built Distributions

impdar-1.1.8.post4-py3-none-any.whl (177.3 kB view hashes)

Uploaded Python 3

impdar-1.1.8.post4-cp310-cp310-macosx_12_0_x86_64.whl (236.2 kB view hashes)

Uploaded CPython 3.10 macOS 12.0+ x86-64

impdar-1.1.8.post4-cp39-cp39-macosx_12_0_x86_64.whl (236.2 kB view hashes)

Uploaded CPython 3.9 macOS 12.0+ x86-64

impdar-1.1.8.post4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (461.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

impdar-1.1.8.post4-cp38-cp38-macosx_12_0_x86_64.whl (234.7 kB view hashes)

Uploaded CPython 3.8 macOS 12.0+ x86-64

impdar-1.1.8.post4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (440.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page