Type signature: (raw->[raw])
This node is used to export baseband I/Q samples from SDGPS's proprietary raw format to a CSV file.
Help
Usage:
write-iq-csv [OPTION]...
Allowed options:
Option | Description |
--help | produce help message |
--gnss-stream arg (=0) | GNSS stream to use |
--normalize | scale sample values so that all are in range [-1, +1] (default: values are integers in range [-(2**bits-1), +(2**bits-1)]) |
--write-log FILENAME | write log to FILENAME as CSV |
--append-log FILENAME | append log to FILENAME as CSV |
Example
sdgps generate-simple-trajectory --rate inf --duration 1 ! simulate-raw --start-stream-time 0 ! write-raw-file tmp.raw
sdgps read-raw-file --rate inf tmp.raw ! trim-stream --relative 0 0.1 ! write-iq-csv --write tmp.csv
Expected output:
$ head -n20 tmp.csv
# Pipeline: SDGPS_NO_HEADER=1 SDGPS_UTIL_PARSE_ARGS_TERMINAL_WIDTH=140 build/main read-raw-file --rate inf tmp.raw ! trim-stream --relative 0 0.1 ! write-iq-csv --write tmp.csv
# GNSS stream 0 config = {"i_bits":2,"q_bits":2,"samples_per_packet":50000,"sample_latency":0,"sample_period":2e-7,"spectrum_info":{"lo_frequency":1.57542e9,"band_start":1.57292e9,"band_end":1.57792e9,"antenna_id":"ANT0","antenna_position":[0,0,0],"antenna_axis":[0,0,1]},"substreams":[{"axis":[0,0,1],"position":[0,0,0],"frequency":0,"system":"GPS_L1","antenna_id":"ANT0"}]}
Sample index,Real,Imag
0,1,-1
1,-3,1
2,-1,-1
3,3,1
4,-3,-1
5,-1,1
6,-1,1
7,-3,1
8,3,1
9,3,-1
10,3,1
11,1,-3
12,-3,-1
13,-1,3
14,-1,1