GSLIB fortran code wrapped into python
Switch branches/tags
Nothing to show
Clone or download
Adrian Martinez Adrian Martinez
Adrian Martinez and Adrian Martinez minor changes
Latest commit dfba7a2 Nov 9, 2018
Failed to load latest commit information.
cython_code minor changes Nov 9, 2018
doc minor updates Aug 24, 2018
docs minor updates Aug 24, 2018
for_code testing new variogram interface Oct 29, 2018
pygslib minor changes Nov 9, 2018
pygslib_conda testing new variogram interface Oct 29, 2018
sandbox minor changes Nov 9, 2018
tests implemmenting unit testing Aug 22, 2018
.gitignore *** Aug 22, 2018
CHANGELOG.txt TODO to fix bug in kriging program added Sep 25, 2016
LICENSE.txt TODO to fix bug in kriging program added Sep 25, 2016 minor changes Aug 16, 2018
setup.cfg function to interpolate surface added Sep 22, 2018


Version: ''
Source code:

This is an open source python module for mineral resource estimation and geostatistics. It consists of:

  • gslib. This is for geostatistics and interpolation. It was built with [GSLIB Fortran 77 code] ( enhanced and wrapped to Python with f2py.
  • drillhole. This is for basic drillhole operations, such as compositing and desurveying.
  • blockmodel. This is for block modelling, it has functions to fill wireframes with blocks, reblocking, among others.
  • vtktools. This is for 3D computational geometry based on VTK, for example, to select samples within wireframes. It also handles VTK files.
  • nonlinear. This module is under construction! It is an experimental module for nonlinear geostatistics based on the Discrete Gaussian Model.
  • sandbox Here we put general code and testing code.

Installation in Anaconda/Miniconda distributions (Linux, Window and OS)

The easiest way to install and work with PyGSLIB is using Anaconda or Miniconda (conda) distributions. To install PyGSLIB in the root environment of your anaconda distribution simply type in a terminal:

$ conda install -c opengeostat pygslib

Installation from source (from

This is the most update but unstable development version. You may manually install all the dependencies and make sure you have gfortran available.

Windows users may read this wiki first. It explains how to prepare the development environment (compilers and dependencies).

$ git clone
$ cd pygslib
$ python build
$ python install


See this [tutorial] ( There is also a video demonstration that uses
an older version of pygslib.


Copyright 2018, Adrian Martinez Vargas

This software may be modified and distributed under the terms of the MIT and GPL licenses.

Sunday, 19 of August 2018