pyrocko.scenario.base

Base classes for the scenario generators.

Classes

class Generator(**kwargs)[source]

Bases: Object

Base class for random object generators in pyrocko.scenario.

♦ seed

int, optional

Random seed for a reproducible scenario.

class LocationGenerator(**kwargs)[source]

Bases: Generator

Base class for generators providing random locations.

♦ avoid_water

bool, default: True

Set whether wet areas should be avoided.

♦ center_lat

float, optional

Center latitude for the random locations in [deg].

♦ center_lon

float, optional

Center longitude for the random locations in [deg].

♦ radius

float, optional

Radius for distribution of random locations [m].

♦ ntries

int, default: 10

Maximum number of tries to find a location satisifying all given constraints

♦ north_shift_min

float, optional

If given, lower bound of random northward cartesian offset [m].

♦ north_shift_max

float, optional

If given, upper bound of random northward cartesian offset [m].

♦ east_shift_min

float, optional

If given, lower bound of random eastward cartesian offset [m].

♦ east_shift_max

float, optional

If given, upper bound of random eastward cartesian offset [m].

♦ depth_min

float, optional

If given, minimum depth [m].

♦ depth_max

float, optional

If given, maximum depth [m].