{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## PmagPy Online: Jupyter Notebooks, the PmagPy Software Package and the Magnetics Information Consortium (MagIC) Database\n", "\n", "Lisa Tauxe$^1$, Rupert Minnett$^2$, Nick Jarboe$^1$, Catherine Constable$^1$, Anthony Koppers$^2$, Lori Jonestrask$^1$, Nick Swanson-Hysell$^3$\n", "\n", "$^1$Scripps Institution of Oceanography, United States of America; $^2$ Oregon State University; $^3$ University of California, Berkely; ltauxe@ucsd.edu\n", "\n", "The Magnetics Information Consortium (MagIC), hosted at http://earthref.org/MagIC is a database that serves as a Findable, Accessible, Interoperable, Reusable (FAIR) archive for paleomagnetic and rock magnetic data. It has a flexible, comprehensive data model that can accomodate most kinds of paleomagnetic data. The **PmagPy** software package is a cross-platform and open-source set of tools written in Python for the analysis of paleomagnetic data that serves as one interface to MagIC, accommodating various levels of user expertise. It is available through github.com/PmagPy. Because PmagPy requires installation of Python, several non-standard Python modules, and the PmagPy software package, there is a speed bump for many practitioners on beginning to use the software. In order to make the software and MagIC more accessible to the broad spectrum of scientists interested in paleo and rock magnetism, we have prepared a set of Jupyter notebooks, hosted on [jupyterhub.earthref.org](https://jupyterhub.earthref.org) which serve a set of purposes. 1) There is a complete course in Python for Earth Scientists, 2) a set of notebooks that introduce PmagPy (pulling the software package from the github repository) and illustrate how it can be used to create data products and figures for typical papers, and 3) show how to prepare data from the laboratory to upload into the MagIC database. The latter will satisfy expectations from NSF for data archiving and for example the AGU publication data archiving requirements.\n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Getting started\n", "\n", "- To use the PmagPy notebooks online, go to website at [https://jupyterhub.earthref.org/](https://jupyterhub.earthref.org/). Create an Earthref account using your ORCID and log on. \\[This allows you to keep files in a private work space.\\]\n", "- Open the PmagPy Online - Setup notebook and execute the two cells. Then click on File = > Open and click on the PmagPy_Online folder. Open the PmagPy_online notebook and work through the examples. There are other notebooks that are useful for the working paleomagnetist.\n", "- Alternatively, you can install Python and the PmagPy software package on your computer (see [https://earthref.org/PmagPy/cookbook](https://earthref.org/PmagPy/cookbook) for instructions). Follow the instructions for \"Full PmagPy install and update\" through section 1.4 (Quickstart with PmagPy notebooks). This notebook is in the collection of PmagPy notebooks. \n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Overview of MagIC\n", "\n", " \n", "The Magnetics Information Consortium (MagIC), hosted at http://earthref.org/MagIC is a database that serves as a Findable, Accessible, Interoperable, Reusable (FAIR) archive for paleomagnetic and rock magnetic data. Its datamodel is fully described here: [https://www2.earthref.org/MagIC/data-models/3.0](https://www2.earthref.org/MagIC/data-models/3.0). Each contribution is associated with a publication via the DOI. There are nine data tables:\n", "\n", "- contribution: metadata of the associated publication.\n", "- locations: metadata for locations, which are groups of sites (e.g., stratigraphic section, region, etc.)\n", "- sites: metadata and derived data at the site level (units with a common expectation)\n", "- samples: metadata and derived data at the sample level.\n", "- specimens: metadata and derived data at the specimen level.\n", "- criteria: criteria by which data are deemed acceptable\n", "- ages: ages and metadata for sites/samples/specimens\n", "- images: associated images and plots. \n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Overview of PmagPy\n", "\n", "The functionality of **PmagPy** is demonstrated within notebooks in the **PmagPy** repository:\n", "\n", "- PmagPy_online.ipynb: serves as an introdution to PmagPy and MagIC (this conference). It highlights the link between **PmagPy** and the Findable Accessible Interoperable Reusabe (FAIR) database maintained by the Magnetics Information Consortium (MagIC) at [https://earthref.org/MagIC](https://eathref.org/MagIC). \n", "\n", "Other notebooks of interest are: \n", "\n", "- PmagPy_calculations.ipynb: demonstrates many of the PmagPy calculation functions such as those that rotate directions, return statistical parameters, and simulate data from specified distributions. \n", "- PmagPy_plots_analysis.ipynb: demonstrates PmagPy functions that can be used to visual data as well as those that conduct statistical tests that have associated visualizations.\n", "- PmagPy_MagIC.ipynb: demonstrates how PmagPy can be used to read and write data to and from the MagIC database format including conversion from many individual lab measurement file formats.\n", "\n", "Please see also our YouTube channel with more presentations from the 2020 MagIC workshop here: \n", "[https://www.youtube.com/playlist?list=PLirL2unikKCgUkHQ3m8nT29tMCJNBj4kj](https://www.youtube.com/playlist?list=PLirL2unikKCgUkHQ3m8nT29tMCJNBj4kj)\n", "\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.7" } }, "nbformat": 4, "nbformat_minor": 2 }