[obspy-users] Headers not updated in SAC files
aj.schaeffer at gmail.com
Sun Jul 19 14:49:52 CEST 2015
I believe that the SAC header variable LCALDA determines whether the
DIST/GCARC/AZ/BAZ are calculated at load time for the SAC file. Make sure
that in obspy, your LCALDA variable is still set to "True" before writing
the sac file from obspy. If you're reading in miniseed files, which don't
have an LCALDA header value, then this may be filled as false by default.
On Fri, Jul 17, 2015 at 5:22 PM, AYODEJI KUPONIYI <
ayodeji.kuponiyi at gmail.com> wrote:
> Hi all:
> While reading and writing sac files with obspy, I encountered a similar
> problem posted on the obspy forum in March 2014 (
> In my case, the sac headers are not updated on obspy and I could not write
> to file the dist, az and baz computed in obspy. As a result, I manually
> input the stlo, stla, evlo and evla, into the obspy file. However, after
> writing the obspy mseed file in sac format, sac should automatically
> calculate the distance header, but this is not happening.
> As suggested in the response (
> http://lists.swapbytes.de/archives/obspy-users/2014-March/001307.html), I
> tried the 'wh' option in SAC but the DIST, AZ and BAZ still were not
> computed, I am not sure if this is related to how obspy writes the output
> sac file.
> I would appreciate anyone's help.
> Thank you,
> University of Victoria
> obspy-users mailing list
> obspy-users at lists.swapbytes.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the obspy-users