How to convert data from .dat to .edf
Posted: 27 May 2025, 12:12
Hello everyone,
I have recorded EEG and EMG data using a g.USBamp amplifier, acquiring 8 EEG channels and 8 EMG channels. The data acquisition was performed using BCI2000, which outputs the recordings in .dat files containing 32-bit floating-point data.
For my project, I need to convert these .dat files into .edf format (European Data Format) to integrate the data into a BIDS-compliant database. Given that EDF files store data in 16-bit integers, I'm concerned about the appropriate scaling and potential data loss during the conversion.
Could anyone guide me on the best practices or tools available for converting BCI2000 .dat files to .edf while preserving data integrity? Any advice on handling the scaling from 32-bit float to 16-bit integer would be greatly appreciated.
Thank you in advance for your assistance!
I have recorded EEG and EMG data using a g.USBamp amplifier, acquiring 8 EEG channels and 8 EMG channels. The data acquisition was performed using BCI2000, which outputs the recordings in .dat files containing 32-bit floating-point data.
For my project, I need to convert these .dat files into .edf format (European Data Format) to integrate the data into a BIDS-compliant database. Given that EDF files store data in 16-bit integers, I'm concerned about the appropriate scaling and potential data loss during the conversion.
Could anyone guide me on the best practices or tools available for converting BCI2000 .dat files to .edf while preserving data integrity? Any advice on handling the scaling from 32-bit float to 16-bit integer would be greatly appreciated.
Thank you in advance for your assistance!