5.5. locate¶
Functions to locate earthquakes detected by EQcorrscan. Designed primarily locate stacks of detections to give family locations. Extensions may later be written, not tested for accuracy.
copyright: | Calum Chamberlain, Chet Hopp. |
---|---|
license: | GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html) |
-
locate.
cross_net
(stream, env=False, debug=0, master=False)[source]¶ Function to generate picks for each channel based on optimal moveout defined by maximum cross-correaltion with master trace. Master trace will be the first trace in the stream.
Parameters: Returns: list of pick class
-
locate.
stalta_pick
(stream, stalen, ltalen, trig_on, trig_off, freqmin=False, freqmax=False, debug=0, show=False)[source]¶ Simple sta-lta (short-term average/long-term average) picker, using obspy’s stalta routine to generate the characteristic function.
Currently very basic quick wrapper, there are many other (better) options in obspy, found (here)[http://docs.obspy.org/packages/autogen/obspy.signal.trigger.html].
Parameters: - stream (obspy.Stream) – The stream to pick on, can be any number of channels.
- stalen (float) – Length of the short-term average window in seconds.
- ltalen (float) – Length of the long-term average window in seconds.
- trig_on (float) – sta/lta ratio to trigger a detection/pick
- trig_off (float) – sta/lta ratio to turn the trigger off - no further pickswill be made between exceeding trig_on until trig_off is reached.
- freqmin (float) – Low-cut frequency in Hz for bandpass filter
- freqmax (float) – High-cut frequency in Hz for bandpass filter
- debug (int) – Debug output level from 0-5.
- show (bool) – Show picks on waveform.
Returns: list of pick class.