Synopsis

saclh [-vV] [--help] [-h=<headerList>[,<headerList>…​]]…​ [<sacfileList>…​]

Description

print some or all header values from a SAC file

Options

-h, --headers=<headerList>[,<headerList>…​]

Headers to print

--help

display a help message

-v, --verbose

Verbose

-V, --version

Print version and exit

Arguments

[<sacfileList>…​]

SAC files

Examples

Print the all headers for a SAC file.

> saclh CO.JSC.00.HHZ.M.2021.061.000000.SAC

CO.JSC.00.HHZ.M.2021.061.000000.SAC (little endian)
-----------------------------------

     delta =       0.01    depmin =     -12345    depmax =     -12345     scale =  503735424    odelta =     -12345
         b =     0.0004         e =    59.9904         o =     -12345         a =     -12345       fmt =     -12345
        t0 =     -12345        t1 =     -12345        t2 =     -12345        t3 =     -12345        t4 =     -12345
        t5 =     -12345        t6 =     -12345        t7 =     -12345        t8 =     -12345        t9 =     -12345
         f =     -12345     resp0 =     -12345     resp1 =     -12345     resp2 =     -12345     resp3 =     -12345
     resp4 =     -12345     resp5 =     -12345     resp6 =     -12345     resp7 =     -12345     resp8 =     -12345
     resp9 =     -12345      stla =    34.2818      stlo =   -81.2597      stel =        103      stdp =          0
      evla =     -12345      evlo =     -12345      evel =     -12345      evdp =     -12345       mag =     -12345
     user0 =     -12345     user1 =     -12345     user2 =     -12345     user3 =     -12345     user4 =     -12345
     user5 =     -12345     user6 =     -12345     user7 =     -12345     user8 =     -12345     user9 =     -12345
      dist =     -12345        az =     -12345       baz =     -12345     gcarc =     -12345        sb =     -12345
    sdelta =     -12345    depmen =     -12345     cmpaz =          0    cmpinc =          0  xminimum =     -12345
  xmaximum =     -12345  yminimum =     -12345  ymaximum =     -12345   unused6 =     -12345   unused7 =     -12345
   unused8 =     -12345   unused9 =     -12345  unused10 =     -12345  unused11 =     -12345  unused12 =     -12345
    nzyear =       2021    nzjday =         61    nzhour =          0     nzmin =          0     nzsec =          0
    nzmsec =          8     nvhdr =          6     norid =     -12345     nevid =     -12345      npts =       6000
    nsnpts =     -12345     nwfid =     -12345    nxsize =     -12345    nysize =     -12345  unused15 =     -12345
    iftype =          1      idep =     -12345    iztype =     -12345  unused16 =     -12345     iinst =     -12345
    istreg =     -12345    ievreg =     -12345    ievtyp =     -12345     iqual =     -12345    isynth =     -12345
   imagtyp =     -12345   imagsrc =     -12345  unused19 =     -12345  unused20 =     -12345  unused21 =     -12345
  unused22 =     -12345  unused23 =     -12345  unused24 =     -12345  unused25 =     -12345  unused26 =     -12345
     leven =          1    lpspol =     -12345    lovrok =     -12345    lcalda =     -12345  unused27 =     -12345
     kstnm =   JSC          kevnm =                -12345                 khole =   00
        ko =   -12345       ka =  =   -12345         kt0 =   -12345         kt1 =   -12345
       kt2 =   -12345      kt3 =  =   -12345         kt4 =   -12345         kt5 =   -12345
       kt6 =   -12345      kt7 =  =   -12345         kt8 =   -12345         kt9 =   -12345
        kf =   -12345   kuser0 =  =   -12345      kuser1 =   -12345      kuser2 =   -12345
    kcmpnm =   HHZ      knetwk =  =   CO          kdatrd =   -12345       kinst =   Velocity

Print the a and kstnm headers for a SAC file.

> saclh -h b,kstnm CO.JSC.00.HHZ.M.2021.061.000000.SAC
CO.JSC.00.HHZ.M.2021.061.000000.SAC:         b =     0.0004     kstnm =   JSC