-
Notifications
You must be signed in to change notification settings - Fork 32
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
FocMec setup #12
Comments
Hi Abraham, you need three pieces in a
I've added my setup in e9c1fe9. Let me know if anything is unclear. (Edit: added some more clarifications) |
Does obspyck create the input files from the picks in the GUI or does the user need to supply focmec input files for each event? |
Input files with picks are of course generated from what is currently set on the waveforms in the GUI.
I've added some clarifications in my above post |
Thanks for the update above, that helped clarify things greatly. |
When I run 'show FocMec' I get the following error: //anaconda/lib/python2.7/site-packages/obspy/core/util/attribdict.py:97: UserWarning: Setting attribute "_beachball" which is not a default attribute ("creation_info", "method_id", "moment_tensor", "resource_id", "evaluation_status", "station_distribution_ratio", "comments", "triggering_origin_id", "waveform_id", "nodal_planes", "misfit", "station_polarity_count", "azimuthal_gap", "principal_axes", "evaluation_mode"). I realize this is a matplotlib/text.py error during drawing but do you have any idea why this would be occurring and how to fix it? Lastly, I noticed that it always picks the first solution for the focal mechanism to show, but you can choose to push the 'next FocMec' button to see the next solution. When I push the button I get the following error: selecting Focal Mechanism No. 2 of 20: Am I misusing the button or is there another way to show another solution? If I'm not misusing it do you know how to fix this error? Thanks. |
Hmm.. I honestly haven't used focmec in a while.. Do you have an example with openly accessible data that I could run on my machine? |
Sure. I'm pulling from the FDSN server and using stations for the Tohuku event (as is your default time in the .obspyckrc file. Thus use your example time in the example.cfg file ): Change your EXAMPLE1 to the following stations: EXAMPLE1=IU.DAV.00.BH_,IU.MIDW.00.BH_,IU.TIXI.00.BH_,IU.BILL.00.BH_,IU.COLA.10.BH_,IU.RSSD.10.BH_,IU.SFJD.00.BH_,IU.JOHN.00.BH_,IU.FUNA.00.BH_,IU.CTAO.00.BH_,II.TLY.00.BH_,II.AAK.00.BH_,II.OBN.00.BH_,II.MSVF.00.BH_,II.WRAB.10.BH_,II.ARU.00.BH_,G.INU.00.BH_,IU.MAJO.00.BH_,II.ERM.00.BH_,JP.JHJ2..BH_,G.KIP.00.BH_,IU.YSS.00.BH_,IC.MDJ.00.BH_,IU.INCN.00.BH_,IU.TATO.00.BH_,JP.JOW..BH_,IU.GUMO.00.BH_,HK.HKPS.00.BH_,IC.BJT.00.BH_,IU.PET.00.BH_,IU.ULN.00.BH_,IU.KWAJ.00.BH_,MI.ANNE..BH_,IU.YAK.00.BH_,IU.MA2.11.BH_,IU.POHA.10.BH_,IU.PMG.00.BH_,AT.SMY..BH_,IC.HIA.00.BH_,IC.ENH.00.BH_,AK.ATKA..BH_,AK.SII..BH_,CI.PHL..BH_,AU.MANU..BH_,JP.CBIJ..BH_,JP.YOJ..BH_,KC.TARG..BH* You could shorten the station list and just use the first 5 stations if you want. Either way with fewer picks and/or more picks I get the same error. I'm trying to troubleshoot the output more and see if I can narrow down what might be causing it. I'm using a global nlloc configuration file (ak135 velocity model) from the NNLOC examples but can pass my configuration file to you if you'd like too. Let me know. |
I believe I've narrowed it down to the fact that the incidence angles aren't being created, if I'm correct in the assumption that the phase file (input focmec file) should have 4 columns with the following information: col1 col2 col3 col4 I'm missing the incidence angle, and so the array of incidence angles is full of nans, hence probably why the scatter plot and self.canv.draw() lines have issues with the incis[mask]. Do the incidence angles come from NLLOC or are they internal to the obspyck? E.g., Here's an output of the file: Phases for focmec: 5 AAK 297.48 nanU The question though is how can I fix this? |
Hmm.. you only get incidence/takeoff angles and backazimuth if you also calculate the angle cubes for NonLinLoc, that is you need But there should be a better error message and an appropriate Exception being raised by obspyck.. |
You're correct. I emailed Anthony Lomax to ask how to add the takeoff angles in global mode of nlloc, as the LOCANGLES_YES parameter doesn't calculate them without the angle files. If anyone else has this problem they can do the following: To get angles you need to add the following lines in /nlloc_global_sample/taup/TauP_Table_NLL.sh Then you need to set LOCANGLES_YES parameter in the input configuration file. Everything else should work within obspyck thereafter. |
In terms of my other issue raised above, when selecting the 'next FocMec' button after running the 'show FocMec' button I get the following error: selecting Focal Mechanism No. 2 of 20: Am I misusing the button or is there another way to show another solution? E.g., if I don't want the first solution do I select 'next Focmec' prior to pushing the 'show FocMec' button? If I'm not misusing it do you know how to fix this error? Thanks. |
How big is the nonlinloc cube for one station? Is it some manageable file size? (Kinda lazy to go through those nlloc steps..) |
NLLOC "./nlloc.20110311.055059.grid0" "LOCATED" "Location completed." My oct tree search is set to go through LOCSEARCH OCT 96 48 6 0.05 50000 10000 4 0 Was this the information you're looking for or simply how big the buffer/header files are? |
Yep, I was interested in file size of the travel time cubes (*.buf). |
Hi Tobais,
I have downloaded
FocMec
from IRIS and placed in within myObspyck
dir. I was just wondering what needs to be done in terms of bash scripts so that focmec can be called simply by clicking ondo focmec
in the Obspyck interface ?The text was updated successfully, but these errors were encountered: