Module mag_magic
[hide private]
[frames] | no frames]

Module mag_magic

source code

Functions [hide private]
 
main()
NAME mag_magic.py DESCRIPTION converts SIO .mag format files to magic_measurements format files SYNTAX mag_magic.py [command line options] OPTIONS -h: prints the help message and quits.
source code
Function Details [hide private]

main()

source code 

NAME
    mag_magic.py

DESCRIPTION
    converts SIO .mag format files to magic_measurements format files

SYNTAX
    mag_magic.py [command line options]

OPTIONS
    -h: prints the help message and quits.
    -usr USER:   identify user, default is ""
    -f FILE: specify .mag format input file, required
    -fsi SITEFILE : specify file with site names and locations [tab delimited magic file]
    -F FILE: specify output file, default is magic_measurements.txt
    -Fsy: specify er_synthetics file, default is er_sythetics.txt
    -Fsa: specify er_samples file, default is NONE (only for LDGO formatted files)
    -LP [colon delimited list of protocols, include all that apply]
        AF:  af demag
        S: Shaw method
        T: thermal including thellier but not trm acquisition
        N: NRM only
        TRM: trm acquisition
        ANI: anisotropy experiment
        D: double AF demag
        G: triple AF demag (GRM protocol)
    -spc NUM : specify number of characters to designate a  specimen, default = 0
    -loc LOCNAME : specify location/study name, must have either LOCNAME or SITEFILE or be a synthetic
    -syn INST TYPE:  sets these specimens as synthetics created at institution INST and of type TYPE
    -ins INST : specify which demag instrument was used (e.g, SIO-Suzy or SIO-Odette),default is "unknown"
    -dc B PHI THETA: dc lab field (in micro tesla) and phi,theta, default is none
          NB: use PHI, THETA = -1 -1 to signal that it changes, i.e. in anisotropy experiment
    -ac B : peak AF field (in mT) for ARM acquisition, default is none
    -FT [SIO,LDGO] : file type.  default is SIO (.mag file format)
    -ncn NCON:  specify naming convention: default is #1 below

   Sample naming convention:
        [1] XXXXY: where XXXX is an arbitrary length site designation and Y
            is the single character sample designation.  e.g., TG001a is the
            first sample from site TG001.    [default]
        [2] XXXX-YY: YY sample from site XXXX (XXX, YY of arbitary length)
        [3] XXXX.YY: YY sample from site XXXX (XXX, YY of arbitary length)
        [4-Z] XXXXYYY:  YYY is sample designation with Z characters from site XXX
        [5] sample = site
        [6] all others you will have to either customize your
            self or e-mail ltauxe@ucsd.edu for help.

INPUT
    Best to put separate experiments (all AF, thermal, thellier, trm aquisition, Shaw, etc.) in 
       seperate .mag files (eg. af.mag, thermal.mag, etc.)

    Format of SIO .mag files:   
    Spec Treat CSD Intensity Declination Inclination [optional metadata string]
    
    
    Spec: specimen name
    Treat:  treatment step
        XXX T in Centigrade
        XXX AF in mT
        for special experiments:
          Thellier:
            XXX.0  first zero field step
            XXX.1  first in field step [XXX.0 and XXX.1 can be done in any order]
            XXX.2  second in-field step at lower temperature (pTRM check)
            XXX.3  second zero-field step after infield (pTRM check step)
                   XXX.3 MUST be done in this order [XXX.0, XXX.1 [optional XXX.2] XXX.3]
          AARM:
            X.00  baseline step (AF in zero bias field - high peak field)
            X.1   ARM step (in field step)  where
               X is the step number in the 15 position scheme 
                  (see Appendix to Lecture 13 - Lectures in Paleomagnetism, 2007)
          TRM:
            XXX.YYY  XXX is temperature step of total TRM
                     YYY is dc field in microtesla

          Shaw:
            XXX.YY   XXX is AF field
                YY=00 is AF of NRM
                YY=01 is AF of ARM1
                YY=02 is AF of TRM
                YY=03 is AF of ARM2
            specify temperature and field of Total TRM step on command line
     
     Intensity assumed to be total moment in 10^3 Am^2 (emu)
     Declination:  Declination in specimen coordinate system
     Inclination:  Declination in specimen coordinate system

     Optional metatdata string:  mm/dd/yy;hh:mm;[dC,mT];xx.xx;UNITS;USER;INST;NMEAS
         hh in 24 hours.  
         dC or mT units of treatment XXX (see Treat above) for thermal or AF respectively
         xx.xxx   DC field
         UNITS of DC field (microT, mT)
         INST:  instrument code, number of axes, number of positions (e.g., G34 is 2G, three axes, 
                measured in four positions)
         NMEAS: number of measurements in a single position (1,3,200...)
   
  Format of LDGO files:   
    SPEC TREAT INST CSD Intensity CDECL CINCL [GDECL GINCL BDECL BINCL SUSC ]