Skip to content

A basic Python script to convert individual sample files previously made by Data Splitter into generic PmagPy format for directional analysis. Output files are compatible with PmagPy or paleomagnetism.org.

License

Notifications You must be signed in to change notification settings

katiebristol/paleomag_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaleoMag Converter

License: MIT

Purpose

This script was created to convert individual sample files previously made by Data Splitter into generic PmagPy format. Files produced by this script can be used with PmagPy Demag GUI and paleomagnetism.org. Field intensity is output in A/m assuming a sample volume of 10cc.

Demo data.

How to use

  1. Put individual sample files (such as those split by Data Splitter) that you want converted into the /input/ folder.

  2. Set AF or thermal demag via line 32:

     For AF demag (default): 
     
     next_line = " ".join(str(x) for x in next_line_array).replace("Cm","A")
    
     For Thermal demag: 
     
     next_line = " ".join(str(x) for x in next_line_array).replace("Cm","T")
    
  3. Run the script

  4. Check the /output/ folder for your converted files.

Inputs

This script requires .dat files that you want converted placed into the /input/ folder.

Outputs

This script will create converted files with the same name. The converted files will write to the /output/ folder.

Notes

This script was made in conjunction with the Data Splitter script. It is intended to be used afterwards to convert data to PmagPy generic/paleomagnetism.org friendly formats.

License

This script is published under the MIT license.

About

A basic Python script to convert individual sample files previously made by Data Splitter into generic PmagPy format for directional analysis. Output files are compatible with PmagPy or paleomagnetism.org.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages