Skip to main content
Harmonica

Processing and modelling gravity and magnetic data

Documentation (latest) • Documentation (main branch) • Contributing • Contact

Part of the Fatiando a Terra project

Latest version on PyPI Latest version on conda-forge Test coverage status Compatible Python versions. Digital Object Identifier for the Zenodo archive

About

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 sources, and more. There are forward modeling functions for basic geometric shapes, like point sources, prisms and tesseroids. The inversion methods are implemented as classes with an interface inspired by scikit-learn (like Verde).

Project goals

These are the long-term goals for Harmonica:

  • Efficient, well designed, and fully tested code for gravity and magnetic data.
  • Cover the entire data life-cycle: from raw data to 3D Earth model.
  • Focus on best-practices to discourage misuse of methods, particularly inversion.
  • Easily extended code to enable research on the development of new methods.

See the GitHub milestones for short-term goals.

Things that will not be covered in Harmonica:

  • Multi-physics partial differential equation solvers. Use SimPEG or PyGIMLi instead.
  • Generic grid processing methods (like horizontal derivatives and FFT). We'll rely on Verde, xrft and xarray for those.
  • Data visualization.
  • GUI applications.

Project status

🚨 Harmonica is in early stages of design and implementation. 🚨

We welcome any feedback and ideas! Let us know by submitting issues on GitHub or joining our community.

Getting involved

🗨️ Contact us: Find out more about how to reach us at fatiando.org/contact.

👩🏾‍💻 Contributing to project development: Please read our Contributing Guide to see how you can help and give feedback.

🧑🏾‍🤝‍🧑🏼 Code of conduct: This project is released with a Code of Conduct. By participating in this project you agree to abide by its terms.

Imposter syndrome disclaimer: We want your help. No, really. There may be a little voice inside your head that is telling you that you're not ready, that you aren't skilled enough to contribute. We assure you that the little voice in your head is wrong. Most importantly, there are many valuable ways to contribute besides writing code.

This disclaimer was adapted from the MetPy project.

License

This is free software: you can redistribute it and/or modify it under the terms of the BSD 3-clause License. A copy of this license is provided in LICENSE.txt.

Metadata

Release files for harmonica 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for harmonica 0.7.0
File Size Uploaded
harmonica-0.7.0.tar.gz 359.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for harmonica 0.7.0
File Interpreter ABI Platform
harmonica-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 750.2 kB

Release files / harmonica-0.7.0.tar.gz

Download URL harmonica-0.7.0.tar.gz
Size 359.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a4f889b121778479a87d94e481c423e51dd4355593fbab497ad357c0c7fa219a
BLAKE2b-256 checksum
How to use checksums
160d9c53041e16dc8bd03d8124aaa7dda4ab0cf4c7a1434c5ab76b576252b14a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / harmonica-0.7.0-py3-none-any.whl

Download URL harmonica-0.7.0-py3-none-any.whl
Size 390.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb100227d04ad559fe4912b052e41fa3b8cd5bec72eb1920cb0239608b404abe
BLAKE2b-256 checksum
How to use checksums
2c9aa0fa0f781a898535f0ef7568ac61ef0af747c83bc1080941631e919ec053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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