Skip to content
Skill

gempy

by SteadfastAsArt

AI Summary

GemPy enables AI coding assistants to build 3D geological models with faults, folds, and unconformities from surface data, benefiting geoscientists, researchers, and engineers working on subsurface analysis and visualization.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "gempy" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory (6 files)
mkdir -p .claude/skills/gempy && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/gempy/SKILL.md "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/gempy/SKILL.md" && mkdir -p .claude/skills/gempy/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/gempy/references/data_requirements.md "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/gempy/references/data_requirements.md" && mkdir -p .claude/skills/gempy/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/gempy/references/structural_relations.md "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/gempy/references/structural_relations.md" && mkdir -p .claude/skills/gempy/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/gempy/references/troubleshooting.md "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/gempy/references/troubleshooting.md" && mkdir -p .claude/skills/gempy/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/gempy/scripts/export_model.py "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/gempy/scripts/export_model.py" && mkdir -p .claude/skills/gempy/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/gempy/scripts/validate_input.py "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/gempy/scripts/validate_input.py"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

3D structural geological modeling using implicit methods. Create geological models with faults, folds, and unconformities from surface points and orientations. Use when Claude needs to: (1) Build 3D geological models from surface contacts and orientations, (2) Model faults, unconformities, or intrusions, (3) Compute and visualize subsurface geology, (4) Export models to VTK or numpy arrays, (5) Generate gravity forward models, (6) Create cross-sections or 3D visualizations.

Quick Reference

`python import gempy as gp

Create model

geo_model = gp.create_geomodel( project_name='Model', extent=[0, 1000, 0, 1000, 0, 500], # [xmin, xmax, ymin, ymax, zmin, zmax] resolution=[50, 50, 25] )

Add surface points and orientations

gp.add_surface_points(geo_model, x=[100, 500, 900], y=[500, 500, 500], z=[400, 350, 400], surface='TopFormation') gp.add_orientations(geo_model, x=[500], y=[500], z=[375], pole_vector=[0, 0, 1], surface='TopFormation')

Compute and visualize

gp.set_interpolator(geo_model) sol = gp.compute_model(geo_model) gp.plot_2d(geo_model, cell_number=[25], direction='y') `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
AdoptionUnder 100 stars
12 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars12
Forks1
Issues0
Updated2mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code
Cursor
Copilot