Thread: Need Help

Started: 2017-11-09 17:09:39
Last activity: 2017-11-09 17:50:49
Topics: SAC Help
Mukesh Das
2017-11-09 17:09:39
Hello Sac Users,

I want to multiply or divide a set of data points in a sac file with a
constant. Please suggest me how to do this?

Thank you very much.

Regards,
Mukesh Kumar Das
JRF (Research Scholar)
Department of Applied Geophysics
Indian lnstitute of Technology (Indian School of Mines)
Dhanbad, Jharkhand-826004, India
Mob +918873563108
+918340601230

  • Milton Plasencia
    2017-11-09 13:05:56
    Mukesh,

    Only use the command mul or div in sac
    sac> mul constant_value

    Please, see the help

    sac> help mul

    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 9 November 2017 at 04:40, mukesh kumar <kumarmukesh2411<at>gmail.com> wrote:

    Hello Sac Users,

    I want to multiply or divide a set of data points in a sac file with a
    constant. Please suggest me how to do this?

    Thank you very much.

    Regards,
    Mukesh Kumar Das
    JRF (Research Scholar)
    Department of Applied Geophysics
    Indian lnstitute of Technology (Indian School of Mines)
    Dhanbad, Jharkhand-826004, India
    Mob +918873563108 <+91%2088735%2063108>
    +918340601230 <+91%2083406%2001230>


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



    • Mukesh Das
      2017-11-09 17:50:49
      Dear Milton,

      Thanks for your reply. Lets suppose we have 100 sample points in our
      waveform sac file and I want to multiply (lets say by four) data points
      only from 20 to 40. That means I don't want to multiply the whole dataset
      but a portion of dataset. Then how can I do it?

      Please reply.

      Regards,

      On Thu, Nov 9, 2017 at 9:37 AM, Milton Plasencia <mplasencia<at>inogs.it>
      wrote:

      Mukesh,

      Only use the command mul or div in sac
      sac> mul constant_value

      Please, see the help

      sac> help mul

      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 9 November 2017 at 04:40, mukesh kumar <kumarmukesh2411<at>gmail.com>
      wrote:

      Hello Sac Users,

      I want to multiply or divide a set of data points in a sac file with a
      constant. Please suggest me how to do this?

      Thank you very much.

      Regards,
      Mukesh Kumar Das
      JRF (Research Scholar)
      Department of Applied Geophysics
      Indian lnstitute of Technology (Indian School of Mines)
      Dhanbad, Jharkhand-826004, India
      Mob +918873563108 <+91%2088735%2063108>
      +918340601230 <+91%2083406%2001230>


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




      --
      Mukesh Kumar Das
      JRF (Research Scholar)
      Department of Applied Geophysics
      Indian lnstitute of Technology (Indian School of Mines)
      Dhanbad, Jharkhand-826004, India
      Mob +918873563108
      +918340601230

      • Milton Plasencia
        2017-11-09 13:27:29
        For this you can do:

        sac> cut 20 40
        sac> r file_100
        sac> w file_20_40
        sac> r file_20_40
        sac> mul 4

        In this way you generate a new file with samples from 20 to 40 and
        then multiply it. by 4.

        Sac multiply all sample in memory.

        Cheers,

        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 9 November 2017 at 05:20, mukesh kumar <kumarmukesh2411<at>gmail.com> wrote:

        Dear Milton,

        Thanks for your reply. Lets suppose we have 100 sample points in our
        waveform sac file and I want to multiply (lets say by four) data points
        only from 20 to 40. That means I don't want to multiply the whole dataset
        but a portion of dataset. Then how can I do it?

        Please reply.

        Regards,

        On Thu, Nov 9, 2017 at 9:37 AM, Milton Plasencia <mplasencia<at>inogs.it>
        wrote:

        Mukesh,

        Only use the command mul or div in sac
        sac> mul constant_value

        Please, see the help

        sac> help mul

        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
        https://maps.google.com/?q=Borgo+Grotta+Gigante+42/C(34010)+Sgonico+-+Trieste+-+Italia&entry=gmail&source=g>
        (34010) Sgonico - Trieste - Italia
        https://maps.google.com/?q=Borgo+Grotta+Gigante+42/C(34010)+Sgonico+-+Trieste+-+Italia&entry=gmail&source=g>
        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 9 November 2017 at 04:40, mukesh kumar <kumarmukesh2411<at>gmail.com>
        wrote:

        Hello Sac Users,

        I want to multiply or divide a set of data points in a sac file with a
        constant. Please suggest me how to do this?

        Thank you very much.

        Regards,
        Mukesh Kumar Das
        JRF (Research Scholar)
        Department of Applied Geophysics
        Indian lnstitute of Technology (Indian School of Mines)
        Dhanbad, Jharkhand-826004, India
        Mob +918873563108 <+91%2088735%2063108>
        +918340601230 <+91%2083406%2001230>


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




        --
        Mukesh Kumar Das
        JRF (Research Scholar)
        Department of Applied Geophysics
        Indian lnstitute of Technology (Indian School of Mines)
        Dhanbad, Jharkhand-826004, India
        Mob +918873563108 <+91%2088735%2063108>
        +918340601230 <+91%2083406%2001230>


15:57:16 v.01697673