obspy.clients.seedlink.basic_client.Client.get_info
- Client.get_info(network=None, station=None, location=None, channel=None, level='station', cache=True)[source]
Request available stations information from the seedlink server.
Supports
fnmatch
wildcards, e.g.*
and?
, innetwork
,station
,location
andchannel
.>>> client = Client('rtserver.ipgp.fr') >>> info = client.get_info(station="FDFM") >>> print(info) [('G', 'FDFM')] >>> info = client.get_info(station="FD?M", channel='*Z', ... level='channel') >>> print(info) [('G', 'FDFM', '00', 'BHZ'), ('G', 'FDFM', '00', 'HHZ'), ('G', 'FDFM', '00', 'HNZ'), ('G', 'FDFM', '00', 'LHZ'), ('G', 'FDFM', '10', 'BHZ'), ('G', 'FDFM', '10', 'HHZ'), ('G', 'FDFM', '10', 'LHZ')]
Available station information is cached after the first request to the server, so use
cache=False
on subsequent requests if there is a need to force fetching new information from the server (should only concern programs running in background for a very long time).- Parameters
network (str) – Network code. Supports
fnmatch
wildcards, e.g.*
and?
.station (str) – Station code. Supports
fnmatch
wildcards, e.g.*
and?
.location (str) – Location code. Supports
fnmatch
wildcards, e.g.*
and?
.channel (str) – Channel code. Supports
fnmatch
wildcards, e.g.*
and?
.cache (bool) – Subsequent function calls are cached, use
cache=False
to force fetching station metadata again from the server.
- Return type
- Returns
list of 2-tuples (or 4-tuples with
level='channel'
) with network/station (network/station/location/channel, respectively) code combinations for which data is served by the server.