Skip to content

GSLIB fortran code wrapped into python

License

Notifications You must be signed in to change notification settings

CcgAlberta/pygslib

 
 

Repository files navigation

PyGSLIB

Version: '0.0.0.7.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. (will be removed)
  • plothtml To plot with bokeh (will be changed to matplotlib)
  • charttable To plot pandas dataframe tables formatted

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

The easiest way to install and work with PyGSLIB is by 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 updated 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.

Monday, 09 of November 2021

About

GSLIB fortran code wrapped into python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 95.7%
  • Fortran 2.1%
  • Cython 1.4%
  • Python 0.8%
  • R 0.0%
  • Shell 0.0%