pynetdesign.modelling.utils.check_min_stations#
- pynetdesign.modelling.utils.check_min_stations(min_stations_p, min_stations_s, n_stations, wave_mode='PS')[source]#
Check that the minimum numbers of stations required for detection are valid.
- Parameters:
- min_stations_p
int Minimum number of stations on which event must be detected with P waves.
- min_stations_s
int Minimum number of stations on which event must be detected with S waves.
- n_stations
int Total number of stations in the geometry.
- wave_mode
str, optional, default:'PS' Wave mode to use, can be ‘P’, ‘SV’, ‘SH’, ‘S’ or ‘PS’.
- min_stations_p
- Raises:
- ValueError
If a minimum number of stations is not positive or exceeds the number of stations.
Notes
Each of
min_stations_pandmin_stations_sis checked only if it is notNoneand only if the corresponding branch is part ofwave_mode.