Thread: converstion of data from xls (txt) into SAC

Started: 2014-08-20 10:38:19
Last activity: 2014-08-20 20:20:13
Topics: SAC Help
Lukas Janku
2014-08-20 10:38:19
Dear Sir / Madam

I would like to ask you for help in the following matter.
I have just recently started to use SAC for my PhD research. One of the purposes I need the SAC for is to analyze outputs from my numerical models and compare them with field observations. The data from my models have usually form of a time-series table (xls, txt or csv), consisting of a column of pairs time - displacement (in particular direction). Is there some simple way (utility or so) for converting these data into SAC?

Thank you for your help

Looking forward to hearing from you

Yours faithfully

Lukas Janku



This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

  • George Helffrich
    2014-08-20 20:20:13
    Dear Lukas Janku -

    CSV is the most suitable format. If your values are separated with blanks (even if they end with a comma — the comma is optional, the blanks separate values), you can use the READTABLE command to read them in. For example,

    READTABLE CONTENT XY FREE /tmp/dat.txt

    would read in values such as,

    1, -10,
    2, -8,
    3, 5,
    etc.

    See HELP READTABLE for more extensive info.

    On 20 Aug 2014, at 12:38, Lukas Janku <lukas.janku<at>pg.canterbury.ac.nz> wrote:

    Dear Sir / Madam

    I would like to ask you for help in the following matter.
    I have just recently started to use SAC for my PhD research. One of the purposes I need the SAC for is to analyze outputs from my numerical models and compare them with field observations. The data from my models have usually form of a time-series table (xls, txt or csv), consisting of a column of pairs time - displacement (in particular direction). Is there some simple way (utility or so) for converting these data into SAC?

    Thank you for your help

    Looking forward to hearing from you

    Yours faithfully

    Lukas Janku


    This email may be confidential and subject to legal privilege, it may
    not reflect the views of the University of Canterbury, and it is not
    guaranteed to be virus free. If you are not an intended recipient,
    please notify the sender immediately and erase all copies of the message
    and any attachments.

    Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
    information.
    _______________________________________________
    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


22:13:05 v.e73c6799