pyrocko.model.event¶
Simple representation of a seismic event.
Functions
|
Write events file. |
|
Read events file. |
Classes
|
Representation of a seismic event. |
|
Any |
- class Tag(...) str [source]¶
Bases:
StringPattern
Any
str
matching pattern'^([A-Za-z][A-Za-z0-9._]{0,128})(:([A-Za-z0-9._-]*))?$'
.
- class Event(lat=0.0, lon=0.0, north_shift=0.0, east_shift=0.0, time=0.0, name='', depth=None, elevation=None, magnitude=None, magnitude_type=None, region=None, load=None, loadf=None, catalog=None, moment_tensor=None, duration=None, tags=None, extras=None)[source]¶
Bases:
Location
Representation of a seismic event.
- ♦ time¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp
), default:str_to_time('1970-01-01 00:00:00')
Origin time (UTC system timestamp) [s].
- ♦ depth¶
float
, optionalDepth below surface [m].
- ♦ name¶
str
, optional, default:''
Event identifier.
- ♦ magnitude¶
float
, optionalMagnitude of the event.
- ♦ region¶
str
, optionalSource region.
- ♦ catalog¶
str
, optionalName of catalog that lists this event.
- ♦ moment_tensor¶
pyrocko.moment_tensor.MomentTensor
, optionalMoment tensor of the event.
- ♦ duration¶
float
, optionalSource duration [s].
- ♦ extras¶
dict
ofpyrocko.guts.Any
objects, default:{}
Additional user defined event attributes. The given values must be YAML-serializable.