Thread: Adding phase information (onset, label, polarity and quality) to imported picks

Started: 2020-03-25 13:44:40
Last activity: 2020-03-26 17:52:43
Topics: SAC Help
Hello-
I have a bunch of events with picks from an outside program that I would
like to add into SAC event files so that I can use them with a pre-existing
routine. The pre-existing routine looks for picks made with PLOTPK that
also contain phase onset, label, direction, and quality as set by the user
in PPK, i.e. (IPU0) or (EP-4) or (ISU1), etc.
I can add the pick timing information to the header using chnhdr: i.e.
chnhdr a gmt $pick_year $pick_jday $pick_hour $pick_minute $pick_second
$pick_millisecond
However, I cannot figure out how to write the additional phase information
(onset, label, direction, and quality) to the header. Might these be set
using enumerated header values? I'm just not sure how to interact with
those.
Any help would be appreciated.
Kyle Brill

  • Hi,
    I would recommend you see the help:

    sac> help ppk

    some picks are write on KTn header variable.

    a part in the help said:

    The P pick is stored in header variable A, and the (IPU) in KA. The S pick

    is stored in T0 with (ISD1) in KT0.


    HTH,


    m.

    ************************************
    Milton P. PLASENCIA LINARES

    Centro di Ricerche Sismologiche (CRS)
    OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale

    Borgo Grotta Gigante 42/C
    (34010) Sgonico - Trieste - Italia
    Tel: +39 040 2140 156 (Udine)
    Tel: +39 040 2140 256 (Trieste)
    Cel.: +39 331 6481 935

    E-mail: mplasencia<at>inogs.it

    GPG Key: 22FCFFA8

    ASAIN (Antarctic Seismographic Argentinean Italian Network)
    **************************************


    On Thu, 26 Mar 2020 at 17:37, Kyle Brill (via IRIS) <
    sac-help<at>lists.ds.iris.edu> wrote:

    Hello-
    I have a bunch of events with picks from an outside program that I would
    like to add into SAC event files so that I can use them with a pre-existing
    routine. The pre-existing routine looks for picks made with PLOTPK that
    also contain phase onset, label, direction, and quality as set by the user
    in PPK, i.e. (IPU0) or (EP-4) or (ISU1), etc.
    I can add the pick timing information to the header using chnhdr: i.e.
    chnhdr a gmt $pick_year $pick_jday $pick_hour $pick_minute $pick_second
    $pick_millisecond
    However, I cannot figure out how to write the additional phase information
    (onset, label, direction, and quality) to the header. Might these be set
    using enumerated header values? I'm just not sure how to interact with
    those.
    Any help would be appreciated.
    Kyle Brill

    ----------------------
    SAC Help
    Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
    Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


    • Hello -
      This worked perfectly.
      I do not see the part you mention in my version of the help file for ppk
      [LATEST REVISION - May 16, 2006 (version 100.1)], but there is a line under
      "HEADER CHANGES" that says "Depending upon user responses any of A, KA, F,
      KF, Tn, KTn" which should have pointed me in the right direction. I may be
      using an outdated version of SAC.
      In any case, thank you very much for your help and quick response.
      Kyle

      On Thu, Mar 26, 2020 at 11:54 AM Milton Plasencia (via IRIS) <
      sac-help<at>lists.ds.iris.edu> wrote:

      Hi,
      I would recommend you see the help:

      sac> help ppk

      some picks are write on KTn header variable.

      a part in the help said:

      The P pick is stored in header variable A, and the (IPU) in KA. The S pick

      is stored in T0 with (ISD1) in KT0.


      HTH,


      m.

      ************************************
      Milton P. PLASENCIA LINARES

      Centro di Ricerche Sismologiche (CRS)
      OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale

      Borgo Grotta Gigante 42/C
      (34010) Sgonico - Trieste - Italia
      Tel: +39 040 2140 156 (Udine)
      Tel: +39 040 2140 256 (Trieste)
      Cel.: +39 331 6481 935

      E-mail: mplasencia<at>inogs.it

      GPG Key: 22FCFFA8

      ASAIN (Antarctic Seismographic Argentinean Italian Network)
      **************************************


      On Thu, 26 Mar 2020 at 17:37, Kyle Brill (via IRIS) <
      sac-help<at>lists.ds.iris.edu> wrote:

      Hello-
      I have a bunch of events with picks from an outside program that I would
      like to add into SAC event files so that I can use them with a pre-existing
      routine. The pre-existing routine looks for picks made with PLOTPK that
      also contain phase onset, label, direction, and quality as set by the user
      in PPK, i.e. (IPU0) or (EP-4) or (ISU1), etc.
      I can add the pick timing information to the header using chnhdr: i.e.
      chnhdr a gmt $pick_year $pick_jday $pick_hour $pick_minute $pick_second
      $pick_millisecond
      However, I cannot figure out how to write the additional phase
      information (onset, label, direction, and quality) to the header. Might
      these be set using enumerated header values? I'm just not sure how to
      interact with those.
      Any help would be appreciated.
      Kyle Brill

      ----------------------
      SAC Help
      Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
      Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/


      ----------------------
      SAC Help
      Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
      Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/



      --
      Kyle A. Brill, PhD
      Department of Geological and Mining Engineering and Sciences
      1400 Townsend Drive
      Michigan Technological University
      HOUGHTON, MI 49931 USA
      847-436-1962
      http://www.geo.mtu.edu/~kabrill

Page built 04:18:15 | v.b'59d0d2