Skip to content
Skill

mtpy

by SteadfastAsArt

AI Summary

mtpy enables geophysicists to process and model magnetotelluric data by reading EDI files, analyzing impedance tensors, and performing inversions for subsurface resistivity mapping. Essential for electromagnetic geophysics researchers and exploration professionals.

Install

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

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

Please run this command in my terminal:
# Install skill into the correct directory (4 files)
mkdir -p .claude/skills/mtpy && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/mtpy/SKILL.md "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/mtpy/SKILL.md" && mkdir -p .claude/skills/mtpy/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/mtpy/references/edi_format.md "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/mtpy/references/edi_format.md" && mkdir -p .claude/skills/mtpy/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/mtpy/references/plotting.md "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/mtpy/references/plotting.md" && mkdir -p .claude/skills/mtpy/scripts && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/mtpy/scripts/mt_analysis.py "https://raw.githubusercontent.com/SteadfastAsArt/geoscience-skills/main/mtpy/scripts/mt_analysis.py"

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

Description

Magnetotelluric data processing and modelling. Read EDI files, analyze MT responses, perform inversions, and visualize resistivity models. Use when Claude needs to: (1) Read/write EDI files, (2) Process MT impedance tensors, (3) Analyze phase tensors and dimensionality, (4) Plot apparent resistivity and phase curves, (5) Create pseudosections, (6) Perform strike analysis, (7) Run 1D inversions, (8) Prepare data for 2D/3D modelling.

Quick Reference

`python from mtpy import MT, MTCollection

Read single station

mt = MT('station001.edi')

Access data

Z = mt.Z # Complex impedance tensor freq = mt.frequency # Frequency array rho_xy = mt.apparent_resistivity[:, 0, 1] # Apparent resistivity

Station info

print(mt.station, mt.latitude, mt.longitude)

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