Welcome to the PyGMI website! It contains more information, including API documentation for the project.

December 6, 2019: PyGMI 3.0.1 is now released.

This is the next release of PyGMI. It contains various bug fixes and introduces new menus for processing of geophysical data. This includes the amazing mtpy library for MT processing, as well as segyio for reading SEG-Y data to view. This is the start of (hopefully) something big in terms of expanding the geoscience capabilities of PyGMI.

PyGMI is being developed using python 3.7 and Qt5.

If there are requests or concerns, please contact me.


PyGMI stands for Python Geoscience Modelling and Interpretation. It is a modelling and interpretation suite aimed at magnetic, gravity and other datasets.

PyGMI is developed at the Council for Geoscience (Geological Survey of South Africa).

It includes:

  • Magnetic and Gravity 3D forward modelling

  • Cluster Analysis

  • Routines for cutting, reprojecting and doing simple modifications to data

  • Convenient display of data using pseudo-color, ternary and sunshaded representation.

  • It is released under the Gnu General Public License version 3.0

View the PyGMI project on GitHub!

The latest release version (including windows installers) can be found here.

You may need to install the Microsoft Visual C++ 2015 Redistributable.

If you have any comments or queries, you can contact the author either through GitHub or via email at


Note that these videos were for version 2 of PyGMI, but will still be instructive for version 3.

Introduction mp4

Raster Context Menus mp4

Raster Equation Editor mp4

Raster Smoothing mp4

Raster Normalisation mp4

Raster Gradients, Visibility and Tilt mp4

Raster Reduction to the Pole and IGRF mp4

Raster Data Interpretation mp4

Raster Merge, Resampling and Reprojection mp4

3D Modelling mp4

Vectors, Rose Diagrams and Gridding mp4

Indices and tables