This page tries to summarize the filtering applied in the geonet_to_gmdb.py file
inventory_st is ther
Filters
- inventory_st is empty and there is no station magnitude pairs for the given network / station
- if preferred mag type is ml or mlv
- If there is no data in the waveform or the trace is all 0's and there is no station_magnitude pairing recorded for the event then the record is ignored
- If there is data from the waveform and the trace is not all 0's and the SNR is not greater than 3 then it will attempt a filter using highpass and recalculate snr, if it is less than 3 again then the record is ignored
- If there is data from the waveform and the trace is not all 0's and the SNR is not greater than 3 then it will attempt a filter using highpass and recalculate snr, if it is greater than 3 but the gain from the digital SOS filter is less than 1e-2 then the record is ignored
Extra notes
- station_magnitude csv is duplicated with the mags csv
- Not every record has SNR
- A few bugs encountered if certain loops get entered that would cause a crash