- ObsPy Documentation (1.2.0)
- Module code
Source code for obspy.core.event
# -*- coding: utf-8 -*-
"""
obspy.core.event - Classes for handling event metadata
======================================================
This module provides a class hierarchy to consistently handle event metadata.
This class hierarchy is closely modelled after the de-facto standard
format `QuakeML <https://quake.ethz.ch/quakeml/>`_.
.. figure:: /_images/Event.png
.. note::
For handling additional information not covered by the QuakeML standard and
how to output it to QuakeML see the :ref:`ObsPy Tutorial <quakeml-extra>`.
:copyright:
The ObsPy Development Team (devs@obspy.org)
:license:
GNU Lesser General Public License, Version 3
(http://www.gnu.org/copyleft/lesser.html)
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from future.builtins import * # NOQA
from .base import (
Comment, CompositeTime, ConfidenceEllipsoid, CreationInfo, DataUsed,
QuantityError, TimeWindow, WaveformStreamID)
from obspy.core.event.resourceid import ResourceIdentifier
from .catalog import Catalog, read_events
from .event import Event, EventDescription
from .magnitude import (
Amplitude, Magnitude, StationMagnitude, StationMagnitudeContribution)
from .origin import Origin, OriginQuality, OriginUncertainty, Pick, Arrival
from .source import (
Axis, FocalMechanism, MomentTensor, NodalPlane, NodalPlanes, PrincipalAxes,
SourceTimeFunction, Tensor)
if __name__ == '__main__':
import doctest
doctest.testmod(exclude_empty=True)