Skip to content

GSLIB fortran code wrapped into python

License

Notifications You must be signed in to change notification settings

kdal108/pygslib

 
 

Repository files navigation

PyGSLIB

Version: '0.0.0.4.0.0'
Documentation: https://opengeostat.github.io/pygslib/
Wiki: https://github.com/opengeostat/pygslib/wiki
Source code: https://github.com/opengeostat/pygslib
Videos: https://www.youtube.com/c/opengeostat

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] (http://www.statios.com/Quick/gslib.html) 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 pygslib -c opengeostat -c conda-forge

Installation from source (from github.com)

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 https://github.com/opengeostat/pygslib.git
$ cd pygslib
$ python setup.py build
$ python setup.py install

Usage

See this [tutorial] (https://opengeostat.github.io/pygslib/Tutorial.html). There is also a video demonstration that uses
an older version of pygslib.

License

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

About

GSLIB fortran code wrapped into python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 93.0%
  • Python 3.6%
  • Fortran 3.4%