airtools

Python port of Matlab AIRtools and ReguTools regularization toolbox


Keywords
regularization, geoscience, log-entropy-regularization, maximum-entropy-regularization, python
License
BSD-3-Clause
Install
pip install airtools==1.2.0

Documentation

Actions Status

PyPi versions PyPi Download stats

AIRtools

Limited subset of P.C. Hansen and J. S. Jørgensen AIRtools 1.0 Matlab suite of inversion / regularization tools, along with some ReguTools functions. Also includes linear constrained least squares solver using cvxopt in lsqlin.py

More function are available in Matlab from AIRtools 2.

Install

python -m pip install -e .

Usage

Just paste the code from each test into your console for the function you're interested in. Would you like to submit a pull request for an inversion example making a cool plot?

  • picard.py: Picard Plot
  • kaczmarz.py Kaczmarz ART
  • maxent.py: Maximum Entropy Regularization (from ReguTools)
  • rzr.py: remove unused or little used rows from tomographic projection matrix
  • lsqlin.py: linear constrained least squares solver
  • matlab/logmart.m: Implementation of log-MART
  • fortran/logmart.f90: log-MART in Fortran

Examples

tests/test_all.py

Tests

Run a comparison of the Python code with the Matlab code in the matlab directory by:

python airtools/tests/test_octave.py

which runs the Matlab version via Oct2Py.