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

Module pca

source code

Functions [hide private]
 
main()
NAME...
source code
Function Details [hide private]

main()

source code 

NAME
   pca.py

DESCRIPTION
   calculates best-fit line/plane through demagnetization data

INPUT FORMAT
   takes specimen_name treatment intensity declination inclination  in space delimited file

SYNTAX
   pca.py [-h][-i]  [command line options][< filename]

OPTIONS
    -h prints help and quits
    -i for interactive filename, calculation type, bounds entry 
    -f FILE
    -dir [L,P,F][BEG][END] specify direction type, beginning and end
      (L:line, P:plane or F:fisher mean of unit vectors)
      BEG: first step (NRM = step zero)
      END: last step (NRM = step zero)
    < filename for reading from standard input
OUTPUT:
    specimen_name calculation_type N beg end MAD dec inc
    if calculation_type is 'p', dec and inc are pole to plane, otherwise, best-fit direction

EXAMPLE:
    pca.py -l 1 5 <ex5.1
    will calculate best-fit line through demagnetization steps 1 and 5 from file ex5.1