Things to beware of when submitting SU code

SU stores floating-point trace values in native format, which unfortunately means su binary files are not architecture independent. You cannot rely on someone being able to use an "su" file generated on one system on another.

John Stockwell suggests a way around this problem: Strip off the headers of your su file and write the traces out as ASCII using:

sustrip head=hdrs.txt < | b2a n1=1 > data.ascii
Then in your shell script, convert it to binary, and put headers back on with:
b2a n1=1 < data.ascii | supaste head=hdrs.txt >

If your package requires the su libraries and environment to be useful, you can presume that anyone using it will already have utilities such as b2a, suaddhead, sustrip, and supaste.

Go back to reviewer / submitter Q&A