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

P wave type (version 2) #9

Merged
merged 16 commits into from
Jul 19, 2022
Merged

Conversation

krisvanneste
Copy link
Collaborator

This feature branch implements inversion of P-wave spectra:

  • Added 'rpp' configuration parameter for average P-wave radiation coefficient in sourcespec.conf.
  • Start and end time of the P-window are computed, making sure it does not overlap with the S phase, and stored in the trace headers (in ssp_process_traces.py).
  • Selection of P/S-window based on config.wave_type for computing spectra (in ssp_process_traces.py and ssp_build_spectra.py) and plotting the traces (ssp_plot_traces.py).
  • Selection of Z-component only for P-wave spectra (in ssp_build_spectra.py).
  • Selection of average P/S radiation coefficient or of P/S takeoff angle (when using focal mechanism) based on config.wave_type (in ssp_radiation_pattern.py).
  • Selection of P/S velocities based on config.wave_type to convert displacement to moment (in ssp_build_spectra.py).
  • Selection of P/S velocities based on config.wave_type to compute quality factor (in ssp_inversion.py) and to determine bounds on t_star from Qo bounds (in ssp_data_types.py).

krisvanneste and others added 9 commits July 18, 2022 11:42
…ern coefficient.

(cherry picked from commit be044694f379e2389dc5e72b42972dd228f0cdb7)
(cherry picked from commit 240947b41cf2cc58f2f39612d21c415dbf4516d9)
…stream and _check_sn_ratio functions.

(cherry picked from commit 5fb228f80cea638bcea6042a4a0a9d07a8e972f6)
(cherry picked from commit 441ef04db77fe7b7ea949e2a09d377858b8d9e16)
…functions.

Added support for P wave type in _check_data_len and _cut_signal_noise functions.

(cherry picked from commit c81889f33288507560dc72f8924eabf6f02f3971)
…ction.

Write hypocentral and station velocities to log in _displacement_to_moment function.
@claudiodsf
Copy link
Member

Hi @krisvanneste,
I added some more commits and it's now good to go for me.

Please note that some configuration options have been renamed.

Could you please double-check?

@krisvanneste
Copy link
Collaborator Author

Hi @krisvanneste, I added some more commits and it's now good to go for me.

Please note that some configuration options have been renamed.

Could you please double-check?

Claudio,

I don't get the same results as before. I need some time to figure out where the differences come from.

@krisvanneste
Copy link
Collaborator Author

krisvanneste commented Jul 19, 2022

OK, my problem was due to incorrect setting of the 'rp_from_focal_mechanism' option. I now get exactly the same results for Mw, fc and t_star. Only the Qo values are different. I checked and this is due to a problem in the ssp_wave_arrival._wave_arrival function, where travel time calculation for constant velocity fails if vp_tt or vs_tt is None. However, this has not strictly something to do with this branch, I can open another issue for that.

@claudiodsf
Copy link
Member

Ok, so I'll merge this one and wait for your issue on vp_tt and vs_tt.

@claudiodsf claudiodsf merged commit ba60420 into SeismicSource:master Jul 19, 2022
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

Successfully merging this pull request may close these issues.

2 participants