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
, optionalRandom 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
, optionalCenter latitude for the random locations in [deg].
- ♦ center_lon¶
float
, optionalCenter longitude for the random locations in [deg].
- ♦ radius¶
float
, optionalRadius 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
, optionalIf given, lower bound of random northward cartesian offset [m].
- ♦ north_shift_max¶
float
, optionalIf given, upper bound of random northward cartesian offset [m].
- ♦ east_shift_min¶
float
, optionalIf given, lower bound of random eastward cartesian offset [m].
- ♦ east_shift_max¶
float
, optionalIf given, upper bound of random eastward cartesian offset [m].
- ♦ depth_min¶
float
, optionalIf given, minimum depth [m].
- ♦ depth_max¶
float
, optionalIf given, maximum depth [m].