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

Convert stored times of trace to second

parent 1c3f6324
No related branches found
No related tags found
1 merge request!133WIP: prepare fast mseed to connect with SOHView
...@@ -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