EDF2MIT(1)

NAME
edf2mit, mit2edf - convert between EDF and MIT formats

SYNOPSIS
edf2mit -i edffile [ options ... ]
mit2edf -r record [ options ... ]

DESCRIPTION

These programs convert EDF (European Data Format) files into MIT-format files (as used in PhysioBank) and vice versa. European Data Format was originally designed for storage of polysomnograms.

edf2mit reads the specified edffile and creates MIT-format signal and header files containing the same data. Options for edf2mit include:

-b  Input is in big-endian byte order (default: little-endian).

-h  Print a brief usage summary.

-r record
    Create the specified record (default: use the patient ID field from the input file as the record name).

-s signal-list
    Copy only the signals named in the signal-list (one or more input signal numbers, separated by spaces; default: copy all signals). Signals are numbered consecutively beginning with zero. This option may be used to re-order or duplicate signals.

-v  Verbose mode (print debugging output).

mit2edf reads the specified MIT-format record (header and signal files) and creates an EDF file containing the same data. Output from mit2edf is always in the standard little-endian format. Options for mit2edf include:

-h  Print a brief usage summary.

-o file
    Write output to the specified file (default: record.edf).

-v  Verbose mode (print debugging output).

Note that EDF format does not include a way to specify the baseline value of a signal, and that MIT format does not include a standard way to specify the transducer type or the prefiltering specification; these parameters are not preserved by these conversion programs. Also note that use of the standard signal and unit names specified for EDF is permitted but not enforced by mit2edf.

ENVIRONMENT

It may be necessary to set and export the shell variable WFDB (see setwfdb(1)).

AVAILABILITY
These programs are provided in the convert directory of the WFDB Software Package. Run make in that directory to compile and install them if they have not been installed already.

SEE ALSO
a2m(1), snip(1), xform(1), wfdb(3), header(5)

Bob Kemp, Alpo Värri, Agostinho C. Rosa, Kim D. Nielsen and John Gade. A simple format for exchange of digitized polygraphic recordings. Electroencephalography and Clinical Neurophysiology 82:391-393 (1992).

Bob Kemp's EDF web site (http://www.hsr.nl/edf/). The definitive reference on the format; it includes the full specification of EDF from the 1992 paper, sample EDF files, software for reading and viewing them, FAQs, and much more.

AUTHOR
George B. Moody (george@mit.edu)

SOURCES
http://www.physionet.org/physiotools/wfdb/convert/edf2mit.c
http://www.physionet.org/physiotools/wfdb/convert/mit2edf.c