MapsTo3DModels
Geologic maps to 3D models using GemPy
Install / Use
/learn @nfcd/MapsTo3DModelsREADME
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.

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.
- Open a terminal.
- Navigate to the folder where you would like to store the local copy of the repository. (
cd <foldername>) - Press the green button 'Code' on the right hand side and copy the path in the Clone section.
- Execute the terminal command
git clone <fill in path here>. - 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 nestor.cardozo@uis.no
Last updated: August 15/2025
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
