MTpy: A Python Toolbox for Magnetotelluric (MT) Data Processing, Analysis, Modelling and Visualization
A Python Toolbox for Magnetotelluric (MT) Data Processing, Analysis, Modelling and Visualization
Documentation: http://mtpy2.readthedocs.io/en/develop/master_doc.html (Static http://mtgeophysics.github.io/mtpy)
Home Page: https://github.com/MTgeophysics/mtpy
Issue tracking: https://github.com/MTgeophysics/mtpy/issues
Note that this repository has superseded the geophysics/mtpy and GeoscienceAustralia/mtpy2
- Software
- Python 2.7+ or Python 3.5+
Obtain the source code from https://github.com/MTgeophysics/mtpy:
git clone https://github.com/MTgeophysics/mtpy.git
Install Python dependencies. And
cd mtpypip install -v --user -e .(user's own home ~/.local/lib/python2.7/site-packages/mtpy.egg-link)OR
pip install -v -e .(into python lib's dir site-packages, write-permission required)OR `` export PYTHONPATH=/your_path2/mtpy2:$PYTHONPATH `` (each session)
OR
python setup.py develop --userTo verify the install :
pip list | grep mtpyTo uninstall the package:
pip uninstall -v mtpyRun unit tests + PyLint
./check-code.sh(this script is run by Travis. You can alternatively run
py.testat commandline)
- Run further functional tests
See examples:tests/testcases.sh
MTpy is licensed under the GPL version 3
The license agreement is contained in the repository and should be kept together with the code.
- MTpy uses E- and B-fields (although the sensors may be confusingly named as H-sensors in EDI files)
- [E] = microvolts/meter (muV/m)
- [B] = nanotesla (nT)
- [Z] = [E]/[B] = km/s
- Apparent resistivty rho = 0.2 * T * |Z|^2 (in Ohm m)
- Angles are given in degrees (mod 360)
- EDI files can contain data in Z- or rho/phi-form
- EDI files contain data from one station only
- Coordinates are handled in decimal degrees (converted when reading)
- Time stamps refer to UTC
- Internal coordinates: X = North-South, Y = East-West
- Rotations are interpreted clockwise (mathematically negative)
- 0 degrees azimuth = North