Skip to content
Snippets Groups Projects
Commit f7218ac6 authored by Kien Le's avatar Kien Le
Browse files

Fix waveform plot time for Reftek data

parent 5ad1880d
No related branches found
No related tags found
No related merge requests found
...@@ -153,8 +153,8 @@ class Reftek130(obspy_rt130_core.Reftek130): ...@@ -153,8 +153,8 @@ class Reftek130(obspy_rt130_core.Reftek130):
npts = len(sample_data) npts = len(sample_data)
tr = Trace(data=sample_data, header=copy.deepcopy(header)) tr = Trace(data=sample_data, header=copy.deepcopy(header))
tr.stats.npts = npts tr.stats.npts = packets_['number_of_samples'].sum()
tr.stats.actual_npts = packets_['number_of_samples'].sum() tr.stats.actual_npts = npts
# channel number is not included in the EH/ET packet # channel number is not included in the EH/ET packet
# payload, so add it to stats as well.. # payload, so add it to stats as well..
tr.stats.reftek130['channel_number'] = channel_number tr.stats.reftek130['channel_number'] = channel_number
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment