obspy.clients.fdsn.routing.routing_client.RoutingClient
- RoutingClient(routing_type, *args, **kwargs)[source]
Helper function to get the correct routing instance.
- Parameters:
routing_type (str) – The type of router to initialize.
"earthscope-federator"
or"eida-routing"
. Will consequently return either aFederatorRoutingClient
or aEIDAWSRoutingClient
object, respectively.
Remaining
args
andkwargs
will be passed to the underlying classes. For example, credentials can be supported for all underlying data centers. SeeBaseRoutingClient
for details.>>> from obspy.clients.fdsn import RoutingClient
Get an instance of a routing client using the EarthScope (former IRIS) Federator:
>>> c = RoutingClient("earthscope-federator") >>> print(type(c)) <class '...routing.federator_routing_client.FederatorRoutingClient'>
Or get an instance of a routing client using the EIDAWS routing web service:
>>> c = RoutingClient("eida-routing") >>> print(type(c)) <class '...routing.eidaws_routing_client.EIDAWSRoutingClient'>