If you have kept the SAC tree (or a binary tarball) for an older version
of SAC that you may want to run, the following script may be useful:
cat /usr/local/jas/bin/newsac
#!/bin/tcsh
setenv SACHOME "$1"
setenv SACAUX "${SACHOME}/aux"
setenv PATH "${SACHOME}/bin:${PATH}"
${SACHOME}/bin/sac /usr/local/jas/macros/init.m
To test if the unwrap command worked in 101.2, I did the following:
newsac /usr/local/jas/sac_archive/sac-080904
SEISMIC ANALYSIS CODE [09/04/2008 (Version 101.2)]
Copyright 1995 Regents of the University of California
SAC> fg seis
SAC> unwrap
DC level after DFT is -0.98547
SAC> quit