Thread: "Cut" command in SAC

Started: 2010-04-19 04:04:12
Last activity: 2010-04-19 17:12:14
Topics: SAC Help
Mac Green
2010-04-19 04:04:12
How exactly do I implement the CUT command in SAC for a case like this:

I have a file called data.sac
The number of points=N
I want only the first M points of the file.

It is the option given in the help files that Uses B and N, but I can not
implement it.

Thanks in advance.

  • Konstantia Makra
    2010-04-19 17:10:11

    CUT command is used as follows

    cut t1 t2
    r data.sac
    w over (if you want to keep the same filename)
    cut off

    t1 =N*dt
    t2 = M*dt

    To see the cut file

    r data.sac
    p1





    Konstantia MAKRA
    Dr Civil Engineer
    Soil Dynamics Division
    Institute of Engineering Seismology & Earthquake Engineering (ITSAK)
    e-mail: makra<at>itsak.gr




    On 19 Απρ 2010, at 6:04 ΠΜ, Mac Green wrote:

    How exactly do I implement the CUT command in SAC for a case like
    this:

    I have a file called data.sac
    The number of points=N
    I want only the first M points of the file.

    It is the option given in the help files that Uses B and N, but I
    can not implement it.

    Thanks in advance.

    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help



    • Konstantia Makra
      2010-04-19 17:12:14

      sorry, N is not the number of points in data.sac file but the first
      point you want to cut the file and M the last one.



      Konstantia MAKRA
      Dr Civil Engineer
      Soil Dynamics Division
      Institute of Engineering Seismology & Earthquake Engineering (ITSAK)
      e-mail: makra<at>itsak.gr




      On 19 Απρ 2010, at 10:10 ΠΜ, Konstantia Makra wrote:


      CUT command is used as follows

      cut t1 t2
      r data.sac
      w over (if you want to keep the same filename)
      cut off

      t1 =N*dt
      t2 = M*dt

      To see the cut file

      r data.sac
      p1





      Konstantia MAKRA
      Dr Civil Engineer
      Soil Dynamics Division
      Institute of Engineering Seismology & Earthquake Engineering (ITSAK)
      e-mail: makra<at>itsak.gr




      On 19 Απρ 2010, at 6:04 ΠΜ, Mac Green wrote:

      How exactly do I implement the CUT command in SAC for a case like
      this:

      I have a file called data.sac
      The number of points=N
      I want only the first M points of the file.

      It is the option given in the help files that Uses B and N, but I
      can not implement it.

      Thanks in advance.

      _______________________________________________
      sac-help mailing list
      sac-help<at>iris.washington.edu
      http://www.iris.washington.edu/mailman/listinfo/sac-help




06:11:51 v.22510d55