pyMag2DPoly’s documentation

Overview

pyMag2DPoly is a Python package conceived for forward magnetic anomaly calculation due to two-dimensional polygonal bodies with uniform arbitrary polarization.

The formulations implemented in this package are that of Talwani & Heirtzler (1962, 1964), Won & Bevis (1987) and revised Kravchinsky et al. (2019).

If you use this code for research or else, please cite the related paper:

Alessandro Ghirotto, Andrea Zunino, Egidio Armadillo & Klaus Mosegaard (2021). Magnetic Anomalies Caused by 2D Polygonal Structures with Uniform Arbitrary Polarization: new insights from analytical/numerical comparison among available algorithm formulations. Geophysical Research Letters, 48 (7), e2020GL091732.

The specific procedures for each formulation, the analytical/numerical results derived from their comparison and the rectification made to Kravchinsky et al. (2019) algorithm are describde in detail in the paper above.

Installation

To download and install the package use “pip3” or “pip” in the following ways:

pip3 install Mag2DPoly

or locally, providing the path to the directory Mag2DPoly

pip3 install path/to/Mag2DPoly

or

pip3 install https://github.com/inverseproblem/pyMag2DPoly

Indices and tables