Published March 1, 2023 | Version v0.6.0
Software Open

Harmonica v0.6.0: Forward modeling, inversion, and processing gravity and magnetic data

  • 1. CONICET, Argentina; Instituto de Geociencias Básicas, Aplicadas y Ambientales de Buenos Aires, Universidad de Buenos Aires, Argentina
  • 2. School of Earth Sciences, The University of Western Australia, Australia
  • 3. Observatório Nacional, Brazil
  • 4. CONICET, Argentina; Instituto Geofísico Sismológico Volponi, UNSJ, San Juan, Argentina
  • 5. MINES ParisTech
  • 6. Department of Earth, Ocean and Atmospheric Sciences, University of British Columbia
  • 7. Antarctic Research Centre, Victoria University of Wellington, New Zealand
  • 8. Department of Earth, Ocean and Ecological Sciences, School of Environmental Sciences,University of Liverpool, UK


Harmonica is a Python library for processing and modeling gravity and magnetic data. It includes common processing steps, like calculation of Bouguer and terrain corrections, reduction to the pole, upward continuation, equivalent layers, and more. There are forward modeling functions for basic geometric shapes, like spheres, prisms, polygonal prisms, and tesseroids. The inversion methods are implemented as classes with an interface inspired by scikit-learn (like Verde).


Source code:

Part of the Fatiando a Terra project.

Note: Authors are listed in alphabetical order by last name.


Files (558.6 kB)

Name Size Download all
558.6 kB Preview Download