This repository contains a program written in C that scans .gsf (Generic Sensor Format) files within a specified folder, checks if they contain backscatter data, and logs the results in a text file.
- Click on the Code dropdown on the repository page.
- Download the
.zipfile and extract it. - Run the verifier on Windows:
check_gsf.exe "C:\path\to\gsf\folder" "C:\path\to\output\folder"The program will generate a log file named gsf_backscatter_log.txt to the "C:\path\to\output\folder" folder. The log file will contain entries for each .gsf file that does and does not contain backscatter data, along with a summary of the total files checked and the count of files missing backscatter data.
- MinGW (GCC Compiler)
- Download MinGW-w64 from MinGW-w64.
- Install it and add
C:\MinGW\bin(or its equivalent) to the system PATH.
- VS Code Extensions
- Install the C/C++ extension (
ms-vscode.cpptools). - Install the Code Runner extension (optional, for easy execution).
- Install the C/C++ extension (
- GCC Compiler
- Ensure GCC is installed (
gcccommand should be available).
- Ensure GCC is installed (
- VS Code Extensions
- Install the C/C++ extension (
ms-vscode.cpptools). - Install the Code Runner extension (optional).
- Install the C/C++ extension (
-
Clone the Repository
git clone https://github.com/FREAC/GSF_BackScatterData_Verifier.git cd GSF_BackScatterData_Verifier/src -
Open in VS Code
Open the repository folder in VS Code.
-
Compile the Code
Use the provided build.bat script:
./build.batUse the provided makefile:
make-
Run the Program
Execute the compiled program with the path to the folder containing
.gsffiles:./check_gsf.exe "C:\path\to\gsf\folder" "C:\path\to\output\folder"
Open the Terminal in VS Code (
Ctrl + ~).
We welcome contributions! Feel free to open issues or submit pull requests to enhance functionality, documentation, or bug fixes.