-
Notifications
You must be signed in to change notification settings - Fork 21
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
Development easyQuake #23
base: development
Are you sure you want to change the base?
Development easyQuake #23
Conversation
Added exception for stations whose channel_code == "1" or "2". Previous version only accounted for stations with channel_code == "E" or "N"
New quakeml_to_nlloc() that converts arrival times from detected earthquakes to NLLOC_OBS format to relocate the catalog using Nonlinloc.
Added EqT_model_conservative.h5 and EqT_original_model.h5 from EQTransformer update in its GitHub repository.
Added total_picks_catalog().
Now, magnitude_quakeml() filters the outliers by comparing them against the median and interquartile range (iqr) of the list of local magnitudes. New function added: mblg_ign_magnitude(). This function computed the mblg catalog according to the Spanish Seismic Network criteria (peak amplitude, period and hypocentral distance).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change the for both models here? Is that based on what worked best for you or based on original EQT documentation for original model?
It's based on comments written by Mousavi on EQT repository:
For the conservative model, I set slightly different values for the thresholds (0.05 instead of 0.03 for P, S, and 0.2 instead of 0.3 for detection), but they work well with my data. I also tested what results could I get by changing the overlapping to 0.6 (Mousavi recommends 0.9 here: smousavi05/EQTransformer#128, although it seemed too much for me), but the original model showed a poor performance. There were too many false positives when I ran the association with 3 stations*. *I cared only for the earthquake detection and epicentral location, so 3 stations were OK to test every model. Later, I run a new association with 4 stations with fewer detections for every model. |
I added some modifications to easyQuake.py to include new functions for computing local and mblg magnitudes. Also, I created a function that merges all the picks into a single file to study the evolution of the detection.
There are some minor modifications in mseed_predictor.py for allowing to change between the "original" and the "conservative" versions of the EQTransformer model. Both .h5 files were taken from the EQTransformer GitHub repository, and are supposed to be the latest version.
Finally, the readme.md file includes some indications for installing this software on workstations with different versions of CUDA.