obspy.neries.client.Client.getTravelTimes

Client.getTravelTimes(latitude, longitude, depth, locations=[], model=u'iasp91')[source]

Returns travel times for specified station-event geometry using standard velocity models such as iasp91, ak135 or qdt.

Parameters:
  • latitude (float) Event latitude.
  • longitude (float) Event longitude.
  • depth (float) Event depth in km.
  • locations (list of tuples) Each tuple contains a pair of (latitude, longitude) of a station.
  • model (str, optional) Velocity model, one of 'iasp91', 'ak135', or 'qdt'. Defaults to 'iasp91'.
Returns:

List of dicts containing phase name and arrival times in ms.

Example

>>> client = Client()
>>> locations = [(48.0, 12.0), (48.1, 12.0)]
>>> result = client.getTravelTimes(latitude=20.0, longitude=20.0,
...                                depth=10.0, locations=locations,
...                                model='iasp91')
>>> len(result)
2
>>> result[0]  
{'P': 356981.13561726053, 'S': 646841.5619481194}