From ca17bd5278b4ef4629a1e5f59d79f935bc8fde01 Mon Sep 17 00:00:00 2001 From: kienle <kienle@passcal.nmt.edu> Date: Fri, 21 Jul 2023 10:04:32 -0600 Subject: [PATCH] Store the actual number of points grabbed --- sohstationviewer/model/reftek/from_rt2ms/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sohstationviewer/model/reftek/from_rt2ms/core.py b/sohstationviewer/model/reftek/from_rt2ms/core.py index 11a4dcecc..0a19f3349 100644 --- a/sohstationviewer/model/reftek/from_rt2ms/core.py +++ b/sohstationviewer/model/reftek/from_rt2ms/core.py @@ -147,6 +147,7 @@ class Reftek130(obspy_rt130_core.Reftek130): tr = Trace(data=sample_data, header=copy.deepcopy(header)) tr.stats.npts = packets_['number_of_samples'].sum() + tr.stats.actual_npts = npts # channel number is not included in the EH/ET packet # payload, so add it to stats as well.. tr.stats.reftek130['channel_number'] = channel_number -- GitLab