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

Decode compressed data using logpeek's method

parent b4eef131
No related branches found
No related tags found
1 merge request!133WIP: prepare fast mseed to connect with SOHView
Pipeline #2703 failed with stage
in 2 minutes and 58 seconds
......@@ -28,7 +28,7 @@ def decode_uncompressed(packet: bytes, data_format: str, unpacker: Unpacker):
def decode_compressed(packet: bytes, data_format: str, unpacker: Unpacker):
data = packet[64:]
first_data_point = data[4:8]
first_data_point = data[8:12]
return unpacker.unpack('i', first_data_point)[0]
......
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