Skip to content
Snippets Groups Projects
Commit a33b8c0d authored by Daniel Meißner's avatar Daniel Meißner Committed by Daniel Meißner
Browse files

scripts: added script to split raw iq dump files

parent 8f8ceb82
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
import numpy as np
file = sys.argv[1]
start = int(sys.argv[2])
end = int(sys.argv[3])
data = np.memmap(open(file), mode="r", dtype=np.complex64)
split_data = data[start:end]
split_data.tofile(open("filename2", "r+"))
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