pyrocko.gui.sparrow.elements.catalog

Classes

CatalogInterpolator(events_a, events_b)

Interpolate between two solutions for the same events.

CatalogSelection(**kwargs)

Undocumented.

CatalogState(**kwargs)

Undocumented.

FDSNSiteChoice(...)

Any str out of ['AUSPASS', 'BGR', 'BGS', 'EARTHSCOPE', 'EMSC', 'EPOSFR', 'ETHZ', 'FEDERATOR', 'GEOFON', 'GEONET', 'GEONET-NRT', 'GEOSHAKE', 'ICGC', 'IESDMC', 'IGN', 'INGV', 'IPGP', 'IRIS', 'ISC', 'KAGSR', 'KNMI', 'KOERI', 'LMU', 'NCEDC', 'NIEP', 'NOA', 'NORSAR', 'NRCAN', 'ORFEUS', 'OSDC', 'RASPISHAKE', 'RESIF', 'RSBR', 'SCEDC', 'UP', 'USGS', 'USP'].

FileCatalogSelection(**kwargs)

Undocumented.

LoadingChoice(...)

Any str out of ['FILE', 'FDSN'].

MemoryCatalogSelection([events])

Undocumented.

MomentTensorInterpolator(m6s_a, m6s_b)

Interpolate between pairs of moment tensors.

OnlineCatalogSelection(**kwargs)

Undocumented.

class LoadingChoice(...) → str[source]

Bases: StringChoice

Any str out of ['FILE', 'FDSN'].

Variables:
  • choices – Allowed choices (list of str).

  • ignore_case – Whether to behave case-insensitive (bool, default: False).

class FDSNSiteChoice(...) → str[source]

Bases: StringChoice

Any str out of ['AUSPASS', 'BGR', 'BGS', 'EARTHSCOPE', 'EMSC', 'EPOSFR', 'ETHZ', 'FEDERATOR', 'GEOFON', 'GEONET', 'GEONET-NRT', 'GEOSHAKE', 'ICGC', 'IESDMC', 'IGN', 'INGV', 'IPGP', 'IRIS', 'ISC', 'KAGSR', 'KNMI', 'KOERI', 'LMU', 'NCEDC', 'NIEP', 'NOA', 'NORSAR', 'NRCAN', 'ORFEUS', 'OSDC', 'RASPISHAKE', 'RESIF', 'RSBR', 'SCEDC', 'UP', 'USGS', 'USP'].

Variables:
  • choices – Allowed choices (list of str).

  • ignore_case – Whether to behave case-insensitive (bool, default: False).

class CatalogSelection(**kwargs)[source]

Bases: Object

Undocumented.

get_events()[source]

Get events of the selection.

Returns None if the selection is not based on events (e.g. if it has been loaded from a plain text table).

class MemoryCatalogSelection(events=None)[source]

Bases: CatalogSelection

Undocumented.

class FileCatalogSelection(**kwargs)[source]

Bases: CatalogSelection

Undocumented.

♦ paths

list of str objects, default: []

class OnlineCatalogSelection(**kwargs)[source]

Bases: CatalogSelection

Undocumented.

♦ site

str

♦ tmin

float

♦ tmax

float

♦ magnitude_min

float, optional

class MomentTensorInterpolator(m6s_a, m6s_b)[source]

Bases: object

Interpolate between pairs of moment tensors.

The eigenvalues (normalized to unit norm) are interpolated linearly, the scalar moment logarithmically and the orientation of the principal axes along the shortest rotation connecting the two eigensystems (taking into account the sign ambiguity of the eigenvectors).

class CatalogInterpolator(events_a, events_b)[source]

Bases: object

Interpolate between two solutions for the same events.

Events in the secondary catalog are associated with events in the primary catalog by event name. Events without counterpart are left unchanged.

class CatalogState(**kwargs)[source]

Bases: TableState

Undocumented.

♦ selection

CatalogSelection, optional

♦ secondary_selection

CatalogSelection, optional

♦ interpolation

float, default: 0.0

♦ size_parameter

str, optional, default: 'magnitude'

♦ color_parameter

str, optional, default: 'depth'