Skip to main content

Python Geophysical Modelling and Interpretation

Project description

PyGMI stands for Python Geophysical 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

The PyGMI Wiki pages, include installation and full usage!

The latest release version can be found here.

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


PyGMI will run on both Windows and Linux. It should be noted that the main development is done in Python 3.5 on Windows.

PyGMI is developed and has been tested with the following libraries in order to function:

  • Python 3.5.2
  • NumPy 1.11.1
  • SciPy 0.18.0
  • Matplotlib 1.5.2
  • six 1.10.0 (used by Matplotlib, should be installed automatically)
  • pytz 2016.6.1 (used by Matplotlib, should be installed automatically)
  • python-dateutil 2.5.3 (used by Matplotlib, should be installed automatically)
  • pyparsing 2.1.8 (used by Matplotlib, should be installed automatically)
  • cycler 0.10.0 (used by Matplotlib, should be installed automatically)
  • PyQt 4.11.4
  • GDAL 2.0.3
  • numexpr 2.6.1
  • numba 0.27.0
  • llvmlite 0.12.1
  • PyOpenGL 3.1.1
  • pip 8.1.2

Windows Users

You may need to install some dependencies using downloaded binaries, because of compilation requirements. Therefore, if you do get an error, you can try installing precompiled binaries before installing PyGMI.

Examples of binaries you may need to get are:

  • numexpr
  • numba
  • llvmlite
  • GDAL

They can be obtained from the website by Christoph Gohlke.

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


Linux normally comes with python installed, but the additional libraries will still need to be installed. One convenient option is to install the above libraries through Anaconda Python.


Anaconda does not find pyqt4 on its system even if it is there already. To install pygmi on anaconda, download the zip file manually, edit the file, and replace the install_requires switch with the following:

install_requires=[“numpy”, “scipy”, “matplotlib”, “gdal”, “numexpr”, “numba”, “Pillow”, “PyOpenGL”],

As you can see, all we have done is removed PyQt4 from the requirements. You will need to make sure it is a part of your conda installation though. From this point the regular command will install pygmi:

python install

Note that you can simply install Anaconda use its ‘conda install’ command to satisfy dependencies. For example:

conda install gdal

conda install krb5

Make sure that krb5 is installed, or gdal will not work.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygmi, version 2.2.14
Filename, size File type Python version Upload date Hashes
Filename, size pygmi-2.2.14-py3-none-any.whl (509.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size (525.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page