Hi<br><br>You could take a look at a small program that I wrote that can do it for you. The name of the program is sacswapbyte.<br>You can check it from my webpage ... <br><br><a href="http://sites.google.com/site/foo4funreborn/" target="_blank">http://sites.google.com/site/foo4funreborn/</a><br>
<br>From this program you can pass in many files and say that I want that the output should be little or big and will find out wich files need to be converted and those that should not be changed. Also there are other tools (sactools) on my webpage for handling large amounts of sacdata in one run. Like make tables of header variables or renaming sac files ... well have a look ! <br>
<br>regards,<br><br>marcelo <br clear="all">--<br>Mobile ~ +47 9080 6225<br><a href="http://sites.google.com/site/foo4funreborn/" target="_blank">http://sites.google.com/site/foo4funreborn/</a><br><br>
<br><br><div class="gmail_quote">2010/10/13 Derek Schutt <span dir="ltr">&lt;<a href="mailto:Derek.Schutt@colostate.edu">Derek.Schutt@colostate.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
 It&#39;s been a while since I worried about this, and I&#39;ve screwed things up a bit.<br>
<br>
I requested some data from the DMC, using Standing Order for Data (SOD).   It is big-endian.   When I write a sac file on my x86 computer, the sac file seems to be in little-endian format (the native format); however, when I just write headers to the original sac file, the file stays in the big-endian format.<br>

<br>
I&#39;d like all my data to be in one format, preferably the native, little-endian, format.   I can use sacswap to change format, but it seems to work indiscriminantly on files, swapping them even if they are in the native format.<br>

<br>
So, I was wondering:<br>
    1) If there is any way to make sac write files in the same byte-order that the file was read in<br>
    2) is there a more elegant way to work with sacswap, to get it to only swap non-native byte order files.   I think the mac version of sacswap does do this.<br>
<br>
I realize now I should have used the &lt;littleEndian/&gt; tag in my SOD request, and it&#39;s actually not to hard to retrace my steps and run sacswap on the files that need to be swapped.   But I can&#39;t help if there is a more elegant way to do this...<br>

<br>
Thanks,<br>
<br>
Derek<br>
<br>
-- <br>
--------------------<br>
Derek Schutt<br>
Assistant Professor<br>
Geosciences Department<br>
309 Natural Resources Building<br>
Campus Delivery 1482<br>
Fort Collins, CO 80525-1482<br>
<a href="http://warnercnr.colostate.edu/%7Eschutt/CSU_web/index.htm" target="_blank">http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm</a><br>
970-491-5786<br>
<br>
_______________________________________________<br>
sac-help mailing list<br>
<a href="mailto:sac-help@iris.washington.edu" target="_blank">sac-help@iris.washington.edu</a><br>
<a href="http://www.iris.washington.edu/mailman/listinfo/sac-help" target="_blank">http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br>
</blockquote></div><br>