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

Convert stored times of trace to second

parent 3852f0fd
No related branches found
No related tags found
1 merge request!139Change the way RT130 data is read for better performance
...@@ -207,7 +207,7 @@ class Reftek130(obspy_rt130_core.Reftek130): ...@@ -207,7 +207,7 @@ class Reftek130(obspy_rt130_core.Reftek130):
npts = len(sample_data) npts = len(sample_data)
tr = DiscontinuousTrace( tr = DiscontinuousTrace(
data=sample_data, header=copy.deepcopy(header), data=sample_data, header=copy.deepcopy(header),
times=packets_['time'] times=(packets_['time'] / 10**9).round(3)
) )
tr.stats.npts = packets_['number_of_samples'].sum() tr.stats.npts = packets_['number_of_samples'].sum()
tr.stats.actual_npts = npts tr.stats.actual_npts = npts
......
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