SeismicSource / sourcespec

Earthquake source parameters from P- and S-wave displacement spectra
https://sourcespec.seismicsource.org
Other
50 stars 12 forks source link

P wave type (version 2) #9

Closed krisvanneste closed 2 years ago

krisvanneste commented 2 years ago

This feature branch implements inversion of P-wave spectra:

claudiodsf commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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