seismic.synthetics.backends package¶
Submodules¶
seismic.synthetics.backends.backend_syngine module¶
Backend for making synthetic seismograms using Syngine.
-
class
seismic.synthetics.backends.backend_syngine.
SynthesizerSyngine
(station_latlon, earth_model='iasp91')[source]¶ Bases:
seismic.synthetics.backends.synthesizer_base.Synthesizer
Class to synthesize seismograms using online Syngine service.
- To write resultant stream to HDF5 format, add ‘ignore’ option:
synth_stream.write(‘test_synth.h5’, ‘h5’, ignore=(‘mseed’,))
-
synthesize
(src_latlon, fs, time_window)[source]¶ See documentation for
synthesize()
seismic.synthetics.backends.backend_tws module¶
Backend for making synthetic seismograms using Telewavesim.
-
class
seismic.synthetics.backends.backend_tws.
SynthesizerMatrixPropagator
(station_latlon, layerprops)[source]¶ Bases:
seismic.synthetics.backends.synthesizer_base.Synthesizer
Class to synthesize seismograms from a 1D model description using Kennett’s matrix propagator method.
-
property
kappa
¶
-
synthesize
(src_latlon, fs, time_window)[source]¶ See documentation for
synthesize()
-
property
seismic.synthetics.backends.synthesizer_base module¶
Base class for seismogram synthesis class
-
class
seismic.synthetics.backends.synthesizer_base.
Synthesizer
(station_latlon)[source]¶ Bases:
object
Base class for seismogram synthesizers.
-
compute_event_stats
(src_lat, src_lon, eventid_base, src_depth_m=0, earth_model='iasp91', phase='P', origin_time=None)[source]¶ Compute trace stats fields for a source single event.
- Parameters
src_lat – Source latitude
src_lon – Source longitude
eventid_base – Base string for event id
src_depth_m – Source depth in metres
earth_model – String name of earth model to use for ray tracing
phase – Which phase is being modelled
origin_time – Timestamp of the source event
- Returns
stats dict
-
property
station_latlon
¶
-
abstract
synthesize
(src_latlon, fs, time_window)[source]¶ Function signature for function to compute synthetic dataset of obspy streams.
- Parameters
src_latlon – Iterable of source (lat, lon) locations
fs – Sampling rate in Hz
time_window – Pair of time values relative to onset
- Returns
obspy.Stream containing ZNE velocity seismogram
-