obspy.geodetics.flinnengdahl.FlinnEngdahl

class FlinnEngdahl[source]

Bases: object

Load data from asc files and allow to resolve coordinates or region numbers to Flinn Engdahl region names.

>>> fe = FlinnEngdahl()
>>> print(fe.get_region(12, 48))
GERMANY
>>> print(fe.get_number(12, 48))
543
>>> print(fe.get_region_by_number(543))
GERMANY

Attributes

data_directory

names_file

numbers_file

quads_order

quadsindex_file

sect_files

Public Methods

get_number

Return region number from given coordinate

get_quadrant

Return quadrant from given coordinate

get_region

Return region from given coordinate

get_region_by_number

Return region with given number

Special Methods

FlinnEngdahl.__delattr__(name, /)

Implement delattr(self, name).

FlinnEngdahl.__dir__()

Default dir() implementation.

FlinnEngdahl.__eq__(value, /)

Return self==value.

FlinnEngdahl.__format__(format_spec, /)

Default object formatter.

FlinnEngdahl.__ge__(value, /)

Return self>=value.

FlinnEngdahl.__getattribute__(name, /)

Return getattr(self, name).

FlinnEngdahl.__gt__(value, /)

Return self>value.

FlinnEngdahl.__hash__()

Return hash(self).

FlinnEngdahl.__init__()[source]
FlinnEngdahl.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

FlinnEngdahl.__le__(value, /)

Return self<=value.

FlinnEngdahl.__lt__(value, /)

Return self<value.

FlinnEngdahl.__ne__(value, /)

Return self!=value.

FlinnEngdahl.__new__(**kwargs)
FlinnEngdahl.__reduce__()

Helper for pickle.

FlinnEngdahl.__reduce_ex__(protocol, /)

Helper for pickle.

FlinnEngdahl.__repr__()

Return repr(self).

FlinnEngdahl.__setattr__(name, value, /)

Implement setattr(self, name, value).

FlinnEngdahl.__sizeof__()

Size of object in memory, in bytes.

FlinnEngdahl.__str__()

Return str(self).

FlinnEngdahl.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).