How to convert a recorded signal in .bin file in int16 format to int8 without losing data?
5 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone,
I have a recorded signal from GPS in .bin file which is stored in "int16" format. I want to convert the data into "int8" without losing the data.
I can't upload the file here for reference as it is too big (47 Gb).
For further clarification, I want the file to be replayed with a HackRF One connected directly to an ublox GNSS reciever via an SMA to SMA cable. I am currently studying GNSS interference monitoring and fully aware of what I am doing and all the risks of transmission in L-band therefore, I am conducting this experiment in a fully controlled situation.
0 件のコメント
回答 (1 件)
Hornett
2024 年 9 月 2 日
To convert your GPS signal from `int16` to `int8`:
1. Scale and Normalize: Adjust the `int16` values to fit within the `int8` range. This involves dividing the `int16` values by the maximum possible value and scaling them to the `int8` range.
2. Clipping: Ensure that any values exceeding the `int8` limits are clipped to the maximum or minimum `int8` values.
3. Test and Validate: After conversion, test the data with your HackRF One and GNSS receiver to ensure it performs as expected.
This method helps minimize data loss inherent in reducing bit depth.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Signal Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!