Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent kztime in SAC Headers affecting Moment Tensor Inversion in MTUQ #147

Open
Aayushi-10 opened this issue Sep 26, 2024 · 2 comments

Comments

@Aayushi-10
Copy link

I am encountering an issue while downloading data with PySEP for the networks 8H, 7B, and 5C. The kztime in the SAC headers for all the station differs, which is causing difficulties in performing moment tensor inversion using the downloaded data.

I utilized the following file for data extraction: https://github.com/Aayushi-10/Test/blob/main/2016-12-12T220444_HINDU_KUSH.yaml

And the following file for conducting the MTUQ inversion: https://github.com/Aayushi-10/Test/blob/main/HinduKush_Sample.py

This is the error which I’m facing:

Screenshot (447)

@bch0w
Copy link
Member

bch0w commented Oct 1, 2024

Hi @Aayushi-10, is this related to #146?

kztime is not explicitly set in PySEP and is built from tr.stats.starttime - tr.stats.sac.b (from here: obspy/obspy#163). PySEP sets b here (https://github.com/adjtomo/pysep/blob/master/pysep/utils/cap_sac.py#L188), so kztime should just be the event origin time.

Can you provide log files for your PySEP data download for one station? That might help diagnose the issue.

@Aayushi-10
Copy link
Author

Hi @bch0w,

Thank you for responding.

Yes, this issue is related to #146. Below is the link to the log file generated when I was using network 8H and station EP02:

https://github.com/Aayushi-10/Test/blob/main/pysep.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants