I have some SAC files produced by a code running on Linux (CentOS)
with Xeon processors and when I try to read them from within SAC I get
this message:
ERROR 1318: Header in disk file is out of date: (name of file)
Header version number is incorrect.
Header seems byte-swapped -- byte-swap file and retry
I am using MacSAC which I thought doesn't care if the file is little
or big endian.
I cannot find the sacswap tool that apparently is distributed with
MacSAC.
The same code running on SUN machines produces SAC files which I have
no problem reading.
What to do?
with Xeon processors and when I try to read them from within SAC I get
this message:
ERROR 1318: Header in disk file is out of date: (name of file)
Header version number is incorrect.
Header seems byte-swapped -- byte-swap file and retry
I am using MacSAC which I thought doesn't care if the file is little
or big endian.
I cannot find the sacswap tool that apparently is distributed with
MacSAC.
The same code running on SUN machines produces SAC files which I have
no problem reading.
What to do?
-
MacSAC expects all binary SAC files to be big-endian. MacSAC's utility for byte swapping is called sactosac and is distributed with MacSAC. You probably want to use the -m option, which will byte-swap files that aren't big-endian, irrespective of the processor type you're running on.
Usage: sactosac [-vfm] [sacfile(s)]
-f - force conversion even if format is native for machine on
which program is running. Otherwise only converts files
that are in a different format than desired for current
machine.
-m - force conversion to MacSAC (big-endian, Sun) byte-order.
-v - verbose - describe what program is doing and what it is
converting.
On 15 Mar 2010, at 21:50, Shahar Kadmiel שחר קדמיאל wrote:
I have some SAC files produced by a code running on Linux (CentOS) with Xeon processors and when I try to read them from within SAC I get this message:
George Helffrich
ERROR 1318: Header in disk file is out of date: (name of file)
Header version number is incorrect.
Header seems byte-swapped -- byte-swap file and retry
I am using MacSAC which I thought doesn't care if the file is little or big endian.
I cannot find the sacswap tool that apparently is distributed with MacSAC.
The same code running on SUN machines produces SAC files which I have no problem reading.
What to do?
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help