-
Notifications
You must be signed in to change notification settings - Fork 13
Clipping detection #23
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
Comments
Claudio, I will run a test in the coming days! |
Thanks! The only downside of Copilot is that it's 10$/month... (after 60 days trials) I'm trying and see if my department can pay for it 😉 |
Oh I see, that could be a bummer... |
Claudio, I tested your new clip detection with my data, with variable success (both false positives and false negatives). I made the following changes:
With these changes, I obtain 3 correct detections (BE.BEBN, BE.MEMB BE.STI, see attached plots), 1 false positive (station BE.STWA) and no false negatives for the P phase on the Z component with my test case, and 4 correct detections (BE.BEBN, BE.LCH, BE.MEMB, BE.RCHB), 1 possible false positive (BE.MEMS, limit case) and no false negatives for the S phase on the N component. In all cases, this is using the lowest sensitivity (which I think should be the default with the current implementation). With higher sensitivities, more false positives are coming up. For the P phase, only 2 stations never trigger a clip detection, and for the S phase only 1. Debug plots: Further improvements that could be considered:
I made a new branch and will create a pull request. |
Hi Kris, thanks for this work!!! I'll review it in the following days or next week. |
Claudio, no hurry. I'm quite busy as well these days. |
Uh oh!
There was an error while loading. Please reload this page.
Hi @krisvanneste,
I moved the discussion on clipping detection here.
Yes, it is hard! So I improved the strategy and added a parameter (commit c71cc5f).
I moved the clipping detector to a standalone module, which can be called from the command line program
clipping_detection
, in case one wants to do some test (but bear in mind that traces are not cut, when calling from the command line).Let me know what do you think, as soon as you have time (as usual, no rush!), thanks!
P.S. I tried GitHub Copilot to write the docstring of
is_clipped()
as well as the main function withargparse
: it is pretty impressive!The text was updated successfully, but these errors were encountered: