pyrocko.gf.meta

Data model for Green’s function store meta-data.

Functions

indi12(x, n)

Get linear interpolation index and weight.

Classes

ChannelSelection(**kwargs)

Undocumented.

CircularRegion(**kwargs)

Undocumented.

ComponentScheme(...)

Different Green's Function component schemes are available:

ComponentSchemeDescription(**kwargs)

Undocumented.

Config(**kwargs)

Green's function store meta information.

ConfigTypeA(**kwargs)

Cylindrical symmetry, 1D earth model, single receiver depth

ConfigTypeB(**kwargs)

Cylindrical symmetry, 1D earth model, variable receiver depth

ConfigTypeC(**kwargs)

No symmetrical constraints, one fixed receiver position.

DiscretizedExplosionSource(**kwargs)

Undocumented.

DiscretizedMTSource(**kwargs)

Undocumented.

DiscretizedPorePressureSource(**kwargs)

Undocumented.

DiscretizedSFSource(**kwargs)

Undocumented.

DiscretizedSource(**kwargs)

Base class for discretized sources.

Earthmodel1D(...)

Undocumented.

GNSSCampaignResult(**kwargs)

Undocumented.

InterpolationMethod(...)

Any str out of ['nearest_neighbor', 'multilinear'].

KiteSceneResult(**kwargs)

Undocumented.

MultiLocation(*args, **kwargs)

Unstructured grid of point coordinates.

NearfieldTermsType(...)

Any str out of ['complete', 'incomplete', 'missing'].

PhaseSelect(...)

Any str out of ['', 'first', 'last'].

QuantityType(...)

Any str out of ['displacement', 'velocity', 'acceleration', 'rotation_displacement', 'rotation_velocity', 'rotation_acceleration', 'pressure', 'tilt', 'pore_pressure', 'darcy_velocity', 'vertical_tilt'].

Receiver(**kwargs)

Undocumented.

RectangularRegion(**kwargs)

Undocumented.

Reference(**kwargs)

Undocumented.

Region(**kwargs)

Undocumented.

Result(**kwargs)

Undocumented.

SatelliteResult(**kwargs)

Undocumented.

ScopeType(...)

Any str out of ['global', 'regional', 'local'].

SeismosizerResult(**kwargs)

Undocumented.

SeismosizerTrace(**kwargs)

Undocumented.

SimplePattern(pattern)

Undocumented.

StaticResult(**kwargs)

Undocumented.

StationSelection(**kwargs)

Undocumented.

StringID(...)

Any str matching pattern '^[A-Za-z][A-Za-z0-9._]{0,64}$'.

TPDef(**kwargs)

Maps an arrival phase identifier to an arrival phase definition.

Taper(**kwargs)

Undocumented.

Timing([s])

Definition of a time instant relative to one or more named phase arrivals.

WaveType(...)

Any str out of ['full waveform', 'bodywave', 'P wave', 'S wave', 'surface wave'].

WaveformSelection(**kwargs)

Undocumented.

WaveformType(...)

Any str out of ['dis', 'vel', 'acc', 'amp_spec_dis', 'amp_spec_vel', 'amp_spec_acc', 'envelope_dis', 'envelope_vel', 'envelope_acc'].

Weighting(**kwargs)

Undocumented.

Exceptions

InvalidNComponents

Raised when ncomponents is incompatible with component_scheme.

UnavailableScheme

Raised when it is not possible to use the requested component scheme.

class InterpolationMethod(...) str[source]

Bases: StringChoice

Any str out of ['nearest_neighbor', 'multilinear'].

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

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

class SeismosizerTrace(**kwargs)[source]

Bases: Object

Undocumented.

codes

tuple of 4 str objects, default: ('', 'STA', '', 'Z')

network, station, location and channel codes

data

numpy.ndarray (pyrocko.guts_array.Array)

numpy array with data samples

deltat

float, default: 1.0

sampling interval [s]

tmin

pyrocko.util.get_time_float (pyrocko.guts.Timestamp), default: str_to_time('1970-01-01 00:00:00')

time of first sample as a system timestamp [s]

class SeismosizerResult(**kwargs)[source]

Bases: Object

Undocumented.

n_records_stacked

int, optional, default: 1

t_stack

float, optional, default: 0.0

class Result(**kwargs)[source]

Bases: SeismosizerResult

Undocumented.

trace

SeismosizerTrace, optional

n_shared_stacking

int, optional, default: 1

t_optimize

float, optional, default: 0.0

class StaticResult(**kwargs)[source]

Bases: SeismosizerResult

Undocumented.

result

dict of numpy.ndarray (pyrocko.guts_array.Array) objects, default: {}

class GNSSCampaignResult(**kwargs)[source]

Bases: StaticResult

Undocumented.

campaign

pyrocko.model.gnss.GNSSCampaign, optional

class SatelliteResult(**kwargs)[source]

Bases: StaticResult

Undocumented.

theta

numpy.ndarray (pyrocko.guts_array.Array), optional

phi

numpy.ndarray (pyrocko.guts_array.Array), optional

class KiteSceneResult(**kwargs)[source]

Bases: SatelliteResult

Undocumented.

shape

tuple of pyrocko.guts.Any objects, default: ()

class ComponentSchemeDescription(**kwargs)[source]

Bases: Object

Undocumented.

name

str

source_terms

list of str objects, default: []

ncomponents

int

default_stored_quantity

str, optional

provided_components

list of str objects, default: []

class ComponentScheme(...) str[source]

Bases: StringChoice

Different Green’s Function component schemes are available:

Name

Description

elastic10

Elastodynamic for ConfigTypeA and ConfigTypeB stores, MT sources only

elastic8

Elastodynamic for far-field only ConfigTypeA and ConfigTypeB stores, MT sources only

elastic2

Elastodynamic for ConfigTypeA and ConfigTypeB stores, purely isotropic sources only

elastic5

Elastodynamic for ConfigTypeA and ConfigTypeB stores, SF sources only

elastic18

Elastodynamic for ConfigTypeC stores, MT sources only

poroelastic10

Poroelastic for ConfigTypeA and ConfigTypeB stores

rotational8

Elastodynamic rotational motions for ConfigTypeA and ConfigTypeB stores, MT sources only

class Earthmodel1D(...) pyrocko.cake.LayeredModel[source]

Bases: Object

Undocumented.

class StringID(...) str[source]

Bases: StringPattern

Any str matching pattern '^[A-Za-z][A-Za-z0-9._]{0,64}$'.

class ScopeType(...) str[source]

Bases: StringChoice

Any str out of ['global', 'regional', 'local'].

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

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

class WaveType(...) str[source]

Bases: StringChoice

Any str out of ['full waveform', 'bodywave', 'P wave', 'S wave', 'surface wave'].

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

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

class NearfieldTermsType(...) str[source]

Bases: StringChoice

Any str out of ['complete', 'incomplete', 'missing'].

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

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

class QuantityType(...) str[source]

Bases: StringChoice

Any str out of ['displacement', 'velocity', 'acceleration', 'rotation_displacement', 'rotation_velocity', 'rotation_acceleration', 'pressure', 'tilt', 'pore_pressure', 'darcy_velocity', 'vertical_tilt'].

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

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

class Reference(**kwargs)[source]

Bases: Object

Undocumented.

id

str (StringID)

type

str

title

str

journal

str, optional

volume

str, optional

number

str, optional

pages

str, optional

year

str

issn

str, optional

doi

str, optional

url

str, optional

eprint

str, optional

authors

list of str objects, default: []

publisher

str, optional

keywords

str, optional

note

str, optional

abstract

str, optional

class PhaseSelect(...) str[source]

Bases: StringChoice

Any str out of ['', 'first', 'last'].

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

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

class Timing(s=None, **kwargs)[source]

Bases: SObject

Definition of a time instant relative to one or more named phase arrivals.

Instances of this class can be used e.g. in cutting and tapering operations. They can hold an absolute time or an offset to a named phase arrival or group of such arrivals.

Timings can be instantiated from a simple string defintion i.e. with Timing(str) where str is something like 'SELECT{PHASE_DEFS}[+-]OFFSET[S|%]' where 'SELECT' is 'first', 'last' or empty, 'PHASE_DEFS' is a '|'-separated list of phase definitions, and 'OFFSET' is the time offset in seconds. If a '%' is appended, it is interpreted as percent. If the an 'S' is appended to 'OFFSET', it is interpreted as a surface slowness in [s/km].

Phase definitions can be specified in either of the following ways:

  • 'stored:PHASE_ID' - retrieves value from stored travel time table

  • 'cake:CAKE_PHASE_DEF' - evaluates first arrival of phase with cake (see pyrocko.cake.PhaseDef)

  • 'vel_surface:VELOCITY' - arrival according to surface distance / velocity [km/s]

  • 'vel:VELOCITY' - arrival according to 3D-distance / velocity [km/s]

Examples:

  • '100' : absolute time; 100 s

  • '{stored:P}-100' : 100 s before arrival of P phase according to stored travel time table named 'P'

  • '{stored:P}-5.1S' : 10% before arrival of P phase according to stored travel time table named 'P'

  • '{stored:P}-10%' : 10% before arrival of P phase according to stored travel time table named 'P'

  • '{stored:A|stored:B}' : time instant of phase arrival A, or B if A is undefined for a given geometry

  • 'first{stored:A|stored:B}' : as above, but the earlier arrival of A and B is chosen, if both phases are defined for a given geometry

  • 'last{stored:A|stored:B}' : as above but the later arrival is chosen

  • 'first{stored:A|stored:B|stored:C}-100' : 100 s before first out of arrivals A, B, and C

phase_defs

list of str objects, default: []

offset

float, default: 0.0

offset_is

str, optional

select

str (PhaseSelect), default: ''

Can be either '', 'first', or 'last'.

class TPDef(**kwargs)[source]

Bases: Object

Maps an arrival phase identifier to an arrival phase definition.

id

str (StringID)

name used to identify the phase

definition

str

definition of the phase in either cake syntax as defined in pyrocko.cake.PhaseDef, or, if prepended with an !, as a classic phase name, or, if it is a simple number, as a constant horizontal velocity.

class MultiLocation(*args, **kwargs)[source]

Bases: Object

Unstructured grid of point coordinates.

lats

numpy.ndarray (pyrocko.guts_array.Array), optional

Latitudes of targets.

lons

numpy.ndarray (pyrocko.guts_array.Array), optional

Longitude of targets.

north_shifts

numpy.ndarray (pyrocko.guts_array.Array), optional

North shifts of targets.

east_shifts

numpy.ndarray (pyrocko.guts_array.Array), optional

East shifts of targets.

elevation

numpy.ndarray (pyrocko.guts_array.Array), optional

Elevations of targets.

get_latlon()[source]

Get all coordinates as lat/lon.

Returns:

Coordinates in Latitude, Longitude

Return type:

numpy.ndarray, (N, 2)

get_corner_coords()[source]

Returns the corner coordinates of the multi-location object.

Returns:

In lat/lon: lower left, upper left, upper right, lower right

Return type:

tuple

class Receiver(**kwargs)[source]

Bases: Location

Undocumented.

codes

tuple of 3 str objects, optional

network, station, and location codes

exception UnavailableScheme[source]

Bases: Exception

Raised when it is not possible to use the requested component scheme.

exception InvalidNComponents[source]

Bases: Exception

Raised when ncomponents is incompatible with component_scheme.

class DiscretizedSource(**kwargs)[source]

Bases: Object

Base class for discretized sources.

To compute synthetic seismograms, the parameterized source models (see of Source derived classes) are first discretized into a number of point sources. These spacio-temporal point source distributions are represented by subclasses of the DiscretizedSource. For elastodynamic problems there is the DiscretizedMTSource for moment tensor point source distributions and the DiscretizedExplosionSource for pure explosion/implosion type source distributions. The geometry calculations are implemented in the base class. How Green’s function components have to be weighted and sumed is defined in the derived classes.

Like in the pyrocko.model.location.Location class, the positions of the point sources contained in the discretized source are defined by a common reference point (lat, lon) and cartesian offsets to this (north_shifts, east_shifts, depths). Alternatively latitude and longitude of each contained point source can be specified directly (lats, lons).

times

numpy.ndarray (pyrocko.guts_array.Array)

lats

numpy.ndarray (pyrocko.guts_array.Array), optional

lons

numpy.ndarray (pyrocko.guts_array.Array), optional

lat

float, optional

lon

float, optional

north_shifts

numpy.ndarray (pyrocko.guts_array.Array), optional

east_shifts

numpy.ndarray (pyrocko.guts_array.Array), optional

depths

numpy.ndarray (pyrocko.guts_array.Array)

dl

float, optional

dw

float, optional

nl

float, optional

nw

float, optional

classmethod check_scheme(scheme)[source]

Check if given GF component scheme is supported by the class.

Raises UnavailableScheme if the given scheme is not supported by this discretized source class.

property effective_latlons

Property holding the offest-corrected lats and lons of all points.

same_origin(receiver)[source]

Check if receiver has same reference point.

azibazis_to(receiver)[source]

Compute azimuths and backaziumuths to/from receiver, for all contained points.

distances_to(receiver)[source]

Compute distances to receiver for all contained points.

classmethod combine(sources, **kwargs)[source]

Combine several discretized source models.

Concatenenates all point sources in the given discretized sources. Care must be taken when using this function that the external amplitude factors and reference times of the parameterized (undiscretized) sources match or are accounted for.

class DiscretizedExplosionSource(**kwargs)[source]

Bases: DiscretizedSource

Undocumented.

m0s

numpy.ndarray (pyrocko.guts_array.Array)

classmethod combine(sources, **kwargs)[source]

Combine several discretized source models.

Concatenenates all point sources in the given discretized sources. Care must be taken when using this function that the external amplitude factors and reference times of the parameterized (undiscretized) sources match or are accounted for.

class DiscretizedSFSource(**kwargs)[source]

Bases: DiscretizedSource

Undocumented.

forces

numpy.ndarray (pyrocko.guts_array.Array)

classmethod combine(sources, **kwargs)[source]

Combine several discretized source models.

Concatenenates all point sources in the given discretized sources. Care must be taken when using this function that the external amplitude factors and reference times of the parameterized (undiscretized) sources match or are accounted for.

class DiscretizedMTSource(**kwargs)[source]

Bases: DiscretizedSource

Undocumented.

m6s

numpy.ndarray (pyrocko.guts_array.Array)

rows with (m_nn, m_ee, m_dd, m_ne, m_nd, m_ed)

classmethod combine(sources, **kwargs)[source]

Combine several discretized source models.

Concatenenates all point sources in the given discretized sources. Care must be taken when using this function that the external amplitude factors and reference times of the parameterized (undiscretized) sources match or are accounted for.

class DiscretizedPorePressureSource(**kwargs)[source]

Bases: DiscretizedSource

Undocumented.

pp

numpy.ndarray (pyrocko.guts_array.Array)

classmethod combine(sources, **kwargs)[source]

Combine several discretized source models.

Concatenenates all point sources in the given discretized sources. Care must be taken when using this function that the external amplitude factors and reference times of the parameterized (undiscretized) sources match or are accounted for.

class Region(**kwargs)[source]

Bases: Object

Undocumented.

name

str, optional

class RectangularRegion(**kwargs)[source]

Bases: Region

Undocumented.

lat_min

float

lat_max

float

lon_min

float

lon_max

float

class CircularRegion(**kwargs)[source]

Bases: Region

Undocumented.

lat

float

lon

float

radius

float

class Config(**kwargs)[source]

Bases: Object

Green’s function store meta information.

Currently implemented Store configuration types are:

  • ConfigTypeA - cylindrical or spherical symmetry, 1D earth model, single receiver depth

    • Problem is invariant to horizontal translations and rotations around vertical axis.

    • All receivers must be at the same depth (e.g. at the surface)

    • High level index variables: (source_depth, receiver_distance, component)

  • ConfigTypeB - cylindrical or spherical symmetry, 1D earth model, variable receiver depth

    • Symmetries like in Type A but has additional index for receiver depth

    • High level index variables: (source_depth, receiver_distance, receiver_depth, component)

  • ConfigTypeC - no symmetrical constraints but fixed receiver positions

    • Cartesian source volume around a reference point

    • High level index variables: (ireceiver, source_depth, source_east_shift, source_north_shift, component)

id

str (StringID)

Name of the store. May consist of upper and lower-case letters, digits, dots and underscores. The name must start with a letter.

derived_from_id

str (StringID), optional

Name of the original store, if this store has been derived from another one (e.g. extracted subset).

version

str, optional, default: '1.0'

User-defined version string. Use <major>.<minor> format.

modelling_code_id

str (StringID), optional

Identifier of the backend used to compute the store.

author

str, optional

Comma-separated list of author names.

author_email

str, optional

Author’s contact email address.

created_time

pyrocko.util.get_time_float (pyrocko.guts.Timestamp), optional

Time of creation of the store.

regions

list of Region objects, default: []

Geographical regions for which the store is representative.

scope_type

str (ScopeType), optional

Distance range scope of the store (choices: 'global', 'regional', 'local').

waveform_type

str (WaveType), optional

Wave type stored (choices: 'full waveform', 'bodywave', 'P wave', 'S wave', 'surface wave').

nearfield_terms

str (NearfieldTermsType), optional

Information about the inclusion of near-field terms in the modelling (choices: 'complete', 'incomplete', 'missing').

description

str, optional

Free form textual description of the GF store.

references

list of Reference objects, default: []

Reference list to cite the modelling code, earth model or related work.

earthmodel_1d

pyrocko.cake.LayeredModel (Earthmodel1D), optional

Layered earth model in ND (named discontinuity) format.

earthmodel_receiver_1d

pyrocko.cake.LayeredModel (Earthmodel1D), optional

Receiver-side layered earth model in ND format.

can_interpolate_source

bool, optional

Hint to indicate if the spatial sampling of the store is dense enough for multi-linear interpolation at the source.

can_interpolate_receiver

bool, optional

Hint to indicate if the spatial sampling of the store is dense enough for multi-linear interpolation at the receiver.

frequency_min

float, optional

Hint to indicate the lower bound of valid frequencies [Hz].

frequency_max

float, optional

Hint to indicate the upper bound of valid frequencies [Hz].

sample_rate

float, optional

Sample rate of the GF store [Hz].

factor

float, optional, default: 1.0

Gain value, factored out of the stored GF samples. (may not work properly, keep at 1.0).

component_scheme

str (ComponentScheme), default: 'elastic10'

GF component scheme (choices: 'elastic2', 'elastic8', 'elastic10', 'elastic10_fd', 'elastic18', 'elastic5', 'rotational8', 'poroelastic10').

stored_quantity

str (QuantityType), optional

Physical quantity of stored values (choices: 'displacement', 'velocity', 'acceleration', 'rotation_displacement', 'rotation_velocity', 'rotation_acceleration', 'pressure', 'tilt', 'pore_pressure', 'darcy_velocity', 'vertical_tilt'). If not given, a default is used based on the GF component scheme. The default for the "elastic*" family of component schemes is "displacement".

tabulated_phases

list of TPDef objects, default: []

Mapping of phase names to phase definitions, for which travel time tables are available in the GF store.

ncomponents

int, optional

Number of GF components. Use component_scheme instead.

uuid

str, optional

Heuristic hash value which can be used to uniquely identify the GF store for practical purposes.

reference

str, optional

Store reference name composed of the store’s id and the first six letters of its uuid.

get_shear_moduli(lat, lon, points, interpolation=None)[source]

Get shear moduli at given points from contained velocity model.

Parameters:
  • lat – surface origin for coordinate system of points

  • points – NumPy array of shape (N, 3), where each row is a point (north, east, depth), relative to origin at (lat, lon)

  • interpolation – interpolation method. Choose from ('nearest_neighbor', 'multilinear')

Returns:

NumPy array of length N with extracted shear moduli at each point

The default implementation retrieves and interpolates the shear moduli from the contained 1D velocity profile.

get_lambda_moduli(lat, lon, points, interpolation=None)[source]

Get lambda moduli at given points from contained velocity model.

Parameters:
  • lat – surface origin for coordinate system of points

  • points – NumPy array of shape (N, 3), where each row is a point (north, east, depth), relative to origin at (lat, lon)

  • interpolation – interpolation method. Choose from ('nearest_neighbor', 'multilinear')

Returns:

NumPy array of length N with extracted shear moduli at each point

The default implementation retrieves and interpolates the lambda moduli from the contained 1D velocity profile.

get_bulk_moduli(lat, lon, points, interpolation=None)[source]

Get bulk moduli at given points from contained velocity model.

Parameters:
  • lat – surface origin for coordinate system of points

  • points – NumPy array of shape (N, 3), where each row is a point (north, east, depth), relative to origin at (lat, lon)

  • interpolation – interpolation method. Choose from ('nearest_neighbor', 'multilinear')

Returns:

NumPy array of length N with extracted shear moduli at each point

The default implementation retrieves and interpolates the lambda moduli from the contained 1D velocity profile.

get_vs(lat, lon, points, interpolation=None)[source]

Get Vs at given points from contained velocity model.

Parameters:
  • lat – surface origin for coordinate system of points

  • points – NumPy array of shape (N, 3), where each row is a point (north, east, depth), relative to origin at (lat, lon)

  • interpolation – interpolation method. Choose from ('nearest_neighbor', 'multilinear')

Returns:

NumPy array of length N with extracted shear moduli at each point

The default implementation retrieves and interpolates Vs from the contained 1D velocity profile.

get_vp(lat, lon, points, interpolation=None)[source]

Get Vp at given points from contained velocity model.

Parameters:
  • lat – surface origin for coordinate system of points

  • points – NumPy array of shape (N, 3), where each row is a point (north, east, depth), relative to origin at (lat, lon)

  • interpolation – interpolation method. Choose from ('nearest_neighbor', 'multilinear')

Returns:

NumPy array of length N with extracted shear moduli at each point

The default implementation retrieves and interpolates Vp from the contained 1D velocity profile.

get_rho(lat, lon, points, interpolation=None)[source]

Get rho at given points from contained velocity model.

Parameters:
  • lat – surface origin for coordinate system of points

  • points – NumPy array of shape (N, 3), where each row is a point (north, east, depth), relative to origin at (lat, lon)

  • interpolation – interpolation method. Choose from ('nearest_neighbor', 'multilinear')

Returns:

NumPy array of length N with extracted shear moduli at each point

The default implementation retrieves and interpolates rho from the contained 1D velocity profile.

get_tabulated_phase(phase_id)[source]

Get tabulated phase definition.

class ConfigTypeA(**kwargs)[source]

Bases: Config

Cylindrical symmetry, 1D earth model, single receiver depth

  • Problem is invariant to horizontal translations and rotations around vertical axis.

  • All receivers must be at the same depth (e.g. at the surface) High level index variables: (source_depth, distance, component)

  • The distance is the surface distance between source and receiver points.

receiver_depth

float, default: 0.0

Fixed receiver depth [m].

source_depth_min

float

Minimum source depth [m].

source_depth_max

float

Maximum source depth [m].

source_depth_delta

float

Grid spacing of source depths [m]

distance_min

float

Minimum source-receiver surface distance [m].

distance_max

float

Maximum source-receiver surface distance [m].

distance_delta

float

Grid spacing of source-receiver surface distance [m].

fd_distance_delta

float, optional

Finite differences interval for FD stores [m].

class ConfigTypeB(**kwargs)[source]

Bases: Config

Cylindrical symmetry, 1D earth model, variable receiver depth

  • Symmetries like in ConfigTypeA but has additional index for receiver depth

  • High level index variables: (receiver_depth, source_depth, receiver_distance, component)

receiver_depth_min

float

Minimum receiver depth [m].

receiver_depth_max

float

Maximum receiver depth [m].

receiver_depth_delta

float

Grid spacing of receiver depths [m]

source_depth_min

float

Minimum source depth [m].

source_depth_max

float

Maximum source depth [m].

source_depth_delta

float

Grid spacing of source depths [m]

distance_min

float

Minimum source-receiver surface distance [m].

distance_max

float

Maximum source-receiver surface distance [m].

distance_delta

float

Grid spacing of source-receiver surface distances [m].

fd_distance_delta

float, optional

Finite differences interval for FD stores [m].

fd_receiver_depth_delta

float, optional

Finite differences interval for FD stores [m].

class ConfigTypeC(**kwargs)[source]

Bases: Config

No symmetrical constraints, one fixed receiver position.

  • Cartesian 3D source volume around a reference point

  • High level index variables: (source_depth, source_east_shift, source_north_shift, component)

receiver

Receiver

Receiver location

source_origin

pyrocko.model.location.Location

Origin of the source volume grid.

source_depth_min

float

Minimum source depth [m].

source_depth_max

float

Maximum source depth [m].

source_depth_delta

float

Source depth grid spacing [m].

source_east_shift_min

float

Minimum easting of source grid [m].

source_east_shift_max

float

Maximum easting of source grid [m].

source_east_shift_delta

float

Source volume grid spacing in east direction [m].

source_north_shift_min

float

Minimum northing of source grid [m].

source_north_shift_max

float

Maximum northing of source grid [m].

source_north_shift_delta

float

Source volume grid spacing in north direction [m].

class Weighting(**kwargs)[source]

Bases: Object

Undocumented.

factor

float, default: 1.0

class Taper(**kwargs)[source]

Bases: Object

Undocumented.

tmin

Timing

tmax

Timing

tfade

float, default: 0.0

shape

str (pyrocko.guts.StringChoice), optional, default: 'cos'

class SimplePattern(pattern)[source]

Bases: SObject

Undocumented.

class WaveformType(...) str[source]

Bases: StringChoice

Any str out of ['dis', 'vel', 'acc', 'amp_spec_dis', 'amp_spec_vel', 'amp_spec_acc', 'envelope_dis', 'envelope_vel', 'envelope_acc'].

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

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

class ChannelSelection(**kwargs)[source]

Bases: Object

Undocumented.

pattern

SimplePattern, optional

min_sample_rate

float, optional

max_sample_rate

float, optional

class StationSelection(**kwargs)[source]

Bases: Object

Undocumented.

includes

SimplePattern

excludes

SimplePattern

distance_min

float, optional

distance_max

float, optional

azimuth_min

float, optional

azimuth_max

float, optional

class WaveformSelection(**kwargs)[source]

Bases: Object

Undocumented.

channel_selection

ChannelSelection, optional

station_selection

StationSelection, optional

taper

Taper

waveform_type

str (WaveformType), default: 'dis'

weighting

Weighting, optional

sample_rate

float, optional

gf_store_id

str (StringID), optional

indi12(x, n)[source]

Get linear interpolation index and weight.