obsplus.get_station_client

obsplus.get_station_client(stations)[source]

Extract a station client from various inputs.

Parameters:

stations (Union[str, Path, Inventory]) –

Any of the following:
  • A path to an obspy-readable station file

  • A path to a directory of obspy-readable station files

  • An obspy.Inventory instance

  • An instance of EventBank

  • Any other object that has a get_stations method

Raises:

TypeError – If a station client cannot be determined from the input.

Return type:

StationClient