How to convert a recorded signal in .bin file in int16 format to int8 without losing data?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Hornett
le 2 Sep 2024
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 commentaires
Voir également
Catégories
En savoir plus sur Signal Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!