Skip to content

Latest commit

 

History

History
133 lines (69 loc) · 10.1 KB

File metadata and controls

133 lines (69 loc) · 10.1 KB

PmagPy Demag GUI tutorial for the 2023 MagIC workshop

Prior to tutorial

Download the Pmag_GUI executable program

Download the latest release of the PmagPy GUI software:

Mac: https://github.com/PmagPy/PmagPy-Standalone-OSX/releases/latest

The first time you open the Mac version, you need to right-click and select open. You may need to right-click and select open twice. Double-clicking will not open as we are not Apple-verified developers.

Windows: https://github.com/PmagPy/PmagPy-Standalone-Windows/releases/latest

You may need to click through a warning about unidentified developers.

Linux: https://github.com/PmagPy/PmagPy-Standalone-Linux/releases

Note that the software, particularly the Windows version, can take a long time to load. Be patient.

Download this repository

Download and unpack the .zip of this repository so that you have the raw data that we will be working with. https://github.com/Swanson-Hysell-Group/2023_Demag_GUI_tutorial/archive/master.zip

Tutorial instructions

Data conversion to MagIC format

In this example, we are going to convert data for one site that is a lava flow within the ca. 1084 Ma Michipicoten Island volcanics. These data were published in https://doi.org/10.1130/L580.1 with data that have been contributed to the MagIC database https://earthref.org/MagIC/11883. For the example we will work through, the data are not yet in MagIC format, but rather in the CIT lab format which includes a .sam site level file and ascii sample text files as described here: http://cires1.colorado.edu/people/jones.craig/PMag_Formats.html. While the specifics of this workflow will vary with different lab formats, this demonstration will show how Pmag_GUI can be used to convert data to MagIC format using the following steps:

  1. Open the Pmag GUI executable program

  2. Navigate to 2023_Demag_GUI_tutorial/data/SS20- folder that has the SS20-.sam file in it when you are initially prompted to pick a directory or change the directory to be that folder.

  3. Click on 1. Convert magnetometer files to MagIC format in the Pmag GUI home window

  1. The files that we are dealing with are CIT format. In the step 1: choose file format window, click the button for CIT format and then click Import file.

  1. In the PmagPy CIT file conversion window, choose the SS20-.sam file and then select the sampling particulars as shown below. Leave the lab field blank as these are thermal demagnetization data. Specify the sample-site naming convention to be XXXX-YY and leave the delimiter blank. Specify the number of terminal characters that distinguish specimen from sample (1). Enter the location name (in this case Michipicoten Island). Leave the defaults for replicate measurements and number of measurement orientations. When all of this information is entered, press ok.

  1. Click on Go to next step in the step 1 dialog box.

  2. Click OK in the Step 2: Combine different MagIC files box.

  3. Click OK in the Step 3: Combine different MagIC formatted files box.

Following this step, you should see this message indicating that these files have been created.

These are MagIC format files that can be used for analysis in Demag_GUI. If you had more than one site to convert to MagIC format in distinct files, you could repeat the 1. Convert magnetometer files to MagIC format step multiple times and use the step 2 and step 3 dialog boxes to merge all of the site level data into a single set of MagIC tables.

Data visualization and analysis of the converted data

Now that the SS20 site data have been converted to MagIC format, we can use the Demag GUI tools within Pmag GUI to visualize the data and to interpret directions through making least-squares fits.

  1. You should now be returned to the main Pmag GUI page. Click on the blue Demag GUI button to launch the visualization and analysis tools for these demagnetization data.

  1. You should see a panel that looks like the below showing the data for the first specimen in the site. Note that you can customize your view of the data switching between coordinate systems (e.g. specimen, geographic, tilt-corrected) and changing whether the x-axis is north or east for the vector component plot. In this case, let's change our coordinate system to be geographic or tilt-corrected.

  1. Let's make fits to the high-temperature component that dominantly unblocks between 400ºC and 580ºC. To make a fit you can click add fit or double-click in the box that lists the steps. You can adjust the bounds of the fit by double-clicking in the steps box or by selecting the upper and lower bounds from the drop-down bounds menus. You can change the name of the fit by selecting the default fit name Fit 1, changing the name, and pressing enter. Perhaps you want to call this the HT (high-temperature fit) as there is also a low-temperature component revealed in the thermal demagnetization data.

  2. Let's go through and make HT fits for all the samples in the site.

  3. You will note that there are some specimens for which there were multiple measurements made at a given temperature step (for example the 570ºC step for specimen SS20-2a). In this case, the specimen was remeasured given the csd angle. If multiple measurements at the same step are included in a fit, there will be a warning in the Current data warnings window that says Within Fit HT, there are multiple good measurements at the 570C step. All good measurements are included in the fit. In this case, it can make sense to mark one of the measurements as bad. This can be done by right-clicking on the step which will mark the measurement as bad in the measurements.txt table and exclude it from any fits.

  1. We can visualize fits for all the specimens in the site and calculate the Fisher mean by choosing the Display Level and the Mean Options in the upper right.

  1. Once we have made the fits, let's look at them in the Tools > Interpretation Editor view. This panel provides helpful tools to make bulk changes to fits and to add new fits to all specimens

  1. The parameters for the least-squares fits can be saved into a lightweight file called a .redo file that specifies the bounds, the fit name, the fit type and the color. Let's save that file by clicking on the save option in Interpretation options.

  1. Go ahead and find this file and have a look at it. It is a tab-delimited file with the specimen name, type of fit, lower bound, upper bound, fit name, color, and a flag for good (g) or bad (b). Note that the temperatures are in Kelvin. This file can be imported in order to keep working on fits without saving the fits to the final MagIC tables.

Converting to MagIC format

  1. To get these fits saved into MagIC format, we go to File > Save MagIC tables in Demag_GUI. Let's choose to save the specimen, geographic, and tilt-corrected coordinate systems to the MagIC specimens table.

  1. We have some additional choices to make within the next dialog box as pertain to the sample. In this case, it makes sense to save the site directions in both geographic and tilt-corrected coordinates. We can also have Demag GUI calculate the virtual geomagnetic pole (VGP) position. By checking the age box, we can add age information as well. In this case, the lava flow that was studied is within a succession of basalts that is bracketed by an underlying tuff with an U-Pb date of 1084.35 ± 0.20 Ma and an overlying extrusive rhyolite lava flow at the top of the Michipicoten Island Formation with an U-Pb data of 1083.52 ± 0.23 Ma.

  1. Once you have saved the MagIC tables out of Demag_GUI, close the Demag_GUI window which will bring you back to the Pmag_GUI window. Here you can click the green button Create MagIC txt file for upload.

  2. For these data, you will get an error message saying that the validation of the upload file has failed. That is because the CIT file that we converted did not contain all of the required metadata for contribution to MagIC. What should then come up is a validations window that provides help with adding the additional required fields. In the current version, this window comes up for the OSX program, but not the Windows one

  1. These fields can be added using the validation GUI or can be added directly to the MagIC tables in a text or spreadsheet editor. Let's go ahead and open the contribution in a spreadsheet editor which will give us the experience of seeing the structure of the tables. We can fill in the missing data fields while referring to the controlled vocabulary that is linked to from the MagIC data model: https://www2.earthref.org/MagIC/data-models/3.0.

Contributing to MagIC

  1. Now we can take our MagIC contribution with our fits and upload it into our private workspaces in MagIC: https://www2.earthref.org/MagIC/upload Let's do so and walk through the steps together.

Unpacking and visualizing data from a MagIC contribution

  1. The data from this study has been contributed to the MagIC database. Go here to download it https://earthref.org/MagIC/19680 or you can find it in the Fairchild2017 folder of this repository: https://github.com/Swanson-Hysell-Group/2023_Demag_GUI_tutorial/archive/master.zip

  2. Click on Unpack txt file downloaded from MagIC.

  1. Navigate to the magic_contribution_19680.txt file

  2. Change the MagIC project directory to be the folder in which the MagIC file was unpacked.

  3. Click on Demag GUI to look at the data from this study and the associated fits.