class Unpickler[source]

Bases: builtins.object

De-serializes a mchedr string into an ObsPy Catalog object.


__doc__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)

Public Methods

load Reads mchedr file into ObsPy catalog object.
loads Parses mchedr string into ObsPy catalog object.

Private Methods


Private methods are mainly for internal/developer use and their API might change without notice.

_angle_between Returns the angle in degrees between unit vectors ‘u1’ and ‘u2’:
_decode_fe_region_number Converts Flinn-Engdahl region number to string.
_lat_err_to_deg Convert latitude error from km to degrees
_lon_err_to_deg Convert longitude error from km to degrees
_parse_record_a Parses the ‘additional parameters’ record A
_parse_record_ae Parses the ‘additional hypocenter error and magnitude record’ AE
_parse_record_ah Parses the ‘additional hypocenter’ record AH
_parse_record_c Parses the ‘general comment’ record C
_parse_record_da Parses the ‘source parameter data - principal axes and
_parse_record_dc Parses the ‘source parameter data - comment’ record Dc
_parse_record_dp Parses the ‘source parameter data - primary’ record Dp
_parse_record_dt Parses the ‘source parameter data - tensor’ record Dt
_parse_record_e Parses the ‘error and magnitude’ record E
_parse_record_hy Parses the ‘hypocenter’ record HY
_parse_record_l Parses the ‘90 percent error ellipse’ record L
_parse_record_m Parses the ‘surface wave record’ M
_parse_record_p Parses the ‘primary phase record’ P
_parse_record_s Parses the ‘secondary phases’ record S
_tensor_code_sign Converts tensor from ‘x,y,z’ system to ‘r,t,p’

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().