pyrocko.io.quakeml

exception QuakeMLError[source]
exception NoPreferredOriginSet[source]
class ResourceIdentifier(dummy) → None[source]

Any str matching pattern "^(smi|quakeml):[\\w\\d][\\w\\d\\-\\.\\*\\(\\)_~']{2,}/[\\w\\d\\-\\.\\*\\(\\)_~'][\\w\\d\\-\\.\\*\\(\\)\\+\\?_~'=,;#/&]*$".

class WhitespaceOrEmptyStringType(dummy) → None[source]

Any str matching pattern '^\\s*$'.

class OriginUncertaintyDescription(dummy) → None[source]

Any str out of ['horizontal uncertainty', 'uncertainty ellipse', 'confidence ellipsoid'].

class AmplitudeCategory(dummy) → None[source]

Any str out of ['point', 'mean', 'duration', 'period', 'integral', 'other'].

class OriginDepthType(dummy) → None[source]

Any str out of ['from location', 'from moment tensor inversion', 'from modeling of broad-band P waveforms', 'constrained by depth phases', 'constrained by direct phases', 'constrained by depth and direct phases', 'operator assigned', 'other'].

class OriginType(dummy) → None[source]

Any str out of ['hypocenter', 'centroid', 'amplitude', 'macroseismic', 'rupture start', 'rupture end'].

class MTInversionType(dummy) → None[source]

Any str out of ['general', 'zero trace', 'double couple'].

class EvaluationMode(dummy) → None[source]

Any str out of ['manual', 'automatic'].

class EvaluationStatus(dummy) → None[source]

Any str out of ['preliminary', 'confirmed', 'reviewed', 'final', 'rejected'].

class PickOnset(dummy) → None[source]

Any str out of ['emergent', 'impulsive', 'questionable'].

class EventType(dummy) → None[source]

Any str out of ['not existing', 'not reported', 'earthquake', 'anthropogenic event', 'collapse', 'cavity collapse', 'mine collapse', 'building collapse', 'explosion', 'accidental explosion', 'chemical explosion', 'controlled explosion', 'experimental explosion', 'industrial explosion', 'mining explosion', 'quarry blast', 'road cut', 'blasting levee', 'nuclear explosion', 'induced or triggered event', 'rock burst', 'reservoir loading', 'fluid injection', 'fluid extraction', 'crash', 'plane crash', 'train crash', 'boat crash', 'other event', 'atmospheric event', 'sonic boom', 'sonic blast', 'acoustic noise', 'thunder', 'avalanche', 'snow avalanche', 'debris avalanche', 'hydroacoustic event', 'ice quake', 'slide', 'landslide', 'rockslide', 'meteorite', 'volcanic eruption', 'duplicate earthquake', 'rockburst'].

class DataUsedWaveType(dummy) → None[source]

Any str out of ['P waves', 'body waves', 'surface waves', 'mantle waves', 'combined', 'unknown'].

class AmplitudeUnit(dummy) → None[source]

Any str out of ['m', 's', 'm/s', 'm/(s*s)', 'm*s', 'dimensionless', 'other'].

class EventDescriptionType(dummy) → None[source]

Any str out of ['felt report', 'Flinn-Engdahl region', 'local time', 'tectonic summary', 'nearest cities', 'earthquake name', 'region name'].

class MomentTensorCategory(dummy) → None[source]

Any str out of ['teleseismic', 'regional'].

class EventTypeCertainty(dummy) → None[source]

Any str out of ['known', 'suspected'].

class SourceTimeFunctionType(dummy) → None[source]

Any str out of ['box car', 'triangle', 'trapezoid', 'unknown'].

class PickPolarity(dummy) → None[source]

Any str out of ['positive', 'negative', 'undecidable'].

class AgencyID(dummy) → None[source]

Undocumented.

class Author(dummy) → None[source]

Undocumented.

class Version(dummy) → None[source]

Undocumented.

class Phase(**kwargs)[source]

Undocumented.

value

str

class GroundTruthLevel(dummy) → None[source]

Undocumented.

class AnonymousNetworkCode(dummy) → None[source]

Undocumented.

class AnonymousStationCode(dummy) → None[source]

Undocumented.

class AnonymousChannelCode(dummy) → None[source]

Undocumented.

class AnonymousLocationCode(dummy) → None[source]

Undocumented.

class Type(dummy) → None[source]

Undocumented.

class MagnitudeHint(dummy) → None[source]

Undocumented.

class Region(dummy) → None[source]

Undocumented.

class RealQuantity(**kwargs)[source]

Undocumented.

value

float

uncertainty

float, optional

lower_uncertainty

float, optional

upper_uncertainty

float, optional

confidence_level

float, optional

class IntegerQuantity(**kwargs)[source]

Undocumented.

value

int

uncertainty

int, optional

lower_uncertainty

int, optional

upper_uncertainty

int, optional

confidence_level

float, optional

class ConfidenceEllipsoid(**kwargs)[source]

Undocumented.

semi_major_axis_length

float

semi_minor_axis_length

float

semi_intermediate_axis_length

float

major_axis_plunge

float

major_axis_azimuth

float

major_axis_rotation

float

class TimeQuantity(**kwargs)[source]

Undocumented.

value

time_float

uncertainty

float, optional

lower_uncertainty

float, optional

upper_uncertainty

float, optional

confidence_level

float, optional

class TimeWindow(**kwargs)[source]

Undocumented.

begin

float

end

float

reference

time_float

class ResourceReference(dummy) → None[source]

Any str matching pattern "^(smi|quakeml):[\\w\\d][\\w\\d\\-\\.\\*\\(\\)_~']{2,}/[\\w\\d\\-\\.\\*\\(\\)_~'][\\w\\d\\-\\.\\*\\(\\)\\+\\?_~'=,;#/&]*$".

class DataUsed(**kwargs)[source]

Undocumented.

wave_type

pyrocko.guts.doublequoted (DataUsedWaveType)

station_count

int, optional

component_count

int, optional

shortest_period

float, optional

longest_period

float, optional

class EventDescription(**kwargs)[source]

Undocumented.

text

str

type

pyrocko.guts.doublequoted (EventDescriptionType), optional

class SourceTimeFunction(**kwargs)[source]

Undocumented.

type

pyrocko.guts.doublequoted (SourceTimeFunctionType)

duration

float

rise_time

float, optional

decay_time

float, optional

class OriginQuality(**kwargs)[source]

Undocumented.

associated_phase_count

int, optional

used_phase_count

int, optional

associated_station_count

int, optional

used_station_count

int, optional

depth_phase_count

int, optional

standard_error

float, optional

azimuthal_gap

float, optional

secondary_azimuthal_gap

float, optional

ground_truth_level

pyrocko.guts.doublequoted (GroundTruthLevel), optional

maximum_distance

float, optional

minimum_distance

float, optional

median_distance

float, optional

class Axis(**kwargs)[source]

Undocumented.

azimuth

pyrocko.guts.doublequoted

plunge

pyrocko.guts.doublequoted

length

pyrocko.guts.doublequoted

class Tensor(**kwargs)[source]

Undocumented.

mrr

pyrocko.guts.doublequoted

mtt

pyrocko.guts.doublequoted

mpp

pyrocko.guts.doublequoted

mrt

pyrocko.guts.doublequoted

mrp

pyrocko.guts.doublequoted

mtp

pyrocko.guts.doublequoted

class NodalPlane(**kwargs)[source]

Undocumented.

strike

pyrocko.guts.doublequoted

dip

pyrocko.guts.doublequoted

rake

pyrocko.guts.doublequoted

class CompositeTime(**kwargs)[source]

Undocumented.

year

pyrocko.guts.doublequoted, optional

month

pyrocko.guts.doublequoted, optional

day

pyrocko.guts.doublequoted, optional

hour

pyrocko.guts.doublequoted, optional

minute

pyrocko.guts.doublequoted, optional

second

pyrocko.guts.doublequoted, optional

class OriginUncertainty(**kwargs)[source]

Undocumented.

horizontal_uncertainty

float, optional

min_horizontal_uncertainty

float, optional

max_horizontal_uncertainty

float, optional

azimuth_max_horizontal_uncertainty

float, optional

confidence_ellipsoid

pyrocko.guts.doublequoted, optional

preferred_description

pyrocko.guts.doublequoted (OriginUncertaintyDescription), optional

confidence_level

float, optional

class ResourceReferenceOptional(dummy) → None[source]

Undocumented.

class CreationInfo(**kwargs)[source]

Undocumented.

agency_id

pyrocko.guts.doublequoted (AgencyID), optional

agency_uri

pyrocko.guts.doublequoted (ResourceReference), optional

author

pyrocko.guts.doublequoted (Author), optional

author_uri

pyrocko.guts.doublequoted (ResourceReference), optional

creation_time

time_float, optional

version

pyrocko.guts.doublequoted (Version), optional

class StationMagnitudeContribution(**kwargs)[source]

Undocumented.

station_magnitude_id

pyrocko.guts.doublequoted (ResourceReference)

residual

float, optional

weight

float, optional

class PrincipalAxes(**kwargs)[source]

Undocumented.

t_axis

pyrocko.guts.doublequoted

p_axis

pyrocko.guts.doublequoted

n_axis

pyrocko.guts.doublequoted, optional

class NodalPlanes(**kwargs)[source]

Undocumented.

preferred_plane

int, optional

nodal_plane1

pyrocko.guts.doublequoted, optional

nodal_plane2

pyrocko.guts.doublequoted, optional

class WaveformStreamID(**kwargs)[source]

Undocumented.

value

pyrocko.guts.doublequoted (ResourceReferenceOptional)

network_code

pyrocko.guts.doublequoted (AnonymousNetworkCode)

station_code

pyrocko.guts.doublequoted (AnonymousStationCode)

channel_code

pyrocko.guts.doublequoted (AnonymousChannelCode), optional

location_code

pyrocko.guts.doublequoted (AnonymousLocationCode), optional

class Comment(**kwargs)[source]

Undocumented.

id

pyrocko.guts.doublequoted (ResourceReference), optional

text

str

creation_info

pyrocko.guts.doublequoted, optional

class MomentTensor(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

data_used_list

list of pyrocko.guts.doublequoted objects, default: []

comment_list

list of pyrocko.guts.doublequoted objects, default: []

derived_origin_id

pyrocko.guts.doublequoted (ResourceReference), optional

moment_magnitude_id

pyrocko.guts.doublequoted (ResourceReference), optional

scalar_moment

pyrocko.guts.doublequoted, optional

tensor

pyrocko.guts.doublequoted, optional

variance

float, optional

variance_reduction

float, optional

double_couple

float, optional

clvd

float, optional

iso

float, optional

greens_function_id

pyrocko.guts.doublequoted (ResourceReference), optional

filter_id

pyrocko.guts.doublequoted (ResourceReference), optional

source_time_function

pyrocko.guts.doublequoted, optional

method_id

pyrocko.guts.doublequoted (ResourceReference), optional

category

pyrocko.guts.doublequoted (MomentTensorCategory), optional

inversion_type

pyrocko.guts.doublequoted (MTInversionType), optional

creation_info

pyrocko.guts.doublequoted, optional

class Amplitude(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

comment_list

list of pyrocko.guts.doublequoted objects, default: []

generic_amplitude

pyrocko.guts.doublequoted

type

pyrocko.guts.doublequoted (Type), optional

category

pyrocko.guts.doublequoted (AmplitudeCategory), optional

unit

pyrocko.guts.doublequoted (AmplitudeUnit), optional

method_id

pyrocko.guts.doublequoted (ResourceReference), optional

period

pyrocko.guts.doublequoted, optional

snr

float, optional

time_window

pyrocko.guts.doublequoted, optional

pick_id

pyrocko.guts.doublequoted (ResourceReference), optional

waveform_id

pyrocko.guts.doublequoted, optional

filter_id

pyrocko.guts.doublequoted (ResourceReference), optional

scaling_time

pyrocko.guts.doublequoted, optional

magnitude_hint

pyrocko.guts.doublequoted (MagnitudeHint), optional

evaluation_mode

pyrocko.guts.doublequoted (EvaluationMode), optional

evaluation_status

pyrocko.guts.doublequoted (EvaluationStatus), optional

creation_info

pyrocko.guts.doublequoted, optional

class Magnitude(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

comment_list

list of pyrocko.guts.doublequoted objects, default: []

station_magnitude_contribution_list

list of pyrocko.guts.doublequoted objects, default: []

mag

pyrocko.guts.doublequoted

type

pyrocko.guts.doublequoted (Type), optional

origin_id

pyrocko.guts.doublequoted (ResourceReference), optional

method_id

pyrocko.guts.doublequoted (ResourceReference), optional

station_count

int, optional

azimuthal_gap

float, optional

evaluation_mode

pyrocko.guts.doublequoted (EvaluationMode), optional

evaluation_status

pyrocko.guts.doublequoted (EvaluationStatus), optional

creation_info

pyrocko.guts.doublequoted, optional

class StationMagnitude(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

comment_list

list of pyrocko.guts.doublequoted objects, default: []

origin_id

pyrocko.guts.doublequoted (ResourceReference), optional

mag

pyrocko.guts.doublequoted

type

pyrocko.guts.doublequoted (Type), optional

amplitude_id

pyrocko.guts.doublequoted (ResourceReference), optional

method_id

pyrocko.guts.doublequoted (ResourceReference), optional

waveform_id

pyrocko.guts.doublequoted, optional

creation_info

pyrocko.guts.doublequoted, optional

class Arrival(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

comment_list

list of pyrocko.guts.doublequoted objects, default: []

pick_id

pyrocko.guts.doublequoted (ResourceReference)

phase

pyrocko.guts.doublequoted

time_correction

float, optional

azimuth

float, optional

distance

float, optional

takeoff_angle

pyrocko.guts.doublequoted, optional

time_residual

float, optional

horizontal_slowness_residual

float, optional

backazimuth_residual

float, optional

time_weight

float, optional

time_used

int, optional

horizontal_slowness_weight

float, optional

backazimuth_weight

float, optional

earth_model_id

pyrocko.guts.doublequoted (ResourceReference), optional

creation_info

pyrocko.guts.doublequoted, optional

class Pick(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

comment_list

list of pyrocko.guts.doublequoted objects, default: []

time

pyrocko.guts.doublequoted

waveform_id

pyrocko.guts.doublequoted

filter_id

pyrocko.guts.doublequoted (ResourceReference), optional

method_id

pyrocko.guts.doublequoted (ResourceReference), optional

horizontal_slowness

pyrocko.guts.doublequoted, optional

backazimuth

pyrocko.guts.doublequoted, optional

slowness_method_id

pyrocko.guts.doublequoted (ResourceReference), optional

onset

pyrocko.guts.doublequoted (PickOnset), optional

phase_hint

pyrocko.guts.doublequoted, optional

polarity

pyrocko.guts.doublequoted (PickPolarity), optional

evaluation_mode

pyrocko.guts.doublequoted (EvaluationMode), optional

evaluation_status

pyrocko.guts.doublequoted (EvaluationStatus), optional

creation_info

pyrocko.guts.doublequoted, optional

class FocalMechanism(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

waveform_id_list

list of pyrocko.guts.doublequoted objects, default: []

comment_list

list of pyrocko.guts.doublequoted objects, default: []

moment_tensor_list

list of pyrocko.guts.doublequoted objects, default: []

triggering_origin_id

pyrocko.guts.doublequoted (ResourceReference), optional

nodal_planes

pyrocko.guts.doublequoted, optional

principal_axes

pyrocko.guts.doublequoted, optional

azimuthal_gap

float, optional

station_polarity_count

int, optional

misfit

float, optional

station_distribution_ratio

float, optional

method_id

pyrocko.guts.doublequoted (ResourceReference), optional

evaluation_mode

pyrocko.guts.doublequoted (EvaluationMode), optional

evaluation_status

pyrocko.guts.doublequoted (EvaluationStatus), optional

creation_info

pyrocko.guts.doublequoted, optional

class Origin(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

composite_time_list

list of pyrocko.guts.doublequoted objects, default: []

comment_list

list of pyrocko.guts.doublequoted objects, default: []

origin_uncertainty_list

list of pyrocko.guts.doublequoted objects, default: []

arrival_list

list of pyrocko.guts.doublequoted objects, default: []

time

pyrocko.guts.doublequoted

longitude

pyrocko.guts.doublequoted

latitude

pyrocko.guts.doublequoted

depth

pyrocko.guts.doublequoted, optional

depth_type

pyrocko.guts.doublequoted (OriginDepthType), optional

time_fixed

bool, optional

epicenter_fixed

bool, optional

reference_system_id

pyrocko.guts.doublequoted (ResourceReference), optional

method_id

pyrocko.guts.doublequoted (ResourceReference), optional

earth_model_id

pyrocko.guts.doublequoted (ResourceReference), optional

quality

pyrocko.guts.doublequoted, optional

type

pyrocko.guts.doublequoted (OriginType), optional

region

pyrocko.guts.doublequoted (Region), optional

evaluation_mode

pyrocko.guts.doublequoted (EvaluationMode), optional

evaluation_status

pyrocko.guts.doublequoted (EvaluationStatus), optional

creation_info

pyrocko.guts.doublequoted, optional

class Event(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

description_list

list of pyrocko.guts.doublequoted objects, default: []

comment_list

list of pyrocko.guts.doublequoted objects, default: []

focal_mechanism_list

list of pyrocko.guts.doublequoted objects, default: []

amplitude_list

list of pyrocko.guts.doublequoted objects, default: []

magnitude_list

list of pyrocko.guts.doublequoted objects, default: []

station_magnitude_list

list of pyrocko.guts.doublequoted objects, default: []

origin_list

list of pyrocko.guts.doublequoted objects, default: []

pick_list

list of pyrocko.guts.doublequoted objects, default: []

preferred_origin_id

pyrocko.guts.doublequoted (ResourceReference), optional

preferred_magnitude_id

pyrocko.guts.doublequoted (ResourceReference), optional

preferred_focal_mechanism_id

pyrocko.guts.doublequoted (ResourceReference), optional

type

pyrocko.guts.doublequoted (EventType), optional

type_certainty

pyrocko.guts.doublequoted (EventTypeCertainty), optional

creation_info

pyrocko.guts.doublequoted, optional

region

pyrocko.guts.doublequoted (Region), optional

get_pyrocko_event()[source]

Convert into Pyrocko event object.

Uses preferred origin, magnitude, and moment tensor. If no preferred item is specified, it picks the first from the list and emits a warning.

class EventParameters(**kwargs)[source]

Undocumented.

public_id

pyrocko.guts.doublequoted (ResourceReference)

comment_list

list of pyrocko.guts.doublequoted objects, default: []

event_list

list of pyrocko.guts.doublequoted objects, default: []

description

str, optional

creation_info

pyrocko.guts.doublequoted, optional

class QuakeML(**kwargs)[source]

Undocumented.

event_parameters

pyrocko.guts.doublequoted, optional

get_pyrocko_events()[source]

Extract a list of pyrocko.model.Event instances