scenario
¶
The ScenarioGenerator (scenario.ScenarioGenerator
)¶
This module bundles the TargetGenerators
together.
Available Scenario Target Generators
- Scenario’s SourceGenerators
DCSourceGenerator
RectangularSourceGenerator
RectangularSourceGenerator
RectangularSourceGenerator.depth_min
RectangularSourceGenerator.depth_max
RectangularSourceGenerator.decimation_factor
RectangularSourceGenerator.strike
RectangularSourceGenerator.dip
RectangularSourceGenerator.rake
RectangularSourceGenerator.depth
RectangularSourceGenerator.width
RectangularSourceGenerator.length
PseudoDynamicRuptureGenerator
PseudoDynamicRuptureGenerator
PseudoDynamicRuptureGenerator.depth_min
PseudoDynamicRuptureGenerator.depth_max
PseudoDynamicRuptureGenerator.decimation_factor
PseudoDynamicRuptureGenerator.slip_min
PseudoDynamicRuptureGenerator.slip_max
PseudoDynamicRuptureGenerator.strike
PseudoDynamicRuptureGenerator.dip
PseudoDynamicRuptureGenerator.rake
PseudoDynamicRuptureGenerator.depth
PseudoDynamicRuptureGenerator.nx
PseudoDynamicRuptureGenerator.ny
PseudoDynamicRuptureGenerator.nucleation_x
PseudoDynamicRuptureGenerator.nucleation_y
PseudoDynamicRuptureGenerator.width
PseudoDynamicRuptureGenerator.length
PseudoDynamicRuptureGenerator.gamma
- Scenario’s TargetGenerators
StationGenerator
WaveformGenerator
WaveformNoiseGenerator
WhiteNoiseGenerator
WaveformGenerator
WaveformGenerator.station_generators
WaveformGenerator.noise_generator
WaveformGenerator.store_id
WaveformGenerator.seismogram_quantity
WaveformGenerator.nsl_to_store_id
WaveformGenerator.vmin_cut
WaveformGenerator.vmax_cut
WaveformGenerator.fmin
WaveformGenerator.tabulated_phases
WaveformGenerator.tabulated_phases_from_store
WaveformGenerator.tabulated_phases_noise_scale
WaveformGenerator.taper
WaveformGenerator.compensate_synthetic_offsets
WaveformGenerator.tinc
WaveformGenerator.continuous
WaveformGenerator.get_targets()
WaveformGenerator.get_time_range()
InSARGenerator
ScenePatch
ScenePatch.center_lat
ScenePatch.center_lon
ScenePatch.time_master
ScenePatch.time_slave
ScenePatch.inclination
ScenePatch.apogee
ScenePatch.swath_width
ScenePatch.track_length
ScenePatch.incident_angle
ScenePatch.resolution
ScenePatch.orbital_node
ScenePatch.mask_water
ScenePatch.SatelliteGeneratorTarget
ScenePatch.get_grid()
AtmosphericNoiseGenerator
InSARGenerator
GNSSCampaignGenerator
- class ScenarioGenerator(**kwargs)[source]¶
Bases:
LocationGenerator
Generator for synthetic seismo-geodetic scenarios.
- ♦ target_generators¶
list
ofpyrocko.scenario.targets.base.TargetGenerator
objects, default:[]
Targets to spawn in the scenario.
- ♦ source_generator¶
pyrocko.scenario.sources.base.SourceGenerator
, default:DCSourceGenerator()
Sources to spawn in the scenario.
- dump_data(path, overwrite=False)[source]¶
Invoke generators and dump the complete scenario.
- Parameters:
Wrapper to call
prepare_data()
followed byensure_data()
with default arguments.
- ensure_data(path, tmin=None, tmax=None)[source]¶
Generate and output scenario content to files, as needed.
- Parameters:
path (str) – Output directory
tmin (timestamp, optional) – Start of time interval to generate
tmax (timestamp, optional) – End of time interval to generate
This method only generates the files which are relevant for the given time interval, and which have not yet been generated. It is safe to call this method several times, for different time windows, as needed.
If no time interval is given, the origin times of the generated sources and signal propagation times are taken into account to estimate a reasonable default.
- classmethod initialize(path, center_lat=None, center_lon=None, radius=None, targets=[<class 'pyrocko.scenario.targets.waveform.WaveformGenerator'>, <class 'pyrocko.scenario.targets.insar.InSARGenerator'>, <class 'pyrocko.scenario.targets.gnss_campaign.GNSSCampaignGenerator'>], stationxml=None, force=False)[source]¶
Initialize a Scenario and create a
scenario.yml
- Parameters:
path (str) – Path to create the scenerio in
center_lat (float, optional) – Center latitude [deg]
center_lon (float, optional) – Center longitude [deg]
radius (float, optional) – Scenario’s radius in [m]
targets (list of
pyrocko.scenario.TargetGenerator
objects, optional) – Targets to throw into scenario, defaults to AVAILABLE_TARGETSforce (bool) – If set to
True
, overwrite directorystationxml (str) – path to a StationXML to be used by the
pyrocko.scenario.targets.WaveformGenerator
.
- Returns:
Scenario
- Return type:
pyrocko.scenario.ScenarioGenerator
The ScenarioCollection (scenario.ScenarioCollection
)¶
A collection acts like an archive for a
pyrocko.scenario.ScenarioGenerator
- class ScenarioCollectionItem(**kwargs)[source]¶
Bases:
Object
Undocumented.
- ♦ scenario_id¶
str
(pyrocko.gf.meta.StringID
)
- ♦ time_created¶
time_float (
pyrocko.guts.Timestamp
)