Skip to main content
  • Description
  • Changes reference of channels of an EP file.

  • Usage
  • epchref file_in.p file_out.p [chan1 refchan1 ... chanN refchanN] | [+avg]

    with :

    • file_in.p : input EP filename (with extension).
    • file_out.p : output EP filename (with extension).

    You can reference channel(s) to another channel(s) with:

    • chan1 : rank of 1st channel to change reference.
    • refchan1 : rank of reference channel for chan1.
    • ...
    • chanN : rank of Nth channel to change reference.
    • refchanN: rank of reference channel for chanN.

    Or, you can reference each channel to average of all channels by specifying option:

    • +avg


  • Fields of parameter file and example

  • Examples
    • Change reference of channel 2 to channel 3, channel 3 to 4 of file myfilein.p :
    • epchref myfilein.p myfilein.ref_2-3_3-4.p 2 3 3 4

    • Change reference of all channels to average reference (average of all channels) of file myfilein.p :
    • epchref myfilein.p myfilein.avg_ref.p +avg


  • Comments

  • Current version
  • 1.04 24-05-2012

  • History
    • 1.00 28-02-2001 (BY) : 1st version.
    • 1.02 30-09-2010 (PEA) : updates to use cmake and free release of Elan.
    • 1.03 26-01-2011 (PEA) : removes static allocation for reading EP file. Checks for channel rank and reference channel rank.
    • 1.04 24-05-2012 (PEA) : adds option for average reference.


  • Files
  • $ELANPATH/bin/epchref

  • See also