Thread: HELP!

Started: 2010-06-21 22:00:55
Last activity: 2010-06-22 18:45:02
Topics: SAC Help
Megan Torpey
2010-06-21 22:00:55
Hi,

I'm having a SAC problem. I'm running a program to digitize paper seismograms. My digitization program saves the files I create as .SAC files. I got one digitized and saved it as .SAC but when I tried to read the file into SAC I got the following error:

ERROR 1318: Header in disk file is out of date: myfile

Header version number is incorrect.

Header seems byte-swapped—byte-swap file and retry.

I looked up sac help online and I got : http://www.iris.washington.edu/pipermail/sac-help/2010-March/000711.html but that didn't work =( SAC is telling me that sactosac -m is not a valid command. I would really appreciate any help/ideas asap.

Thanks,
Megan Torpey


  • Arthur Snoke
    2010-06-21 23:44:35
    I'm having a SAC problem. I'm running a program to digitize paper
    seismograms. My digitization program saves the files I create as .SAC
    files. I got one digitized and saved it as .SAC but when I tried to read
    the file into SAC I got the following error:

    ERROR 1318: Header in disk file is out of date: myfile

    Header version number is incorrect.

    Header seems byte-swapped—byte-swap file and retry.

    I looked up sac help online and I got :
    http://www.iris.washington.edu/pipermail/sac-help/2010-March/000711.html
    but that didn't work =( SAC is telling me that sactosac -m is not a
    valid command. I would really appreciate any help/ideas asap.

    When you say you are writing it as a SAC file, what software are you
    using? Also, what version of SAC are you using? The version of SAC
    provided by IRIS (current version 101.4) can read either endian. I find
    that sactosac is a program (not command) in the MACSAC package, which is
    not the same as IRIS SAC. Even though it is no longer necessary, IRIS SAC
    comes with a utility program sacswap that can switch endian.

    The listed error message for the READ command in SAC are

    - 0101: opening file
    - 0108: File does not exist:
    - 0114: reading file

    • Brian Savage
      2010-06-22 18:45:02
      Dear Megan

      If you could either send me the sac file so I can examine it or run
      the following command

      % od -d -j 304 filename.sac | head -1
      It should output something like this:
      0000460 6 0 53191 65535 53191 65535 100 0

      The first number you can ignore, but the second number is the version
      number, it should be 6 or less.

      od is "octal dump", -d indicates a decimal output, and -j is a jump to
      a number of bytes in the file. In this case 304 bytes (4 * 76).

      Thanks
      Brian Savage
      savage<at>uri.edu

      On Jun 21, 2010, at 4:44 PM, Arthur Snoke wrote:

      I'm having a SAC problem. I'm running a program to digitize paper
      seismograms. My digitization program saves the files I create
      as .SAC files. I got one digitized and saved it as .SAC but when I
      tried to read the file into SAC I got the following error:

      ERROR 1318: Header in disk file is out of date: myfile
      Header version number is incorrect.

      Header seems byte-swapped—byte-swap file and retry.

      I looked up sac help online and I got : http://www.iris.washington.edu/pipermail/sac-help/2010-March/000711.html
      but that didn't work =( SAC is telling me that sactosac -m is not
      a valid command. I would really appreciate any help/ideas asap.

      When you say you are writing it as a SAC file, what software are you
      using? Also, what version of SAC are you using? The version of SAC
      provided by IRIS (current version 101.4) can read either endian. I
      find that sactosac is a program (not command) in the MACSAC package,
      which is not the same as IRIS SAC. Even though it is no longer
      necessary, IRIS SAC comes with a utility program sacswap that can
      switch endian.

      The listed error message for the READ command in SAC are

      - 0101: opening file
      - 0108: File does not exist:
      - 0114: reading file
      _______________________________________________
      sac-help mailing list
      sac-help<at>iris.washington.edu
      http://www.iris.washington.edu/mailman/listinfo/sac-help



  • Marcelo Bianchi
    2010-06-22 04:19:46
    Hi Megan,

    I never try to digitalize seismogram but i have a program that can do the
    swap of sac files.

    http://sites.google.com/site/foo4funreborn/software/sacswapbyte

    regards

    marcelo
    --
    Mobile ~ +47 908 62 225
    http://sites.google.com/site/foo4funreborn/



    2010/6/21 Megan E Torpey <torpey3<at>tcnj.edu>

    Hi,

    I'm having a SAC problem. I'm running a program to digitize paper
    seismograms. My digitization program saves the files I create as .SAC files.
    I got one digitized and saved it as .SAC but when I tried to read the file
    into SAC I got the following error:

    ERROR 1318: Header in disk file is out of date: myfile

    Header version number is incorrect.

    Header seems byte-swapped—byte-swap file and retry.

    I looked up sac help online and I got :
    http://www.iris.washington.edu/pipermail/sac-help/2010-March/000711.htmlbut that didn't work =( SAC is telling me that sactosac -m is not a valid
    command. I would really appreciate any help/ideas asap.

    Thanks,
    Megan Torpey

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


13:56:38 v.01697673