Header fields when reading sac file

Dear Josip,
those header values are automatically set at run time by SAC, when station and event coordinates are available in the header.

However SAC does not save them to disk, unless you explicitly do a “wh”.

If you do:

r test.sac
wh

and then look at your file in ObsPy, those missing fields should now be there.

Cheers,
Claudio

Hi guys,

Claudio thanks for the answer. That solves it. I wasn't aware that SAC
calculates those values at runtime each time if values are not saved with
wh.

Thanks,
Josip