|Next: EDR(1) Up: WFDB Applications Guide Previous: ECGPUWAVE(1)||On This Page|
These programs convert EDF (European Data Format) files into WFDB-compatible 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 WFDB-compatible signal and header files containing the same data. Options for edf2mit include:
mit2edf reads the specified WFDB-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:
Note that WFDB 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.
Many EDF files contain signals at widely varying sampling frequencies. edf2mit handles these properly, but the default behavior of most WFDB applications is to read such data in low-resolution mode (in which all signals are resampled at the lowest sampling frequency used for any signal in the record). This is almost certainly not what you want if, for example, the record contains EEG signals sampled at 200 Hz and body temperature sampled at 1 Hz; by default, applications such as rdsamp and wave will resample the EEGs (and any other signals in the record) at 1 Hz. To avoid this behavior, you can use the -H (high resolution) option provided by rdsamp, wave, and a few other WFDB applications, or you can set the environment variable WFDBGVMODE to 1 (or any non-zero value) to specify that signals are to be read in high-resolution mode (in which all signals are resampled at the highest frequency used for any signal in the record). Setting WFDBGVMODE works with all WFDB applications, not only those that support the -H option. For further information, see the section titled "Multi-Frequency Records" in chapter 5 of the WFDB Programmer’s Guide.
Note that applications built using version 10.4.5 and later versions of the WFDB library can read EDF files directly, so that the conversion performed by edf2mit is no longer necessary. The native WFDB files produced by edf2mit can be read more efficiently and with lower latency and memory requirements than the EDF files; in most cases, however, the difference will not be noticeable.
It may be necessary to set and export the shell variable WFDB (see setwfdb(1) ).
The PhysioNet ATM (http://physionet.org/cgi-bin/ATM) provides web access to mit2edf (select Export signals as EDF from the Toolbox).
Table of Contents
Up: WFDB Applications Guide
Please e-mail your comments and suggestions to email@example.com, or post them to:PhysioNet
Updated 8 March 2019