cntepoch

Synopsis


-----------------------------------------------------------------------------
EEP 3.1  Max-Planck-Institute of Cognitive Neuroscience 1996-99
cntepoch 3.9   (OSF1 V4.0 alpha)              Wed Sep 15 13:30:19 1999
-----------------------------------------------------------------------------
  cntepoch <source cnt> [<dest cnt>] [<cfg>] [<trg in> [<trg out>]]

files:
  foo.cnt    ->  fooe.cnt
  foo.trg        fooe.trg


Configuration File

;-----------------------------------------------------------------------------
;Example configuration file for cntepoch
;-----------------------------------------------------------------------------

; IMPORTANT NOTE:
; cntepoch should normally NOT be used
;
; The only useful application is to remove longer session pauses from your 
; record (if you didn't stop recording itself for some reason).
; This should be done immediately after recording and before archiving.
;
; Otherwise, cntepoch will cause trouble: invalid .trg, .rej, .cls files,
; edge artifacts in subsequent signal processing, the need to
; store the epoched copy of the cnt AND the original cnt...


StartTrigger:         ; if this trigger is found in cnt or trg file, 
255                   ;   cntepoch will start to copy CNT-data to the output file
StopTrigger:          ; if this trigger is found in cnt or trg file,
254                   ;   cntepoch will stop to copy CNT-data to the output file

;254, 12, 3           ; you can use a comma-separated list of triggers
                      ; for both start and stop
                      ;   (in one line!) 
                      
                      ; The default trigger codes for epoching are '255' and
                      ; '254'. These triggers may be set (manually) using xcnt
                      ; However, they may also be set
                      ; automatically during the recording session

FilterLength          ; cntepoch extends the copied sections to avoid edge
41                    ; artifacts in latter evaluations
                      ; 41 is the default which means that 20 additional
                      ; samples are copied before start and after end
                      ; (a 41 point FIR filter needs x[-20]..x[+20] to 
                      ; compute x[0])

Description

cntepoch looks for StartTrigger in the input trigger list. After one is found, it's position is reduced by int(FilterLength/2) samples. The data are copied from src to dst from here up to Position(StopTrigger) + int(FilterLength/2). The first sample of each copied epoch is marked by a discontinuity trigger.

If the FilterLength/2 offset exceeds the recorded data range, a constant signal with the first, respectively the last, sample value is assumed.

The codes which are declared as StartTrigger or StopTrigger are consumed by cntepoch and are not present in the output trigger lists.

If no configuration file is specified in the command line then hard coded default settings according to the sample configuration above will come into effect.

IMPORTANT NOTE

cntepoch should normally NOT be used.

The only useful application is to remove longer session pauses from your record (if you didn't stop the recording itself for some reason). This should be done immediately after recording and before archiving.

Otherwise, cntepoch will cause trouble: invalid .trg, .rej, .cls files, edge artifacts in subsequent signal processing, the need to store the epoched copy of the cnt AND the original cnt...


EEP 3.1 - MPI/ANT(eeprobe@ant-software.nl), 15.09.1999
Copyright © 1996-99 Max-Planck-Institute of Cognitive Neuroscience. All rights reserved.