pyrocko.squirrel.operators.base

Classes

AddSuffixTranslation(**kwargs)

Add a suffix to extra.

ChannelGrouping(**kwargs)

Group by network.station.location.channel codes.

CodesPatternFiltering(**kwargs)

Filter by codes pattern.

Composition(g, f, **kwargs)

Undocumented.

Filtering(**kwargs)

Base class for pyrocko.squirrel.model.Nut filters.

Grouping(**kwargs)

Base class for pyrocko.squirrel.model.Nut grouping mechanisms.

LocationGrouping(**kwargs)

Group by network.station.location codes.

NetworkGrouping(**kwargs)

Group by network code.

Operator(**kwargs)

Undocumented.

Parameters(**kwargs)

Undocumented.

RegexFiltering(**kwargs)

Filter by regex.

RegexGrouping(**kwargs)

Group by regex pattern.

RegexTranslation(**kwargs)

Translate pyrocko.squirrel.model.Codes using a regular expression.

ReplaceComponentTranslation(**kwargs)

Translate pyrocko.squirrel.model.Codes by replacing a component.

Restitution(**kwargs)

Undocumented.

RestitutionParameters(**kwargs)

Undocumented.

SensorGrouping(**kwargs)

Group by network.station.location.sensor and extra codes.

Shift(**kwargs)

Undocumented.

StationGrouping(**kwargs)

Group by network.station codes.

ToENZ(**kwargs)

Undocumented.

ToLTQ(**kwargs)

Undocumented.

ToRTZ(**kwargs)

Undocumented.

Transform(**kwargs)

Undocumented.

Translation(**kwargs)

Base class for pyrocko.squirrel.model.Nut translators.

class Filtering(**kwargs)[source]

Bases: Object

Base class for pyrocko.squirrel.model.Nut filters.

class RegexFiltering(**kwargs)[source]

Bases: Object

Filter by regex.

pattern

str, default: '(.*)'

class CodesPatternFiltering(**kwargs)[source]

Bases: Object

Filter by codes pattern.

codes

list of pyrocko.squirrel.model.CodesNSLCE objects, optional

class Grouping(**kwargs)[source]

Bases: Object

Base class for pyrocko.squirrel.model.Nut grouping mechanisms.

class RegexGrouping(**kwargs)[source]

Bases: Grouping

Group by regex pattern.

pattern

str, default: '(.*)'

class NetworkGrouping(**kwargs)[source]

Bases: RegexGrouping

Group by network code.

pattern

str, default: '([^.]*)\\.[^.]*\\.[^.]*\\.[^.]*\\.[^.]*'

class StationGrouping(**kwargs)[source]

Bases: RegexGrouping

Group by network.station codes.

pattern

str, default: '([^.]*\\.[^.]*)\\.[^.]*\\.[^.]*\\.[^.]*'

class LocationGrouping(**kwargs)[source]

Bases: RegexGrouping

Group by network.station.location codes.

pattern

str, default: '([^.]*\\.[^.]*\\.[^.]*)\\.[^.]*\\.[^.]*'

class ChannelGrouping(**kwargs)[source]

Bases: RegexGrouping

Group by network.station.location.channel codes.

This effectively groups all processings of a channel, which may differ in the extra codes attribute.

pattern

str, default: '([^.]*\\.[^.]*\\.[^.]*\\.[^.]*)\\.[^.]*'

class SensorGrouping(**kwargs)[source]

Bases: RegexGrouping

Group by network.station.location.sensor and extra codes.

For sensor all but the last character of the channel code (indicating the component) are used. This effectively groups all components of a sensor, or processings of a sensor.

pattern

str, default: '([^.]*\\.[^.]*\\.[^.]*\\.[^.]*)[^.](\\.[^.]*)'

class Translation(**kwargs)[source]

Bases: Object

Base class for pyrocko.squirrel.model.Nut translators.

class AddSuffixTranslation(**kwargs)[source]

Bases: Translation

Add a suffix to extra.

suffix

str, default: ''

class RegexTranslation(**kwargs)[source]

Bases: AddSuffixTranslation

Translate pyrocko.squirrel.model.Codes using a regular expression.

pattern

str, default: '(.*)'

replacement

str, default: '\\1'

class ReplaceComponentTranslation(**kwargs)[source]

Bases: RegexTranslation

Translate pyrocko.squirrel.model.Codes by replacing a component.

pattern

str, default: '([^.]*\\.[^.]*\\.[^.]*\\.[^.]*)[^.](\\.[^.]*)'

replacement

str, default: '\\1{component}\\2'

class Operator(**kwargs)[source]

Bases: Object

Undocumented.

filtering

Filtering, default: Filtering()

grouping

Grouping, default: Grouping()

translation

Translation, default: Translation()

class Parameters(**kwargs)[source]

Bases: Object

Undocumented.

class RestitutionParameters(**kwargs)[source]

Bases: Parameters

Undocumented.

frequency_min

float

frequency_max

float

frequency_taper_factor

float, default: 1.5

time_taper_factor

float, default: 2.0

class Restitution(**kwargs)[source]

Bases: Operator

Undocumented.

quantity

str (pyrocko.squirrel.model.QuantityType), default: 'displacement'

class Shift(**kwargs)[source]

Bases: Operator

Undocumented.

delay

float (pyrocko.guts.Duration)

class Transform(**kwargs)[source]

Bases: Operator

Undocumented.

grouping

Grouping, default: SensorGrouping()

class ToENZ(**kwargs)[source]

Bases: Transform

Undocumented.

class ToRTZ(**kwargs)[source]

Bases: Transform

Undocumented.

backazimuth

float

class ToLTQ(**kwargs)[source]

Bases: Transform

Undocumented.

class Composition(g, f, **kwargs)[source]

Bases: Operator

Undocumented.

g

Operator

f

Operator