org-arl / arlpy

ARL Python Tools
BSD 3-Clause "New" or "Revised" License
119 stars 37 forks source link

unet signal file format changed? #42

Closed mchitre closed 4 years ago

mchitre commented 4 years ago

fc/fs and baseband not always read correctly for baseband recording in signals.txt

mchitre commented 4 years ago

Indeed fails with latest unet file format.

signals-0.txt headers:

1587626078343|RxBasebandSignalNtf:INFORM[adc:1 rxTime:21845333 fc:0.0 fs:48000.0 (65536 samples)]
1587626079693|RxBasebandSignalNtf:INFORM[adc:1 rxTime:23210666 fc:0.0 fs:48000.0 (65536 samples)]
1587626081050|RxBasebandSignalNtf:INFORM[adc:1 rxTime:24576000 fc:0.0 fs:48000.0 (65536 samples)]
1587626082416|RxBasebandSignalNtf:INFORM[adc:1 rxTime:25941333 fc:0.0 fs:48000.0 (65536 samples)]
1587626083778|RxBasebandSignalNtf:INFORM[adc:1 rxTime:27306666 fc:0.0 fs:48000.0 (65536 samples)]
1587626127910|RxBasebandSignalNtf:INFORM[adc:1 rxTime:50452353 rssi:-85.6 fc:12000.0 fs:12000.0 (65536 baseband samples)]

and output:

image
mchitre commented 4 years ago

Problem was change in header format to use floating point sampling rates instead of integers. Fixed.