While attempting to modify header fields in a SAC-file and then writing the updated header to the SAC-file using WriteSacHeader() (which gives no errors), I get the following error message when attempting to read the SAC-file with updated header information using SacIO():
obspy.sac.sacio.SacError: File-size and theoretical size are inconsistent: LE2.X2..EL2.2010.001.SAC Check that headers are consistent with time series.
This error does not occur using the same files in Linux, only in Windows 7 64-bit.
I have attached a script and the SAC-file for replication.
System info:
OS: Windows 7 Professional 64-bit Build 7600 CPU: Core 2 Duo P8700 @ 2.53 GHz RAM: 4.00 GB
该提问来源于开源项目:obspy/obspy