obspy.clients.earthworm.client.Client.get_availability

Client.get_availability(network='*', station='*', location='*', channel='*')[source]

Gets a list of data available on the server.

This method returns information about what time series data is available on the server. The query can optionally be restricted to specific network, station, channel and/or location criteria.

Parameters:
  • network (str) – Network code, e.g. 'UW', wildcards allowed.

  • station (str) – Station code, e.g. 'TUCA', wildcards allowed.

  • location (str) – Location code, e.g. '--', wildcards allowed.

  • channel (str) – Channel code, e.g. 'BHZ', wildcards allowed.

Return type:

list

Returns:

List of tuples with information on the available data. One tuple consists of network, station, location, channel (all strings), start time and end time (both as UTCDateTime).

Example

>>> from obspy.clients.earthworm import Client
>>> client = Client("pubavo1.wr.usgs.gov", 16022, timeout=5)
>>> response = client.get_availability(
...     network="AV", station="AKV", channel="BH*")
>>> print(response)  
[('AV',
  'AKV',
  '--',
  'BHE',
  UTCDateTime(...),
  UTCDateTime(...)),
 ('AV',
  'AKV',
  '--',
  'BHN',
  UTCDateTime(...),
  UTCDateTime(...)),
 ('AV',
  'AKV',
  '--',
  'BHZ',
  UTCDateTime(...),
  UTCDateTime(...))]