obspy.neries.client.Client.getWaveform

Client.getWaveform(network, station, location, channel, starttime, endtime, format='MSEED')[source]

Retrieves waveform data from the NERIES Web service and returns a ObsPy Stream object.

Parameters:
  • network (str) Network code, e.g. 'BW'.
  • station (str) Station code, e.g. 'MANZ'.
  • location (str) Location code, e.g. '01'. Location code may contain wild cards.
  • channel (str) Channel code, e.g. 'EHE'. . Channel code may contain wild cards.
  • starttime (UTCDateTime) Start date and time.
  • endtime (UTCDateTime) End date and time.
  • format ('FSEED' or 'MSEED', optional) Output format. Either as full SEED ('FSEED') or Mini-SEED ('MSEED') volume. Defaults to 'MSEED'.
Returns:

ObsPy Stream object.

Example

>>> from obspy.neries import Client
>>> client = Client(user='test@obspy.org')
>>> dt = UTCDateTime("2009-04-01T00:00:00")
>>> st = client.getWaveform("NL", "WIT", "", "BH*", dt, dt+30)
>>> print st  
3 Trace(s) in Stream:
NL.WIT..BHZ | 2009-04-01T00:00:00.010200Z - ... | 40.0 Hz, 1201 samples
NL.WIT..BHN | 2009-04-01T00:00:00.010200Z - ... | 40.0 Hz, 1201 samples
NL.WIT..BHE | 2009-04-01T00:00:00.010200Z - ... | 40.0 Hz, 1201 samples

This Page