pyrocko.scenario.sources.base¶
Base class for source generators.
Classes
|
Base class for source generators. |
- class SourceGenerator(*args, **kwargs)[source]¶
Bases:
LocationGeneratorBase class for source generators.
Provides the functionality to read sources from a file. Base class for generators producing random sources.
- ♦ nevents¶
int, default:2
- ♦ avoid_water¶
bool, default:FalseAvoid sources offshore under the ocean / lakes.
- ♦ time_min¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp), default:str_to_time('2017-01-01 00:00:00')
- ♦ time_max¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp), default:str_to_time('2017-01-03 00:00:00')
- ♦ magnitude_min¶
float, default:4.0minimum moment magnitude
- ♦ magnitude_max¶
float, optionalif set, maximum moment magnitude for a uniform distribution. If set to
None, magnitudes are drawn using a Gutenberg-Richter distribution, seeb_value.
- ♦ b_value¶
float, optionalb-value for Gutenberg-Richter magnitude distribution. If unset, a value of 1 is assumed.
- ♦ source_file¶
str, optionalPath to source file. Sources are used as scenario events