obspy.core.inventory.inventory.Inventory.get_coordinates

Inventory.get_coordinates(seed_id, datetime=None)[source]

Return coordinates for a given channel.

>>> from obspy import read_inventory, UTCDateTime
>>> inv = read_inventory()
>>> t = UTCDateTime("2015-01-01")
>>> inv.get_coordinates("GR.FUR..LHE", t)  
{'elevation': 565.0,
 'latitude': 48.162899,
 'local_depth': 0.0,
 'longitude': 11.2752}
Parameters
  • seed_id (str) – SEED ID string of channel to get coordinates for.

  • datetime (UTCDateTime, optional) – Time to get coordinates for.

Return type

dict

Returns

Dictionary containing coordinates (latitude, longitude, elevation, local_depth)