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

Module UB_magic

source code

Functions [hide private]
 
skip(N, ind, L) source code
 
main()
NAME UB_magic.py DESCRIPTION takes University of Barcelona format magnetometer files and converts them to magic_measurements and er_samples.txt SYNTAX UB_magic.py [command line options] OPTIONS -f FILE: specify master txt file -fpos FILE: specify stratigraphic position file (.saf format) -F FILE: specify magic_measurements output file, default is: magic_measurements.txt -Fsa FILE: specify output file, default is: er_samples.txt -ncn NCON: specify naming convention: default is #2 below -ocn OCON: specify orientation convention, default is #3 below -mcd: specify sampling method codes as a colon delimited string: [default is: FS-FD:SO-POM] FS-FD field sampling done with a drill FS-H field sampling done with hand samples FS-LOC-GPS field location done with GPS FS-LOC-MAP field location done with map SO-POM a Pomeroy orientation device was used SO-ASC an ASC orientation device was used SO-MAG orientation with magnetic compass SO-SUN orientation with sun compass -loc: location name, default="unknown" -spc NUM : specify number of characters to designate a specimen, default = 0 -ins INST : specify instsrument name INPUT FORMAT Input files are horrible 2G binary format (who knows why?) Orientation convention: [1] Lab arrow azimuth= mag_azimuth; Lab arrow dip=-dip i.e., dip is degrees from vertical down - the hade [default] [2] Lab arrow azimuth = mag_azimuth-90; Lab arrow dip = -dip i.e., mag_azimuth is strike and dip is hade [3] Lab arrow azimuth = mag_azimuth; Lab arrow dip = dip-90 e.g.
source code
Function Details [hide private]

main()

source code 

NAME
    UB_magic.py

DESCRIPTION
    takes University of Barcelona format magnetometer files and converts them to magic_measurements and er_samples.txt

SYNTAX
    UB_magic.py [command line options]

OPTIONS
    -f FILE: specify master txt file
    -fpos FILE: specify stratigraphic position  file (.saf format)
    -F FILE: specify magic_measurements output file, default is: magic_measurements.txt
    -Fsa FILE: specify output file, default is: er_samples.txt 
    -ncn NCON:  specify naming convention: default is #2 below
    -ocn OCON:  specify orientation convention, default is #3 below
    -mcd: specify sampling method codes as a colon delimited string:  [default is: FS-FD:SO-POM]
         FS-FD field sampling done with a drill
         FS-H field sampling done with hand samples
         FS-LOC-GPS  field location done with GPS
         FS-LOC-MAP  field location done with map
         SO-POM   a Pomeroy orientation device was used
         SO-ASC   an ASC orientation device was used
         SO-MAG   orientation with magnetic compass
         SO-SUN   orientation with sun compass
    -loc: location name, default="unknown"
    -spc NUM : specify number of characters to designate a  specimen, default = 0     
    -ins INST : specify instsrument name

INPUT FORMAT
    Input files are horrible 2G binary format (who knows why?)

    Orientation convention:
        [1] Lab arrow azimuth= mag_azimuth; Lab arrow dip=-dip
            i.e., dip is degrees from vertical down - the hade [default]
        [2] Lab arrow azimuth = mag_azimuth-90; Lab arrow dip = -dip                
            i.e., mag_azimuth is strike and dip is hade
        [3] Lab arrow azimuth = mag_azimuth; Lab arrow dip = dip-90
            e.g. dip is degrees from horizontal of drill direction            
        [4] Lab arrow azimuth = mag_azimuth; Lab arrow dip = dip
        [5] Lab arrow azimuth = mag_azimuth; Lab arrow dip = 90-dip
        [6] all others you will have to either customize your
            self or e-mail ltauxe@ucsd.edu for help. 
   
     Magnetic declination convention:
         Az will use supplied declination to correct azimuth 

     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.  
OUTPUT
        output saved in magic_measurements.txt & er_samples.txt formatted files
          will overwrite any existing files