Thread: Help !

Started: 2014-06-01 21:56:37
Last activity: 2014-06-03 13:29:55
Topics: SAC Help
radia
2014-06-01 21:56:37
Hello dear freinds,

My problem is that i have 2 files :

The first one starts at 00.00.09.7617 and finishes at 15.45.17.252 and the
seconde one starts at 15.45.01.2525 and finishes at 00.00.00.0025 (next day)

I would like to merge this to files, we can see that we have an overlap, so
i cut the end of the first one to correspond to the begining of the first
on but when i cut and i changed the header variable i saw that it was not
changed.

These are the commands used to cut the first file

​​SAC> ​
r 3p.sac

​SAC> ​
cut on
​​
SAC> cut 1.661700e+01 5.670325e+04
SAC> w 3p.sac
SAC> ch e 5.670325e+04
​ (here i changed the e = 5.670325e+04)
SAC> w 3p.sac
​SAC> r ./3p.sac
SAC> lh b e


FILE: ./3p.sac - 1
--------------

b = 1.661700e+01
e = 5.670327e+04 (here it did not changed ! )

Please can you explain me why, because the problem is when i merged them
sac added a sequence of 0 between the 2 files, and this is not normal
because i cut the end of the first file to correspond to the begining of
the seconde one.

Thank you in advance for your help !

Best regards
Radia.


--
KHERCHOUCHE Radia
Doctorante en Géophysique
Laboratoire de Géophysique
rkherchouche<at>usthb.dz
Université des Sciences et de la Technologie Houari Boumediene
BP 32 El Alia ALGER

  • George Helffrich
    2014-06-01 23:37:12
    Dear Kherchouche Radia -

    Use CUTIM. The CUT command only affects what data is read with a READ command. CUTIM cuts data already in memory.

    On 1 Jun 2014, at 14:56, Kherchouche radia wrote:

    Hello dear freinds,

    My problem is that i have 2 files :

    The first one starts at 00.00.09.7617 and finishes at 15.45.17.252 and the seconde one starts at 15.45.01.2525 and finishes at 00.00.00.0025 (next day)

    I would like to merge this to files, we can see that we have an overlap, so i cut the end of the first one to correspond to the begining of the first on but when i cut and i changed the header variable i saw that it was not changed.

    These are the commands used to cut the first file

    ​​SAC> ​r 3p.sac
    ​SAC> ​cut on
    ​​SAC> cut 1.661700e+01 5.670325e+04
    SAC> w 3p.sac
    SAC> ch e 5.670325e+04​ (here i changed the e = 5.670325e+04)
    SAC> w 3p.sac
    ​SAC> r ./3p.sac
    SAC> lh b e


    FILE: ./3p.sac - 1
    --------------

    b = 1.661700e+01
    e = 5.670327e+04 (here it did not changed ! )

    Please can you explain me why, because the problem is when i merged them sac added a sequence of 0 between the 2 files, and this is not normal because i cut the end of the first file to correspond to the begining of the seconde one.

    Thank you in advance for your help !

    Best regards
    Radia.

    --
    KHERCHOUCHE Radia
    Doctorante en Géophysique
    Laboratoire de Géophysique
    rkherchouche<at>usthb.dz
    Université des Sciences et de la Technologie Houari Boumediene
    BP 32 El Alia ALGER
    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help



    George Helffrich
    george.helffrich<at>bris.ac.uk


  • Milton Plasencia
    2014-06-03 13:29:55
    Hi,

    The sequence command for effective cut is:

    sac> cut start_window end_window
    sac> read file
    sac> lh
    sac> write new_cuted_file

    the help said it clearly.
    The CUT command simply sets cut points and does not change the file in memory. For
    the command to take effect, CUT must be followed by a READ_. This is in contrast
    with command CUTIM_, which carries out cut (or cuts) when the command is given.

    cutim as said George, cut files loaded in memory, but at the moment cutim not work
    properly in SAC/IRIS, at least in OSX and Linux with version 101.6a

    SAC> fg seismo
    SAC> cutim A -1 3
    SAC> lh
    ERROR 1301: No data files read in.
    SAC>

    HTH,

    * * * * * * * * * * * * * * * * * * * * * * *
    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 141 (Udine)
    Tel: +39 040 2140 256 (Trieste)
    Cel.: +39 331 6481 935

    E-mail: mplasencia<at>inogs.it

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











    On Jun 1, 2014, at 3:56 PM, Kherchouche radia <radia.kherchouche<at>gmail.com> wrote:

    Hello dear freinds,

    My problem is that i have 2 files :

    The first one starts at 00.00.09.7617 and finishes at 15.45.17.252 and the seconde one starts at 15.45.01.2525 and finishes at 00.00.00.0025 (next day)

    I would like to merge this to files, we can see that we have an overlap, so i cut the end of the first one to correspond to the begining of the first on but when i cut and i changed the header variable i saw that it was not changed.

    These are the commands used to cut the first file

    ​​SAC> ​r 3p.sac
    ​SAC> ​cut on
    ​​SAC> cut 1.661700e+01 5.670325e+04
    SAC> w 3p.sac
    SAC> ch e 5.670325e+04​ (here i changed the e = 5.670325e+04)
    SAC> w 3p.sac
    ​SAC> r ./3p.sac
    SAC> lh b e


    FILE: ./3p.sac - 1
    --------------

    b = 1.661700e+01
    e = 5.670327e+04 (here it did not changed ! )

    Please can you explain me why, because the problem is when i merged them sac added a sequence of 0 between the 2 files, and this is not normal because i cut the end of the first file to correspond to the begining of the seconde one.

    Thank you in advance for your help !

    Best regards
    Radia.

    --
    KHERCHOUCHE Radia
    Doctorante en Géophysique
    Laboratoire de Géophysique
    rkherchouche<at>usthb.dz
    Université des Sciences et de la Technologie Houari Boumediene
    BP 32 El Alia ALGER
    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


14:08:34 v.22510d55