Table of Contents

Name

remapccs - remap condition codes in reconstructed ERP log file

Synopsis

remapccs mapfile inlogfile outlogfile

Description

remapccs is used to remap "pseudo-condition codes" in reconstructed log files produced by makelog. This is necessary since raw files do not contain any condition code information, hence, when makelog reconstructs a log file from the raw file it starts with condition code 64 and increments it every time a delete mark or pause mark is encountered on the raw tape. The mapping from the "pseudo-condition codes" into the actual condition codes relies on external information, such as a "run" sheet or an experimental protocol. One must beware of instances where condition codes don’t change between pauses or deletes, as well as situations where the pause switch was rapidly switched up, then down then up. It is prudent to carefully examine the constructed log file using logexam, making a table of the "pseudo-condition codes" and the appropriate condition codes into which each should be mapped. Use the "print runs" command in logexam to reveal the runs and the last "pseudo-code" that needs mapping.

It should be noted that inlogfile may not contain events that occurred very near the end of the raw file, most noteably the final pause mark if the dig program was paused just before exiting. This is due to the fact that makelog(1) uses the same low-level routines to read the raw file as other programs such as garv(1) and avg(1) : these programs purposefully ignore events in the last few records of the raw file to ensure that all events are followed by at least an epoch’s worth of raw data; the side-effect to makelog(1) is that any events very near the end of the raw file will not be read and thus will not be present in the regenerated inlogfile.

A file containing the table in the following format is then created using an editor :

64 3
65 8
66 1
67 4
68 3
69 2
etc.

where each "pseudo-code" is listed sequentially starting with 64 followed by the number of the condition code into which it should be mapped, one per line. When all is ready, remapccs is run thus:

remapccs mapfile inlogfile outlogfile

where mapfile is the name of the ASCII mapping file, inlogfile is the recontructed logfile containing the"pseudo-condition codes" generated by makelog, and outlogfile is the name of a logfile which will be created and will contain the mapped condition codes. Two separate log files are used to allow multiple attempts at remapping without destroying the "pseudo-code" logfile.

See Also

logexam(1) , logpoke(1) , makelog(1)


Table of Contents