5.11.1.1. eqcorrscan.utils.synth_seis.generate_synth_data¶
-
eqcorrscan.utils.synth_seis.
generate_synth_data
(nsta=5, ntemplates=3, nseeds=100, samp_rate=20.0, t_length=3.0, max_amp=10.0, max_lag=20, debug=0)[source]¶ Function to generate a synthetic dataset to be used for testing. This will generate both templates and data to scan through. Templates will be generated using the utils.synth_seis functions. The day of data will be random noise, with random signal-to-noise ratio copies of the templates randomly seeded throughout the day. It also returns the seed times and signal-to-noise ratios used.
Parameters: - nsta (int) – Number of stations to generate data for < 15.
- ntemplates (int) – Number of templates to generate, will be generated with random arrival times.
- nseeds (int) – Number of copies of the template to seed within the day of noisy data for each template.
- samp_rate (float) – Sampling rate to use in Hz
- t_length (float) – Length of templates in seconds.
- max_amp (float) – Maximum signal-to-noise ratio of seeds.
- max_lag (Maximum lag time in seconds (randomised).) – float
- debug (int) – Debug level, bigger the number, the more plotting/output.
Returns: Templates: List of obspy.Stream, Data: obspy.Stream of seeded noisy data, Seeds: dictionary of seed SNR and time with time in samples.