How to convert data from .dat to .edf

This forum deals with BCI2000 configuration issues.
Post Reply
monkeydyoyi
Posts: 1
Joined: 26 May 2025, 18:08

How to convert data from .dat to .edf

Post by monkeydyoyi » 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!

mellinger
Posts: 1341
Joined: 12 Feb 2003, 11:06

Re: How to convert data from .dat to .edf

Post by mellinger » 27 May 2025, 13:30

Hello,

according to this page: https://bids-specification.readthedocs. ... raphy.html
BIDS allows the BrainVision Core Data Format for EEG data.

BCI2000 comes with a small utility program that converts BCI2000 .dat files into the group of files that the BrainVision data format consists of.
The name of the tool is "BCI2000Export", it is located at bci2000/tools/BCI2000Export.

The BrainVision data format allows for 32-bit integers, so range/resolution may be less a concern after scaling the data appropriately.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests