How mtgeophysics/mtpy works
MTpy is a scientific toolbox for processing, analyzing, modeling, and visualizing magnetotelluric data. A typical user workflow starts with station data in EDI or time-series formats, creates MT response representations, applies analysis or modeling, and inspects results through plots or GIS-oriented outputs. The repository also contains distinct acquisition-format readers, processing tools, and ModEM/Occam/Winglink/WS3D modeling capabilities. Some major subsystems are represented by directory-level nodes because their implementation files were not sampled; edges are limited to documented capabilities and source-index references.
Main entry points: mt.py MT station · ws3dinv.py WS3D inversion · plotnresponses.py Response plots · z.py Impedance and tipper
Components 22
Data and responses
- EDI files
mtpy/core/edi.py - MT station
mtpy/core/mt.py - Impedance and tipper
mtpy/core/z.py - Time series
mtpy/core/ts.py - Instrument readers
mtpy/usgs - Transfer functions
mtpy/processing/tf.py
Signal processing
- BIRRP processing
mtpy/processing/birrp.py - Filtering
mtpy/processing/filter.py
Scientific analysis
- Phase tensor
mtpy/analysis/pt.py - Geometry analysis
mtpy/analysis/geometry.py - Distortion analysis
mtpy/analysis/distortion.py - Static shift
mtpy/analysis/staticshift.py
Modeling
- ModEM modeling
mtpy/modeling/modem - Occam2D modeling
mtpy/modeling/occam2d.py - Winglink modeling
mtpy/modeling/winglink.py - WS3D inversion
mtpy/modeling/ws3dinv.py
Visualization
- Response plots
mtpy/imaging/plotnresponses.py - Phase tensor maps
mtpy/imaging/phase_tensor_maps.py - Depth slices
mtpy/imaging/plot_depth_slice.py
Shared utilities
- GIS transforms
mtpy/utils/gis_tools.py - Scientific calculations
mtpy/utils/calculator.py
Other components
- MT researcher
Connections 27
- MT researcher → EDI files: supplies data
- MT researcher → Time series: supplies data
- EDI files → MT station: loads station data
mtpy/core/mt.py - MT station → Impedance and tipper: holds responses
mtpy/core/mt.py - Impedance and tipper → Phase tensor: computes from Z
mtpy/analysis/pt.py - Phase tensor → Scientific calculations: uses calculations
mtpy/analysis/pt.py - Geometry analysis → Phase tensor: uses tensor analysis
mtpy/analysis/geometry.py - Distortion analysis → Geometry analysis: uses geometry
mtpy/analysis/distortion.py - Distortion analysis → Impedance and tipper: uses responses
mtpy/analysis/distortion.py - Instrument readers → Time series: reads recordings
mtpy/usgs/zen.py - Instrument readers → Response plots: plots responses
mtpy/usgs/zonge.py - Response plots → Phase tensor: uses analysis
mtpy/imaging/plotnresponses.py - Response plots → MT station: plots stations
mtpy/imaging/plotnresponses.py - WS3D inversion → MT station: uses station data
mtpy/modeling/ws3dinv.py - WS3D inversion → Impedance and tipper: uses responses
mtpy/modeling/ws3dinv.py - Occam2D modeling → Winglink modeling: uses layout
mtpy/modeling/occam2d.py - ModEM modeling → MT researcher: supports inversion
- Occam2D modeling → MT researcher: supports modeling
- Winglink modeling → MT researcher: supports modeling
- WS3D inversion → MT researcher: supports inversion
- MT researcher → BIRRP processing: processes recordings
- MT researcher → Filtering: processes signals
- MT researcher → Transfer functions: estimates functions
- MT researcher → Phase tensor maps: visualizes analysis
- MT researcher → Depth slices: visualizes models
- MT station → GIS transforms: converts coordinates
mtpy/core/mt.py - WS3D inversion → Response plots: uses plot tools
mtpy/modeling/ws3dinv.py