obspy.core.inventory.util._resolve_seedid_from_inventory

_resolve_seedid_from_inventory(station, component, inventory, time=None, network=None, location=None, warn=True)[source]

Return a (Network, Station, Location, Channel) tuple.

Given a station and channel code and station metadata (and optionally a certain point in time), try to resolve the full SEED ID, i.e. fill in a missing/unknown network and/or location code. If no matching data is found in metadata or if ambiguities in the station metadata are encountered, returns None for network and/or location code.

Simply returns the given (Network, Station, Location, Channel) input if both location and network are already specified.

Parameters
  • station (str) – Station code to look up.

  • channel (str) – Channel code to look up.

  • inventory (Inventory) – Station metadata to use for look up of missing parts of the full SEED ID.

  • time (UTCDateTime) – Optionally restrict lookup from metadata to given timestamp.

  • network (str) – Also specify network code for lookup (not intended to be used together with location, see above)

  • location (str) – Also specify location code for lookup (not intended to be used together with network, see above)

  • warn (bool) – Whether or not to warn on failed look ups (no matching data found or ambiguous results) that return some ``None``s.

Return type

str

Returns

SEED id string