weixin_39747577 2020-11-20 20:17
浏览 0

WriteSacHeader() failure

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

  • 写回答

7条回答 默认 最新

  • weixin_39747577 2020-11-20 20:17
    关注

    [barsch] Thank you for your bug report - could you please also add the SAC file LE2.X2..EL2.2010.001.SAC too. Thanks!

    评论

报告相同问题?