• October 17, 2018

Introduction to Resource Estimation with Python

Published on October 17th, 2018

CSA Global Resource Consultant, Adrian Martinez Vargas will present an interactive workshop on: “Introduction to Resource Estimation with Python” on 23 November, 2018, hosted by The Toronto Geological Discussion Group.

The workshop will cover the fundamentals of Python for resource estimation geologists hoping to gain new confidence in using the powerful Python programming language or a student looking to develop fundamental skills in resource estimation.

This training will provide an introduction to Python and other powerful Open Source software tools* for analysing geological data. Using these tools, Adrian will then dive into mineral resource estimation using Pygslib – a python module for mineral resource estimation and geostatistics!

During this 1-day practical workshop you will undertake key resource estimation tasks:

  • import drill hole exploration data,
  • create and display drill hole objects,
  • model a geological unit,
  • select samples within the geological model,
  • statistically analyse and process drill hole assay values,
  • generate a block model and code it with geology,
  • estimate block model values,
  • validate the estimation results,
  • and report the mineral resource estimate.


As an added bonus: Your resource estimation workflow will be recorded as an interactive Python script providing a complete record of the training exercise. For resource geologists this script has two valuable features: 1. It is auditable, allowing chosen parameters and assumption to be reviewed in future; and 2. It can be used to reproduce the estimate or update the estimate with new data.

In addition to learning the fundamentals of Python for mineral resource estimation, you will acquire useful Python skills that can be applied to a variety of other tasks. For example: working with common data and 3D model formats used in exploration and mining, accessing files that are too big for Excel to handle and visualizing geological data in 3D using Open Source software*.

We hope this training will spark an interest in Python, a tool that has an enormous number of applications in Geology ranging from mining to machine learning.

* Open source software will include: Jupyter Notebook, NumPy, Pandas, and ParaView.


Adrian Martinez

Adrian is both a geologist and a geostatistician. He produces open source software for geostatistics and mineral resources in Python, Fortran, Cython, C and SQL. He has worked as a consultant since 2002 covering many commodities including gold, copper, nickel, chromium, and industrial minerals.

Adrian has considerable experience using multiple indicator kriging for resource estimation of gold deposits with high nugget and domaining issues; with non-linear geostatistics and with conditional simulations for resource estimation and model validation.

Adrian has previously worked as an Assistant Professor in Cuba and Ethiopia, teaching geology and geostatistics.

How can we help?

Contact us to discuss how we can help your organisation.