Skip to main content
  • Description
  • Conversion tool for CTF MEG files to EEG format.

  • Usage
  • ctf2eeg myctfdirectory.ds myparfile myeegfile [-v]

    with :

    • myctfdirectory.ds : CTF dataset directory (with extension).
    • myparfile : text file containing conversion parameters (electrode names and numbers in elec.dat).
    • myeegfile : output EEG file (no extension).
    • option :
      -v : verbose mode. If omitted, verbose mode is off.


  • Fields of parameter file and example
  • electrodes
    UPPT.-1
    SCLK.-1
    BG1.-1
    BG2.-1
    BG3.-1
    etc...
    Output channel name list :

    Names and numbers corresponding to elec.dat definition for converted channels, or name and -1 if the channel is not defined in elec.dat.

    The order and number of channels should be the same as in the input CTF res4 file.


  • Example

  • Comments
    • Note to CTF 275 MEG in Lyon users : a parameter file is available to download : ctf275.par
    • Events are read from channels with label beginning with "STIM", "UPPT", "USPT", "UDIO". The file MarkerFile is not used. It can be converted with ctfmrk2pos to Elan event file.


  • Current version
  • 1.15 04-05-2011

  • History
    • 1.04 12-07-2005 (PEA) : new CTF file definition (MEG42).
    • 1.05 11-10-2005 (PEA) : corrections for file size > 2 GB.
    • 1.06 16-01-2006 (PEA) : corrections for file size > 2 GB.
    • 1.07 18-01-2006 (PEA) : use of sensorType (read in res4) to define units of the sensor (MEG, EEG...).
    • 1.08 18-01-2006 (PEA) : test for different gradient orders for MEG channels.
    • 1.09 22-02-2006 (PEA) : repair error for events in "old" files (LENA).
    • 1.10 27-04-2006 (PEA) : repair error when reading multiple data files (> 2 GB). Forgot to read 8 first bytes.
    • 1.11 13-08-2007 (PEA) : minor modification.
    • 1.12 10-09-2009 (PEA) : bug fix when a number of stimulation channels is used (symptom : repeated event code).
    • 1.13 10-09-2009 (PEA) : correction of type definition in MegDefs.h for 64 bits compilation.
    • 1.14 23-11-2010 (PEA) : correction in rchmpl (addition of maximum length line) in libgen.
    • 1.15 04-05-2011 (PEA) : adds more precision (10 decimals) in for saving sampling period in output header file.


  • Files
  • $ELANPATH/bin/ctf2eeg

  • See also
  • ctf2ep, ctfmrk2pos, pos2ctfmrk

AttachmentSize
ctf275.par5.67 KB