File to DAT

This tool allows you to read events from a RAW or an HDF5 event file and convert them to a DAT file.

The source code of this tool can be found in <install-prefix>/share/metavision/sdk/stream/cpp_samples/metavision_file_to_dat when installing Metavision SDK from installer or packages. For other deployment methods, check the page Path of Samples.

Expected Output

The tool reads data from a file, converts them to a DAT file and saves the DAT file to the same directory as the input file.

Note

As the output file will be written to the same directory as the input file, ensure that you have write permission in the directory with the input file.

How to start

You can directly execute pre-compiled binary installed with Metavision SDK or compile the source code as described in this tutorial.

To start the tool, provide the full path to a file (here, we use an HDF5 file from Metavision Datasets):

Linux

metavision_file_to_dat -i spinner.hdf5

Windows

metavision_file_to_dat.exe -i spinner.hdf5