Skip to main content
  • Description
  • Tool for changing reference of continuous data. The new reference can be a channel or average reference.

  • Usage
  • eegchref myeegfile_in.eeg myparfile myeegfile_out.eeg

    with :

    • myeegfile_in.eeg : input file to change reference (with extension).
    • myparfile : text file containing reference parameters.
    • myeegfile_out.eeg : output file (with extension).


  • Fields of parameter file and example
  • ref_type 0 0 0 3 0 0 -1 0 0 Type of reference to apply. Values can be :
    0: no change.
    -1: average reference. In this case, the field ref_avg_def is required.
    any other value: indice of channel used as reference.
    The total number of values is N+2, N being the number of recorded channels in myeegfile_in.eeg file; the last 2 flags should be set to 0.
    ref_avg_def 0 0 1 1 1 0 1 0 0 List of channel to use for average reference: 1/0 for selected/unselected channels.
    The total number of flags is N+2, N being the number of recorded channels in myeegfile_in.eeg file; the last 2 flags should be set to 0.


  • Example

  • Comments


  • Current version
  • 2.24 14-02-2014

  • History
    • 2.22 08-01-2004 (PEA) : 1st documented version.
    • 2.23 08-12-2010 (PEA) : correction for overflow of digital value after reference change.
    • 2.24 14-02-2014 (PEA) : correction for self reference channel (null value for physical min/max).


  • Files
  • $ELANPATH/bin/eegchref

  • See also