obspy.clients.arclink.client.Client.get_metadata¶
- Client.get_metadata(network, station, location, channel, time, route=True)[source]¶
Returns poles, zeros, normalization factor and sensitivity and station coordinates for a single channel at a given time.
Parameters: - network (str) Network code, e.g. 'BW'.
- station (str) Station code, e.g. 'MANZ'.
- location (str) Location code, e.g. '01'.
- channel (str) Channel code, e.g. 'EHE'.
- time (UTCDateTime) Date and time.
- route (bool, optional) Enables ArcLink routing (default is True).
Returns: Dictionary containing keys ‘paz’ and ‘coordinates’.
Example
>>> from obspy.clients.arclink import Client >>> from obspy import UTCDateTime >>> client = Client('test@obspy.org', 'webdc.eu', 18001) >>> t = UTCDateTime(2009, 1, 1) >>> data = client.get_metadata('BW', 'MANZ', '', 'EHZ', t) >>> data {'paz': AttribDict({'poles': [(-0.037004+0.037016j), (-0.037004-0.037016j), (-251.33+0j), (-131.04-467.29j), (-131.04+467.29j)], 'sensitivity': 2516778600.0, 'zeros': [0j, 0j], 'name': 'LMU:STS-2/N/g=1500', 'normalization_factor': 60077000.0}), 'coordinates': AttribDict({'latitude': 49.9862, 'elevation': 635.0, 'longitude': 12.1083})}