eqcorrscan / EQcorrscan

Earthquake detection and analysis in Python.
https://eqcorrscan.readthedocs.io/en/latest/
Other
166 stars 86 forks source link

Zero length processed data #407

Closed calum-chamberlain closed 4 years ago

calum-chamberlain commented 4 years ago

What does this PR do?

Allows ignore_bad_data=True flag to be used to ignore bad traces.

Why was it initiated? Any relevant Issues?

Currently if ignore_bad_data=True and traces less than 80% of the required length are found, data from these will be removed, however the stats for these traces remain. Due to some sloppy hard-coding, data are trimmed to the length of the zeroth trace, which might be length 0. This PR checks if there are 0-length traces and removes those.

PR Checklist