from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA import numpy as np from obspy.core.event.base import ( _event_type_class_factory, ResourceIdentifier, CreationInfo) from obspy.core.event.header import ( EvaluationMode, EvaluationStatus, MomentTensorCategory, MTInversionType, SourceTimeFunctionType, ATTRIBUTE_HAS_ERRORS) __Axis = _event_type_class_factory( "__Axis", class_attributes=[("azimuth", float, ATTRIBUTE_HAS_ERRORS), ("plunge", float, ATTRIBUTE_HAS_ERRORS), ("length", float, ATTRIBUTE_HAS_ERRORS)]) class Axis(__Axis): """ This class describes an eigenvector of a moment tensor expressed in its principal-axes system. It uses the angles azimuth, plunge, and the eigenvalue length. :type azimuth: float :param azimuth: Azimuth of eigenvector of moment tensor expressed in principal-axes system. Measured clockwise from South-North direction at epicenter. Unit: deg :type azimuth_errors: :class:`~obspy.core.event.base.QuantityError`
from obspy import UTCDateTime from obspy.core.event.base import ( _event_type_class_factory, ResourceIdentifier, CreationInfo, WaveformStreamID, TimeWindow) from obspy.core.event.header import ( AmplitudeCategory, AmplitudeUnit, EvaluationMode, EvaluationStatus, ATTRIBUTE_HAS_ERRORS) __Magnitude = _event_type_class_factory( "__Magnitude", class_attributes=[("resource_id", ResourceIdentifier), ("mag", float, ATTRIBUTE_HAS_ERRORS), ("magnitude_type", str), ("origin_id", ResourceIdentifier), ("method_id", ResourceIdentifier), ("station_count", int), ("azimuthal_gap", float), ("evaluation_mode", EvaluationMode), ("evaluation_status", EvaluationStatus), ("creation_info", CreationInfo)], class_contains=["comments", "station_magnitude_contributions"]) class Magnitude(__Magnitude): """ Describes a magnitude which can, but does not need to be associated with an origin. Association with an origin is expressed with the optional attribute originID. It is either a combination of different magnitude estimations, or
from obspy import UTCDateTime from obspy.core.event.base import ( _event_type_class_factory, ResourceIdentifier, CreationInfo, WaveformStreamID, ConfidenceEllipsoid) from obspy.core.event.header import ( EvaluationMode, EvaluationStatus, OriginDepthType, OriginType, OriginUncertaintyDescription, PickOnset, PickPolarity, ATTRIBUTE_HAS_ERRORS) __OriginUncertainty = _event_type_class_factory( "__OriginUncertainty", class_attributes=[("horizontal_uncertainty", float), ("min_horizontal_uncertainty", float), ("max_horizontal_uncertainty", float), ("azimuth_max_horizontal_uncertainty", float), ("confidence_ellipsoid", ConfidenceEllipsoid), ("preferred_description", OriginUncertaintyDescription), ("confidence_level", float)]) class OriginUncertainty(__OriginUncertainty): """ This class describes the location uncertainties of an origin. The uncertainty can be described either as a simple circular horizontal uncertainty, an uncertainty ellipse according to IMS1.0, or a confidence ellipsoid. If multiple uncertainty models are given, the preferred variant can be specified in the attribute ``preferred_description``.
from future.builtins import * # NOQA from obspy import UTCDateTime from obspy.core.event.base import (_event_type_class_factory, ResourceIdentifier, CreationInfo, WaveformStreamID, ConfidenceEllipsoid) from obspy.core.event.header import (EvaluationMode, EvaluationStatus, OriginDepthType, OriginType, OriginUncertaintyDescription, PickOnset, PickPolarity, ATTRIBUTE_HAS_ERRORS) __OriginUncertainty = _event_type_class_factory( "__OriginUncertainty", class_attributes=[("horizontal_uncertainty", float), ("min_horizontal_uncertainty", float), ("max_horizontal_uncertainty", float), ("azimuth_max_horizontal_uncertainty", float), ("confidence_ellipsoid", ConfidenceEllipsoid), ("preferred_description", OriginUncertaintyDescription), ("confidence_level", float)]) class OriginUncertainty(__OriginUncertainty): """ This class describes the location uncertainties of an origin. The uncertainty can be described either as a simple circular horizontal uncertainty, an uncertainty ellipse according to IMS1.0, or a confidence ellipsoid. If multiple uncertainty models are given, the preferred variant can be specified in the attribute ``preferred_description``.