-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththresholds.txt
9 lines (5 loc) · 5.93 KB
/
thresholds.txt
1
2
3
4
5
6
7
8
9
groupsDict = ['broadband', 'short period', 'strongmotion']
thresholdGroups = ['Amplitudes', 'Completeness', 'Metadata', 'State of Health', 'Timing']
instrumentGroupsDict = {'broadband': {'network': ['*'], 'station': ['*'], 'location': ['*'], 'channel': ['BH', 'HH']}, 'short period': {'network': ['*'], 'station': ['*'], 'location': ['*'], 'channel': ['SH', 'EH']}, 'strongmotion': {'network': ['*'], 'station': ['*'], 'location': ['*'], 'channel': ['BN', 'HN']}}
thresholdsDict = {'gapsRatioGt12': {'broadband': ['num_gaps / percent_availability >= 0.12'], 'short period': ['num_gaps / percent_availability >= 0.12'], 'strongmotion': ['num_gaps / percent_availability >= 0.12']}, 'noData': {'broadband': ['percent_availability = 0'], 'short period': ['percent_availability = 0'], 'strongmotion': ['percent_availability = 0']}, 'avgGaps': {'broadband': ['average :: num_gaps >= 2'], 'short period': ['average :: num_gaps >= 2'], 'strongmotion': ['average :: num_gaps >= 2']}, 'flat': {'broadband': ['sample_unique < 200'], 'short period': ['sample_unique < 50']}, 'lowRms': {'broadband': ['sample_rms < 25'], 'short period': ['sample_rms < 10']}, 'hiAmp': {'broadband': ['pct_above_nhnm > 30', 'sample_rms > 50000'], 'short period': ['pct_above_nhnm > 40']}, 'lowAmp': {'broadband': ['dead_channel_lin >= 3.5', 'pct_below_nlnm > 20'], 'short period': ['pct_below_nlnm > 0']}, 'badResp': {'broadband': ['pct_above_nhnm > 90', 'dead_channel_lin > 2'], 'short period': ['pct_above_nhnm > 90']}, 'badResp2': {'broadband': ['dead_channel_lin > 2', 'pct_above_nhnm < -90.0'], 'short period': ['pct_above_nhnm < 90']}, 'pegged': {'broadband': ['sample_rms < 1000', 'abs(sample_mean) > 6000000.0']}, 'dead': {'broadband': ['dead_channel_gsn = 1.0']}, 'noise1': {'broadband': ['dead_channel_lin < 2.25', 'pct_above_nhnm > 20']}, 'noise2': {'broadband': ['dead_channel_lin < 2', 'pct_below_nlnm <= 20', 'num_gaps < 10']}, 'medianUnique': {'broadband': ['median :: sample_unique = 1.0']}, 'xTalk': {'broadband': ['abs(cross_talk) >= 0.9']}, 'polarity': {'broadband': ['polarity_check <= -0.5']}, 'gainRatio': {'broadband': ['transfer_function::ms_coherence >= 0.999', 'transfer_function::gain_ratio <= 0.95']}, 'nonCoher': {'broadband': ['transfer_function::ms_coherence < 0.99']}, 'rmsRatio': {'broadband': ['sample_rms[V] / sample_rms[H:avg] > 10.0']}, 'avgSpikes': {'broadband': ['average :: num_spikes > 100']}, 'nSpikes': {'broadband': ['num_spikes >= 500']}, 'dcOffsets': {'broadband': ['dc_offset > 10'], 'short period': ['dc_offset > 10']}, 'noTime': {'broadband': ['clock_locked = 0'], 'short period': ['clock_locked = 0']}, 'poorTQual': {'broadband': ['timing_quality >= 0', 'timing_quality < 60'], 'short period': ['timing_quality >= 0', 'timing_quality < 60']}, 'suspectTime': {'broadband': ['suspect_time_tag > 1'], 'short period': ['suspect_time_tag > 1']}, 'ampSat': {'broadband': ['amplifier_saturation > 0'], 'short period': ['amplifier_saturation > 0']}, 'filtChg': {'broadband': ['digital_filter_charging > 2'], 'short period': ['digital_filter_charging > 2']}, 'clip': {'broadband': ['digitizer_clipping > 0'], 'short period': ['digitizer_clipping > 0']}, 'spikes': {'broadband': ['spikes > 0'], 'short period': ['spikes > 0']}, 'glitch': {'broadband': ['glitches > 0'], 'short period': ['glitches > 0']}, 'padding': {'broadband': ['missing_padded_data > 0'], 'short period': ['missing_padded_data > 0']}, 'tSync': {'broadband': ['telemetry_sync_error > 0'], 'short period': ['telemetry_sync_error > 0']}, 'zDip': {'broadband': ['Dip[V] > -90.0'], 'short period': ['Dip[V] > -90.0'], 'strongmotion': ['Dip[V] > -90.0']}, 'horDip': {'broadband': ['Dip[H] != 0.0'], 'short period': ['Dip[H] != 0.0'], 'strongmotion': ['Dip[H] != 0.0']}, 'zeroZ': {'broadband': ['Elevation = 0', 'Depth = 0'], 'short period': ['Elevation = 0', 'Depth = 0']}, 'nonMSUnits': {'broadband': ['ScaleUnits != M/S', 'ScaleUnits != m/s'], 'short period': ['ScaleUnits != M/S', 'ScaleUnits != m/s']}, 'lowScale': {'broadband': ['Scale <= 0'], 'short period': ['Scale <= 0']}, 'gainRatioB': {'broadband': ['transfer_function::ms_coherence > 0.999', 'transfer_function::gain_ratio >= 1.05']}, 'rmsRatio_horiz': {'broadband': ['sample_rms[H:vs] / sample_rms[H:vs] > 10.0']}}
thresholdsMetricsDict = {'gapsRatioGt12': ['num_gaps', 'percent_availability'], 'noData': ['percent_availability', '0'], 'avgGaps': ['num_gaps', '2'], 'flat': ['sample_unique', '200', '50'], 'lowRms': ['sample_rms', '25', '10'], 'hiAmp': ['pct_above_nhnm', '30', 'sample_rms', '50000', '40'], 'lowAmp': ['dead_channel_lin', '3.5', 'pct_below_nlnm', '20', '0'], 'badResp': ['pct_above_nhnm', '90', 'dead_channel_lin', '2'], 'badResp2': ['dead_channel_lin', '2', 'pct_above_nhnm', '-90.0', '90'], 'pegged': ['sample_rms', '1000', 'sample_mean', '6000000.0'], 'dead': ['dead_channel_gsn', '1.0'], 'noise1': ['dead_channel_lin', '2.25', 'pct_above_nhnm', '20'], 'noise2': ['dead_channel_lin', '2', 'pct_below_nlnm', '20', 'num_gaps', '10'], 'medianUnique': ['sample_unique', '1.0'], 'xTalk': ['cross_talk', '0.9'], 'polarity': ['polarity_check', '-0.5'], 'gainRatio': ['transfer_function::ms_coherence', '0.999', 'transfer_function::gain_ratio', '0.95'], 'nonCoher': ['transfer_function::ms_coherence', '0.99'], 'rmsRatio': ['sample_rms'], 'avgSpikes': ['num_spikes', '100'], 'nSpikes': ['num_spikes', '500'], 'dcOffsets': ['dc_offset', '10'], 'noTime': ['clock_locked', '0'], 'poorTQual': ['timing_quality', '0', '60'], 'suspectTime': ['suspect_time_tag', '1'], 'ampSat': ['amplifier_saturation', '0'], 'filtChg': ['digital_filter_charging', '2'], 'clip': ['digitizer_clipping', '0'], 'spikes': ['spikes', '0'], 'glitch': ['glitches', '0'], 'padding': ['missing_padded_data', '0'], 'tSync': ['telemetry_sync_error', '0'], 'zDip': ['Dip', '-90.0'], 'horDip': ['Dip', '0.0'], 'zeroZ': ['Elevation', '0', 'Depth'], 'nonMSUnits': ['ScaleUnits', 'M/S', 'm/s'], 'lowScale': ['Scale', '0'], 'gainRatioB': ['transfer_function::ms_coherence', '0.999', 'transfer_function::gain_ratio', '1.05'], 'rmsRatio_horiz': ['sample_rms']}