Convert data .dat to .gdf

Locked
liib
Posts: 2
Joined: 11 Feb 2013, 12:07

Convert data .dat to .gdf

Post by liib » 12 Feb 2013, 11:45

Hello,

I am trying to convert BCI2000 EEG data which are .dat to gdf. files,

how should I do it?

Thank you!

boulay
Posts: 382
Joined: 25 Dec 2011, 21:14

Re: Convert data .dat to .gdf

Post by boulay » 13 Feb 2013, 04:26

You can use EEGLAB for Matlab. It has a function to import BCI2000 data and a function to export data to GDF.
If you don't have Matlab, these things can be done in Python but the explanation on how to do so is substantially longer. I'd be happy to tell you how but I'll wait to see if you make such a request.
-Chad

boulay
Posts: 382
Joined: 25 Dec 2011, 21:14

Re: Convert data .dat to .gdf

Post by boulay » 13 Feb 2013, 04:27

Also, in case you are still actively collecting BCI2000 data, it is possible to save data to GDF directly from BCI2000, simply add

Code: Select all

--FileFormat=GDF
after your call to the signal source module.
http://www.bci2000.org/wiki/index.php/U ... le_Formats

liib
Posts: 2
Joined: 11 Feb 2013, 12:07

Re: Convert data .dat to .gdf

Post by liib » 13 Feb 2013, 19:14

Thank you both!

You are helpfull!

I have Matlab so I will work on it!

ashwini
Posts: 12
Joined: 04 Mar 2013, 05:17

Re: Convert data .dat to .gdf

Post by ashwini » 05 Mar 2013, 02:04

hi,
we would like to know how to convert eeg data which is in the HDF5 and gdf format to the bci .dat format so it can be viewed using the BCI2000 viewer tool.
we are new to eeglab and hence dont know how to go about it.

ashwini.

boulay
Posts: 382
Joined: 25 Dec 2011, 21:14

Re: Convert data .dat to .gdf

Post by boulay » 05 Mar 2013, 02:22

ashwini,

Are you saying you want to use the BCI2000 viewer tool because you don't know how to use EEGLAB?

I think that the time it will take to convert your data from GDF to .dat will be much greater than the time it will take to learn how to import GDF files into EEGLAB (which can be done natively using the EEGLAB GUI). Furthermore, BCI2000 viewer tool is not terribly useful beyond taking a quick peek at your data (it is very useful for that purpose).

If you don't like EEGLAB, there are other programs out there to read GDF data, even in Python.

-Chad

ashwini
Posts: 12
Joined: 04 Mar 2013, 05:17

Re: Convert data .dat to .gdf

Post by ashwini » 11 Mar 2013, 06:16

thank you chad

cheers
ashwini

Locked

Who is online

Users browsing this forum: No registered users and 0 guests