Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nfcd/mapsTo3DModels

Repository files navigation

3D models from geological maps

Welcome. In this repository you will find a group of geologic maps that we have converted into 3D geological models using the geo-modelling tool GemPy (https://www.gempy.org).

NOTE: Please update to the latest version. On August 15/2025, I updated the code to work with GemPy 3 and simplified it a lot.

3d_models

Clone the repository

The best way to work with the resource is to clone this repository. This saves all material to your local machine. It behaves almost like a copy.

  1. Open a terminal.
  2. Navigate to the folder where you would like to store the local copy of the repository. (cd <foldername>)
  3. Press the green button 'Code' on the right hand side and copy the path in the Clone section.
  4. Execute the terminal command git clone <fill in path here>.
  5. Now you can start working with the resource files. They are saved in the folder you chose in step 2.

Installation

In order to create the models from the geological maps, you will need to install the following libraries/programs in a new anaconda environment. This can be done in a terminal following the steps below. Please follow the suggested order since that guarantees compatibility between the libraries:

1. Create and activate a fresh environment

conda create -n geomaps python">=3.10"

conda activate geomaps

2. Install Jupyter

conda install -c conda-forge jupyter

3. Install GEMGIS

conda install -c conda-forge geopandas">=0.13.2" rasterio">=1.3.8"

conda install -c conda-forge pyvista">=0.42.1"

conda install -c conda-forge gemgis

5. Install GemPy

pip install "gempy[opt]"

6. Install other dependencies

pip install fiona

pip install subsurface

Check the installation

Launch Jupyter Lab

jupyter lab

Create a new notebook and in a code cell write these lines:

import rasterio

import geopandas as gpd

import gempy as gp

import gempy_viewer as gpv

import gemgis as gg

Run the cell

There shouldn't be any errors.

Contact

If any questions, please contact me at [email protected]

Last updated: August 15/2025

About

Geologic maps to 3D models using GemPy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published