This file contains hidden or 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
from pyrocko.gf import meta | |
from pyrocko.gf.seismosizer import Source | |
from pyrocko import gf | |
from pyrocko.guts import Float | |
from pyrocko import moment_tensor as mtm | |
import numpy as num | |
pi = num.pi | |
pi4 = pi / 4. | |
km = 1000. |
This file contains hidden or 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 pyrocko-python | |
import sys | |
import logging | |
import tempfile | |
import math | |
import os.path as op | |
import shutil | |
try: | |
from urllib.error import HTTPError |
This file contains hidden or 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
import matplotlib.pyplot as plt | |
import numpy as np | |
import osmnx as ox | |
''' | |
Slimmed down example plot of city street network orientations for a single city, | |
instead of multiple as in the osmnx notebook. | |
Needs the awesome package osmnx: | |
https://github.com/gboeing/osmnx |
This file contains hidden or 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
import numpy as num | |
from pyrocko import cake | |
from silvertine.util.ref_mods import * | |
km = 1000. | |
def convert2shm_ttt(mod): | |
# define cake phase to be used | |
phases = cake.PhaseDef.classic('Pg') |
This file contains hidden or 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
from pyrocko import model | |
import numpy as np | |
from pyrocko.gui.pile_viewer import PhaseMarker, EventMarker | |
from pyrocko import cake, util | |
from pyrocko.gui import marker as pym | |
from pyrocko.util import stt | |
def monthToNum(shortMonth): |
This file contains hidden or 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
from pyrocko.client import fdsn | |
from pyrocko import util, io, trace, model | |
from pyrocko.io import quakeml | |
fdsn.g_timeout = 60. | |
# Start and end time | |
tmin = util.stt('2021-05-26 13:40:00') | |
tmax = util.stt('2021-05-26 14:22:00') |
This file contains hidden or 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
import os | |
import snappy | |
from snappy import GPF | |
from snappy import ProductIO | |
from snappy import HashMap | |
from snappy import jpy | |
import subprocess | |
from time import * | |
# documentation: http://step.esa.int/docs/v2.0/apidoc/engine/overview-summary.html |