How to convert a recorded signal in .bin file in int16 format to int8 without losing data?
조회 수: 4 (최근 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에서 Downloads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!