adjtomo / pysep

Seismogram Extraction and Processing: Seismic data retrieval and record sections
https://pysep.readthedocs.io
MIT License
29 stars 15 forks source link

Bugfix RecSec ZeroDivisionError on trace normalization #137

Closed bch0w closed 9 months ago

bch0w commented 9 months ago

Small RecSec PR to address #131 concerning zero amplitude traces. Previously, zero amplitude normalization would cause the NumPy trace arrays to become NaNs which would not plot, but would allow RecSec to continue running. There are now some guardrails in place to prevent these arrays from becoming NaNs.

Changelog: