obspy.neries.client.Client.getInventory

Client.getInventory(network, station=u'*', location=u'*', channel=u'*', starttime=UTCDateTime(2015, 5, 20, 8, 28, 10, 826441), endtime=UTCDateTime(2015, 5, 20, 8, 28, 10, 826448), instruments=True, min_latitude=-90, max_latitude=90, min_longitude=-180, max_longitude=180, modified_after=None, format=u'SUDS')[source]

Returns information about the available networks and stations in that particular space/time region.

Parameters:
  • network (str) Network code, e.g. 'BW'.
  • station (str) Station code, e.g. 'MANZ'. Station code may contain wild cards.
  • 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.
  • instruments (bool, optional) Include instrument data. Default is True.
  • min_latitude (float, optional) Minimum latitude, defaults to -90.0.
  • max_latitude (float, optional) Maximum latitude, defaults to 90.0.
  • min_longitude (float, optional) Minimum longitude, defaults to -180.0.
  • max_longitude (float, optional) Maximum longitude, defaults to 180.0.
  • modified_after (UTCDateTime, optional) Returns only data modified after given date. Default is None, returning all available data.
  • format (str, optional) Output format, either 'XML' or 'SUDS'. Either returns a XML document or a parsed SUDS object. Defaults to 'SUDS'.
Returns:

XML document or a parsed SUDS object containing inventory information.

Example

>>> from obspy.neries import Client
>>> from obspy import UTCDateTime
>>> client = Client(user='test@obspy.org')
>>> dt = UTCDateTime("2011-01-01T00:00:00")
>>> result = client.getInventory('GE', 'SNAA', '', 'BHZ', dt, dt+10,
...                              instruments=True)
>>> paz = result.ArclinkInventory.inventory.responsePAZ
>>> print(paz.poles)  
(-0.037004,0.037016) (-0.037004,-0.037016) (-251.33,0.0) ...