Skip to main content

Invert4geom

3D geometric gravity inversions

Documentation Link

Invert4geom is a Python library for performing 3D geometric gravity inversions, where the aim is to recover the geometry of a density contrast.

Typical use cases include modeling the topography of the Moho, the sediment-basement contact, or bathymetry. These density contrasts are represented by a layer of either vertical right-rectangular prisms or tesseroids (spherical prisms).

See the overview for further description of this package and what it can be used for.

Binder link

Latest version on PyPI Latest version on conda-forge Test coverage status

Compatible Python versions. Zenodo DOI Documentation Status

SPEC 0 — Minimum Supported Dependencies

Disclaimer

🚨 **Ready for daily use but still changing.** 🚨

This means that we are still adding a lot of new features and sometimes we make changes to the ones we already have while we try to improve the software based on users' experience, test new ideas, make better design decisions, etc. Some of these changes could be backwards incompatible. Keep that in mind before you update Invert4Geom to a new major version (i.e. from v1.0.0 to v2.0.0) and always check the Changelog for BREAKING CHANGES and how to update your code appropriately.

I welcome any feedback, ideas, or contributions! Please contact us on the GitHub discussions page or submit an issue on GitHub for problems or feature ideas.

What Invert4Geom is for:

  • invert gravity data to recover the topography of a density contrast
  • invert gravity data to recover the spatially-variable density of a layer of known geometry
  • use with gridded gravity data
  • discretization using vertical right-rectangular prisms or tesseroids
  • performing regional-residual separation
  • stochastic uncertainty analysis of inversion results
  • basic visualization tools

What Invert4Geom is NOT for:

  • performing parameter-estimation inversions (i.e. recovering density values) -> see SimPEG or pyGIMLi
    • while we have a simple density inversion implementation this is just for a simple single-layer model and not a mesh.
  • a point-and-click GUI -> see Geosoft/Seequent Oasis Montaj or MiraGeoscience VPmg
  • a ready-to-use inversion with minimal user input
  • use with discrete (un-gridded) gravity data -> see Harmonica for gridding your data
  • for processing gravity data -> see Harmonica for gravity processing tools
  • publication-quality visualization -> see PyGMT for plotting tools

How to contribute

I welcome all forms of contribution! If you have any questions, comments or suggestions, please open a discussion or issue (feature request)!

Also, please feel free to share how you're using Invert4Geom, I'd love to know.

Please, read our Contributor Guide to learn how you can contribute to the project.

Metadata

Release files for invert4geom 2.0.1

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

Source distribution (sdist)

Source distribution for invert4geom 2.0.1
File Size Uploaded Provenance Actions
invert4geom-2.0.1.tar.gz 107.4 kB With provenance Details for invert4geom-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 220.2 kB

Release files / invert4geom-2.0.1.tar.gz

Download URL invert4geom-2.0.1.tar.gz
Size 107.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0c20f951b12e262b4218b9e0d14c88dc013f23f25e55c2564500d9f68f070ce6
BLAKE2b-256 checksum
How to use checksums
2294fb24da59db211f7ac3c077d992cd9071be75e2370f2e322d795f13a52212
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / invert4geom-2.0.1-py3-none-any.whl

Download URL invert4geom-2.0.1-py3-none-any.whl
Size 112.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d9cdee71e635e7f68cbea4887f422929771a41910696320572648b903b02836
BLAKE2b-256 checksum
How to use checksums
ee0f8f2c19bf62eb72c97ce147b3a72787ee4f51a1d26ffd7f5771b03b390b16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Security for invert4geom 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for invert4geom-2.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files Full provenance

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