This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Simple benchmark of matched-filter in EQcorrscan for PR #544 | |
""" | |
import boto3 | |
import os | |
import logging | |
import pickle | |
from obspy import UTCDateTime |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SparseEvent: | |
""" | |
Sparse event class with only picks and origins to mimic | |
obspy events. | |
""" | |
def __init__(self, resource_id, origins, picks): | |
self.resource_id = resource_id | |
self.origins = origins | |
self.picks = picks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Collect and run the EQcorrscan tests. | |
:copyright: | |
EQcorrscan developers. | |
:license: | |
GNU Lesser General Public License, Version 3 | |
(https://www.gnu.org/copyleft/lesser.html) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_geonet_moment_tensor(catalog): | |
""" | |
Get the moment tensor info for a given set of events, and add them to the | |
events. | |
Use John Ristau's MT catalog here: | |
`https://raw.githubusercontent.com/GeoNet/data/master/moment-tensor/GeoNet_CMT_solutions.csv` | |
which does not include all events, if events are not in the database they | |
will warn that they are not found. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder