steadfastasart/geoscience-skills/pygimli
Claude Code and agent skill by steadfastasart/geoscience-skills
- community
Checking that the SKILL.md file is still in the repository.
Multi-method geophysical modelling and inversion framework. Use when the agent needs to: (1) Perform electrical resistivity tomography (ERT) inversion, (2) Run seismic refraction tomography (SRT), (3) Model induced polarization (IP) data, (4) Simulate ground penetrating radar (GPR), (5) Create finite element meshes for geophysical problems, (6) Perform joint inversions of multiple datasets, (7) Forward model geophysical responses, (8) Analyze time-lapse monitoring data.
Install
npx vskill@latest install steadfastasart/geoscience-skills/pygimliSKILL.md
pyGIMLi - Geophysical Inversion
Quick Reference
Key Classes
| Class | Purpose | |
|---|---|---|
pg.Mesh | Finite element meshes | |
pg.DataContainer | Survey data and geometry | |
pg.Inversion | Base inversion framework | |
ert.ERTManager | ERT processing and inversion | |
srt.SRTManager | Seismic refraction inversion |
Essential Operations
Load and View ERT Data
ERT Inversion
Seismic Refraction
Create Custom Mesh
Save and Export
Array Types
| Code | Array | |
|---|---|---|
wa | Wenner-alpha | |
wb | Wenner-beta | |
dd | Dipole-dipole | |
pd | Pole-dipole | |
pp | Pole-pole | |
slm | Schlumberger | |
gr | Gradient |
Data Formats
| Format | Extension | Description | |
|---|---|---|---|
| BERT/pyGIMLi | .ohm | Unified data format | |
| Syscal | .txt | IRIS export | |
| Res2DInv | .dat | 2D inversion format | |
| ABEM | .ohm | ABEM Terrameter | |
| SRT | .sgt | Seismic traveltimes |
When to Use vs Alternatives
| Scenario | Recommendation | |
|---|---|---|
| Standard ERT inversion with common arrays | pyGIMLi - simplest API, built-in array types | |
| Seismic refraction tomography (SRT) | pyGIMLi - integrated SRT manager | |
| Multi-method inversion (DC, magnetics, gravity, EM) | SimPEG - broader method coverage | |
| Commercial ERT processing with reporting | Res2DInv - industry standard, GUI-based | |
| Custom forward operators or research flexibility | SimPEG - more modular design | |
| FEM-based geophysical modelling | pyGIMLi - native FEM mesh support |
Choose pyGIMLi when: You need near-surface geophysical inversion (ERT, SRT, IP) with minimal code. Its manager classes (ERTManager, SRTManager) handle the full workflow from data loading to inversion to visualization in a few lines.
Avoid pyGIMLi when: You need methods beyond near-surface (use SimPEG), or you require a commercial-grade reporting pipeline.
Common Workflows
ERT data inversion and visualization
- [ ] Load ERT data file with
ert.load("survey.ohm") - [ ] Inspect data: check measurement count with
data.size(), plot pseudosection - [ ] Remove outliers or bad data points
- [ ] Create
ERTManagerwith data - [ ] Run inversion:
mgr.invert(lam=20)(start with higher lambda) - [ ] Check chi-squared value (target ~ 1)
- [ ] Visualize result with
mgr.showResult() - [ ] Export mesh and model to VTK for ParaView:
mgr.mesh.exportVTK() - [ ] Adjust lambda and zWeight if needed, re-invert
Inversion Tips
- Start with higher lambda (50-100) and decrease
- Check data quality - remove outliers before inversion
- Use zWeight < 1 for layered structures
- Check coverage - low coverage = poorly resolved
- Chi-squared ~ 1 indicates good fit without overfitting
References
- [Geophysical Methods](references/methods.md) - Supported methods and workflows
- [Mesh Generation](references/mesh.md) - Mesh creation and quality control
Scripts
- [scripts/ert_inversion.py](scripts/ert_inversion.py) - Complete ERT inversion workflow
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpygimli/SKILL.md
Popularity
- Repository stars
- 70
- Repository forks
- 8
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/steadfastasart/geoscience-skills/pygimli)