[SAC-HELP] sac101.5 32bit problem: can not change(update) header using sac101.5

Brian Savage savage at uri.edu
Sun Jan 8 12:20:29 PST 2012


Dear wangwt and Fabio,

There is a bug in sac version 101.5 command to write headers.  It only affects the command writehdr (wh).  

We should be able to create and upload to IRIS a patched version of version 101.5 in the coming days (week).

In the meantime, your options are 
	- Version 101.4 
	- Using the read/write command sequence instead of readhdr/writehdr

If you compiled the binary yourself by requesting the source file from IRIS, the attached patch file can be applied to remedy the writehdr bug.  

wangwt, Thank you for submitting the bug report and a simple command sequence  It was quite helpful to identifying source of the the bug.  Thanks again.

B

-------------- next part --------------
A non-text attachment was scrubbed...
Name: write_header.patch
Type: application/octet-stream
Size: 305 bytes
Desc: not available
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20120108/4102d46e/attachment.obj>
-------------- next part --------------


On Jan 8, 2012, at 1:57 PM, F?bio Dias wrote:

>  I have the same problem using  'ch'  version 101.5.  I came back to version 101.4.  
> 
> Fabio
> 
> 2012/1/8 weitao wang <wangwtustc at gmail.com>
> Hi everyone,
> 
> I recently update sac into sac 101.5 on centos6.2 and centos 5.5, both 32bit and encountered problems while changing headers using "ch ", as described bellow.
> 
> cat <<EOF >test.sh
> funcgen seis
> w demo.sac
> rh demo.sac
> ch t1 12.0
> wh
> r demo.sac
> lh t1 
> q
> EOF
> 
> sac < test.sh
> 
> As shown in my linux, the header t1 do not exist in demo.sac and moreover it seems the waveform has been changed.
> 
> Is this a bug or it is due to the setup of my linux env?  
> 
> Any advices ? thanks!
> 
> PS. I use the pre-compiled binary distribution of sac101.32bit.
> 
> wangwt
> 
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help
> 
> 
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help



More information about the sac-help mailing list