Thread: Adding Manually the date

Started: 2021-09-23 08:18:00
Last activity: 2021-09-23 21:56:52
Topics: SAC Help
Muhammad Zafar Iqbal
2021-09-23 08:18:00
Hi
In my sac file header is missing KZDATE and KZTIME.
How I can add manually the date and time.
I have tried like
"ch O gmt 2016 001 00 00 00" and then "wh" but still date is not shown.
How to resolve the issue.
Regards
Zafar
  • George Sand França
    2021-09-23 10:55:38
    Hi,

    It is a good idea you read a SAC's manual before or check the help.

    SAC > help ch
    .......

    SAC > CHNHDR O GMT 1982 123 13 37 10 103
    SAC> WH

    ou
    SAC> WRITE OVER

    Cheers

    Prof. George Sand L. A. de França
    Observatório Sismológico
    Universidade de Brasília
    http://lattes.cnpq.br/1804846635564396
    http://orcid.org/0000-0002-2694-5868
    [cid:dd3ffd7f-d51c-480f-9408-fc8c225e0466]

    ________________________________
    De: sac-help-bounce<at>lists.ds.iris.edu <sac-help-bounce<at>lists.ds.iris.edu> em nome de Muhammad Zafar Iqbal (via IRIS) <sac-help-bounce<at>lists.ds.iris.edu>
    Enviado: quinta-feira, 23 de setembro de 2021 05:18
    Para: SAC Help <sac-help<at>lists.ds.iris.edu>
    Assunto: [IRIS][sac-help] Adding Manually the date

    Hi
    In my sac file header is missing KZDATE and KZTIME.
    How I can add manually the date and time.
    I have tried like
    "ch O gmt 2016 001 00 00 00" and then "wh" but still date is not shown.
    How to resolve the issue.
    Regards
    Zafar

    ----------------------
    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/

    Attachments
  • Wen-Tzong Liang
    2021-09-23 17:07:52
    Hi:

    After the "ch O gmt ..." command, you may try

    SAC> ch allt (0.0 - &1,o) iztype io

    to make sure the time scale has been changed to the "travel time"

    Then the kzdate and kztime will be the origin time rather than the time of the 1st data point.


    Wen-Tzong

    -----Original message-----
    From:Muhammad Zafar Iqbal (via IRIS) <sac-help-bounce<at>lists.ds.iris.edu>
    To:SAC Help <sac-help<at>lists.ds.iris.edu>
    Date:Thu, 23 Sep 2021 16:18:14
    Subject:[IRIS][sac-help] Adding Manually the date

    Hi
    In my sac file header is missing KZDATE and KZTIME.
    How I can add manually the date and time.
    I have tried like
    "ch O gmt 2016 001 00 00 00" and then "wh" but still date is not shown.
    How to resolve the issue.
    Regards
    Zafar

    ----------------------
    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/


  • Wen-Tzong Liang
    2021-09-23 17:45:00
    Or if your sac file contains no date and time information at all, then you can use the following commands to define the time of the first data point:

    SAC> ch nzyear 2016 nzjday 001 nzhour 0 nzhour 0 nzmin 0 nzsec 0 nzmsec 0
    SAC> wh

    Wen-Tzong

    -----Original message-----
    From:Muhammad Zafar Iqbal (via IRIS) <sac-help-bounce<at>lists.ds.iris.edu>
    To:SAC Help <sac-help<at>lists.ds.iris.edu>
    Date:Thu, 23 Sep 2021 16:18:14
    Subject:[IRIS][sac-help] Adding Manually the date

    Hi
    In my sac file header is missing KZDATE and KZTIME.
    How I can add manually the date and time.
    I have tried like
    "ch O gmt 2016 001 00 00 00" and then "wh" but still date is not shown.
    How to resolve the issue.
    Regards
    Zafar

    ----------------------
    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/


Page built 03:11:08 | v.b'434c1a