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:
- Return type:
- 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