SPHASEPICKER is a powerful tool for automatically picking S-phase onsets with high precision without requiring detection interval or threshold settings. The algorithm detects S-phase onset in single-component acceleration or broadband velocity records using the histogram method. It also computes signal-to-noise ratio (SNR).
A demo file is provided in zip file to show how to run SPHASEPICKER using a sample waveform. For your intended application, filter corner frequencies may need to be updated based on the frequency content of the input record.
If you find this code useful for your application, please don't forget to rate it.
For questions / suggestions / comments and bug reports: email@example.com
Dr. Erol Kalkan, P.E. (2019). An Automated S-phase Arrival Time Picker with SNR Output (https://www.mathworks.com/matlabcentral/fileexchange/70343-an-automated-s-phase-arrival-time-picker-with-snr-output), MATLAB Central File Exchange. Retrieved .
Picking algorithm is optimized for speed and accuracy, full debug option is added to plot two additional figures, notes updated. This version is more stable.
Added the missing integration function
Create scripts with code, output, and formatted text in a single executable document.