Page 1 of 1

About GDF writer after decimation or channel selection

Posted: Fri Mar 11, 2011 11:16 am
by TPAC
Hi all,

I experienced some trouble with the GDF file writer after having used the decimation or channel selection boxes. The file is well created, but apparently, the header is not updated with the new values of parameters like number of channels or sampling frequency. This causes trouble when reading this file in other softwares like EEGLAB, for instance.

Could these parameters be updated automatically in the future, before writing the gdf file ? Or does anybody have a simple solution to this ?

Thanks in advance,

TPAC

Re: About GDF writer after decimation or channel selection

Posted: Mon Mar 14, 2011 4:00 pm
by lbonnet
Hi TPAC !

I tried to reproduce your problem, without success.
I tried a simple scenario :
- a GDF file reader
- a signal decimation box (factor 2)
- a GDF file writer.

When I read in another openvibe scenario the 2 GDF files (the source and the decimated one) I do have different sampling frequencies (512 and 256 Hz in my case.)
I tried the same with a channel rename and a channel selector, it worked well.

Is it happening only when trying to read "modified" GDF data in other software (e.g. EEGlab) or is it also happening in openvibe ?

Laurent

Re: About GDF writer after decimation or channel selection

Posted: Mon Mar 14, 2011 5:20 pm
by yrenard
Dear TPAC,

maybe you could send a sample scenario of what you are trying to achieve.

Yann

Re: About GDF writer after decimation or channel selection

Posted: Mon Mar 28, 2011 9:07 am
by TPAC
Yes actually it happens with EEGLAB, which works (via Biosig) with GDF files version 2.11, whereas Openvibe manages GDF files version 1.25. The problem I was mentioning is that after decimation or channel selection, the gdf file header (at least seen by EEGLAB) is not modified... one can of course live with this by manually changing these values in EEGLAB...

Regards,

TPAC

Re: About GDF writer after decimation or channel selection

Posted: Tue Mar 29, 2011 9:32 am
by yrenard
Dear TPAC,

I actually hope that someone will contribute a BioSig integration in OpenViBE one day. It would solve many problems users are facing with GDF files I guess.

Best regards,
Yann