obspy.clients.iris.client.Client.flinnengdahl

Client.flinnengdahl(lat, lon, rtype='both')[source]

Low-level interface for flinnengdahl Web service of IRIS (http://service.iris.edu/irisws/flinnengdahl/) - release 1.1 (2011-06-08).

This method converts a latitude, longitude pair into either a Flinn-Engdahl seismic region code or region name.

Parameters:
  • lat (float) Latitude of interest.
  • lon (float) Longitude of interest.
  • rtype (str, optional) Return type. Can be one of 'code', 'region' or 'both'. Defaults to 'both'.
Return type:

int, str, or tuple

Returns:

Returns Flinn-Engdahl region code or name or both, depending on the request type parameter rtype.

Examples

>>> from obspy.clients.iris import Client
>>> client = Client()
>>> client.flinnengdahl(lat=-20.5, lon=-100.6, rtype="code")
683
>>> print(client.flinnengdahl(lat=42, lon=-122.24, rtype="region"))
OREGON
>>> code, region = client.flinnengdahl(lat=-20.5, lon=-100.6)
>>> print(code, region)
683 SOUTHEAST CENTRAL PACIFIC OCEAN