obspy.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 ('code', 'region' or 'both') Return type. 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.iris import Client
>>> client = Client()
>>> client.flinnengdahl(lat=-20.5, lon=-100.6, rtype="code")
683
>>> client.flinnengdahl(lat=42, lon=-122.24, rtype="region")
'OREGON'
>>> client.flinnengdahl(lat=-20.5, lon=-100.6)
(683, 'SOUTHEAST CENTRAL PACIFIC OCEAN')

This Page