PmagPy: An open source package for paleomagnetic data analysis#

PmagPy is a set of tools written in Python for the analysis of paleomagnetic data. It facilitates interpretation of demagnetization data, paleointensity data, and data from other types of rock magnetic experiments. The package is hosted on Github (PmagPy/PmagPy) and can be pip installed via PyPi (https://pypi.org/project/pmagpy/). PmagPy can be used to create a wide variety of useful plots. It is designed to work with the MagIC database (https://earthref.org/MagIC) and enables manipulation of downloaded MagIC data sets as well as preparation of new contributions for uploading to the MagIC database. Utilizing PmagPy within Jupyter notebooks enables fully documented and nicely illustrated data analysis.

Installation 🪴

Instructions for how to install PmagPy for your use case.

Documentation notebooks ✏️

See capabilities of PmagPy functions within these documentation Jupyter notebooks.

Example notebooks 📓

See example template notebooks that analyze datasets from the MagIC database using PmagPy.

Live notebooks 🚀

Launch PmagPy notebooks on the Earthref JupyterHub

GUIs 🎁

Download and use Pmag GUI to analyze data and prepare data for MagIC.

MagIC database ⚡

Develop new contributions and analyze existing datasets in the MagIC database.

PmagPy is comprised of:

  • Function modules for paleomagnetic data analysis These function modules enable paleomagnetic data analysis (pmagpy.pmag) and plotting (pmagpy.pmagplotlib) as well as interactive higher level data analysis (pmagpy.ipmag). The functions within these modules are at the heart of the GUI and command line programs. With pmagpy as part of your Python installation (which can be accomplished through pip installation pip install pmagpy), these modules can be imported (e.g. import pmagpy.ipmag as ipmag). These functions can be used within Jupyter Notebooks (see examples in the documentation notebooks) and are documented within the API Reference.

  • A graphical user interface (GUI) program The PmagPy application enables users to get data into the MagIC database format as well as analyze demagnetization and paleointensity data.

  • Command line programs The PmagPy command line programs enable all sorts of paleomagnetic data analysis and wrangling. They are contained within the programs folder of the PmagPy repository (PmagPy/PmagPy) and can be pip installed (pip install pmagpy-cli).

Citing PmagPy#

Users of PmagPy should cite the open access article [Tauxe et al., 2016]:

Tauxe, L., R. Shaar, L. Jonestrask, N. L. Swanson-Hysell, R. Minnett, A. A. P. Koppers, C. G. Constable, N. Jarboe, K. Gaastra, and L. Fairchild (2016), PmagPy: Software package for paleomagnetic data analysis and a bridge to the Magnetics Information Consortium (MagIC) Database, Geochem. Geophys. Geosyst., 17, doi:10.1002/2016GC006307.

Connect with us#

We are an open source community that welcomes discussion, feedback, and contributions of many kinds.

🌍 About our team

The code base for the PmagPy project has been built up over the years by Lisa Tauxe (@ltauxe; Professor Emerita at the Scripps Institution of Oceanography). Nick Swanson-Hysell (@swanson-hysell; Associate Professor at UC Berkeley), Lori Jonestrask (@moonshoes87), and Ron Shaar (@ronshaar, Senior Lecturer at the Hebrew University of Jerusalem) have made substantial contributions to the project as have others in the open community of contributors.

🙌 Contribute and raise issues

We welcome anyone to join us in improving PmagPy and helping one another learn as we conduct reproducible research in rock magnetism and paleomagnetism. You can do this be contributing code, improving documentation, or raising issues.

Check out our contributing guide.

Analyzed with PmagPy#

Below are just a few of the hundreds of papers that have conducted analysis with PmagPy. You can find more on Google Scholar.

Learn more about paleomagnetism 📖#

The online textbook Essentials of Paleomagnetism is a place to learn more about Earth’s geomagnetic field, rock magnetism, paleomagnetism, statistics associated with paleomagnetic data, and more. The problems within the book call upon the reader to use PmagPy functions.

Acknowledgements#

_images/NSF_logo.png

PmagPy has been developed in the context of research supported by grants from the National Science Foundation awarded to Lisa Tauxe and Nick Swanson-Hysell. Current development is supported by the National Science Foundation through its support for the MagIC database and PmagPy.