obspy.clients.syngine.client.Client.get_waveforms
- Client.get_waveforms(model, network=None, station=None, receiverlatitude=None, receiverlongitude=None, networkcode=None, stationcode=None, locationcode=None, eventid=None, sourcelatitude=None, sourcelongitude=None, sourcedepthinmeters=None, sourcemomenttensor=None, sourcedoublecouple=None, sourceforce=None, origintime=None, starttime=None, endtime=None, label=None, components=None, units=None, scale=None, dt=None, kernelwidth=None, format='miniseed', filename=None)[source]
Request waveforms using the Syngine service.
This method is strongly tied to the actual implementation on the server side. The default values and all the exception handling are deferred to the service. Please see the Syngine documentation for more details and the default values of all parameters.
Example
>>> from obspy.clients.syngine import Client >>> client = Client() >>> st = client.get_waveforms(model="ak135f_5s", network="IU", ... station="ANMO", ... eventid="GCMT:C201002270634A") >>> print(st) 3 Trace(s) in Stream: IU.ANMO.SE.MXZ | 2010-02-27T06:35:14... - ... | 4.0 Hz, 15520 samples IU.ANMO.SE.MXN | 2010-02-27T06:35:14... - ... | 4.0 Hz, 15520 samples IU.ANMO.SE.MXE | 2010-02-27T06:35:14... - ... | 4.0 Hz, 15520 samples
- Parameters:
model (str) – Specify the model.
network (str) – Specify a network code combined with
station
to identify receiver coordinates of an operating station.station (str) – Specify a station code combined with
network
to identify receiver coordinates of an operating station.receiverlatitude (float) – Specify the receiver latitude in degrees.
receiverlongitude (float) – Specify the receiver longitude in degrees.
networkcode (str) – Specify the network code for the synthetics. Optional when using
receiverlatitude
andreceiverlongitude
.stationcode (str) – Specify the station code for the synthetics. Optional when using
receiverlatitude
andreceiverlongitude
.locationcode (str) – Specify the location code for the synthetics. Optional in any usage.
eventid (str) – Specify an event identifier in the form [catalog]:[eventid]. The centroid time and location and moment tensor of the solution will be used as the source.
sourcelatitude (float) – Specify the source latitude.
sourcelongitude (float) – Specify the source longitude.
sourcedepthinmeters (float) – Specify the source depth in meters.
sourcemomenttensor (list[float]) – Specify a source in moment tensor components as a list:
Mrr
,Mtt
,Mpp
,Mrt
,Mrp
,Mtp
with values in Newton meters (Nm).sourcedoublecouple (list[float]) – Specify a source as a double couple. The list of values are
strike
,dip
,rake
[,M0
], where strike, dip and rake are in degrees and M0 is the scalar seismic moment in Newton meters (Nm). If not specified, a value of 1e19 will be used as the scalar moment.sourceforce (list[float]) – Specify a force source as a list of
Fr
,Ft
,Fp
in units of Newtons (N).origintime (
UTCDateTime
) – Specify the source origin time. This must be specified as an absolute date and time.starttime (
UTCDateTime
, str or float) –Specifies the desired start time for the synthetic trace(s). This may be specified as either:
an absolute date and time
a phase-relative offset
an offset from origin time in seconds
If the value is recognized as a date and time, it is interpreted as an absolute time. If the value is in the form
phase[+-]offset
it is interpreted as a phase-relative time, for exampleP-10
(meaning P wave arrival time minus 10 seconds). If the value is a numerical value it is interpreted as an offset, in seconds, from theorigintime
.endtime (
UTCDateTime
, str or float) –Specifies the desired end time for the synthetic trace(s). This may be specified as either:
an absolute date and time
a phase-relative offset
an offset from start time in seconds
If the value is recognized as a date and time, it is interpreted as an absolute time. If the value is in the form
phase[+-]offset
it is interpreted as a phase-relative time, for exampleP+10
(meaning P wave arrival time plus 10 seconds). If the value is a numerical value it is interpreted as an offset, in seconds, from thestarttime
.label (str) – Specify a label to be included in file names and HTTP file name suggestions.
components (str or list[str].) – Specify the orientation of the synthetic seismograms as a list of any combination of
Z
(vertical),N
(north),E
(east),R
(radial),T
(transverse)units (str) – Specify either
displacement
,velocity
oracceleration
for the synthetics. The length unit is meters.scale (float) – Specify an amplitude scaling factor. The default amplitude length unit is meters.
dt (float) – Specify the sampling interval in seconds. Only upsampling is allowed so this value must be larger than the intrinsic interval of the model database.
kernelwidth (int) – Specify the width of the sinc kernel used for resampling to requested sample interval (
dt
), relative to the original sampling rate.format (str) – Specify output file to be either miniSEED or a ZIP archive of SAC files, either
miniseed
orsaczip
.filename (str or file-like object) – Will download directly to the specified file. If given, this method will return nothing.