This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

EDF (.edf)

EDF and EDF+ physiological signal recordings formats.
Commonly used for the exchange and storage of medical time-series recordings.
Application areas include electroencephalography, polysomnography, electromyography, evoked potentials, electroneurography, and electrocardiography.
EDF is an acronym for European Data Format.
Binary formats.
Stores multiple simultaneous signal channels, time-stamped annotations, and meta-information.
EDF+ can store discontinuous time series.
First published in 1992.
  • Import fully supports the EDF and EDF+ format family.
  • Import imports an EDF file, returning the signal data as a numerical array.
  • Import returns an array of the form where the signal channels are lists of possibly discontinuous records . Each record is given as a list of data samples.
  • Import imports the specified element from an EDF file.
  • Import imports multiple elements.
  • See the reference pages for full general information on Import.
"Elements"list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties, and settings
  • Data representation elements:
"Data"all signal channels represented as a list of lists, with discontinuous records combined into a flat list
{"Data",label}data from a named signal channel
"Labels"names of all signal channels
"LabeledData"list of rules, each representing a labeled data channel
"RecordsData"all signal channels, given as an array of lists
  • Import uses the element by default.
  • Import gives a list of packed arrays of data samples, effectively combining discontinuous records for each signal channel into a flat list.
  • Import imports the entire file and returns an expression of the form .
  • Import returns a packed array of the form where the signals are lists of discontinuous records . Each record is given as a list of data samples.
  • Meta-information elements:
"Annotations"time-stamped annotation list
"ChannelCount"number of simultaneous signal channels
"FilterInformation"information about signal filters applied during the recording, given as a list of strings
"PatientID"patient identification string
"Title"title of the recording, typically used as a document identification
"RecordTimes"start times for each record, given in seconds
"RecordCount"number of records in the file
"RecordLength"length of records, given in seconds
"DataRange"physical data ranges for each signal channel
"DataUnits"units in which the physical data for each channel is given
"StartDate"local date and time when the recording was started
"Device"information about the physical devices such as electrodes used for recording each channel
  • Import gives the time-stamped annotation lists of an EDF+ file as a list of the form .
  • In EDF and EDF+, all records have the same duration. EDF+ allows time gaps between records.
Show the labels of all signal channels available in an EDF file:
Import the labels and device names as a table:
Import the first record of the 12^(th) signal channel and plot it using ListLinePlot:
Show the labels of all signal channels available in an EDF file:
In[1]:=
Click for copyable input
Out[1]=
 
Import the labels and device names as a table:
In[1]:=
Click for copyable input
Out[1]//TableForm=
 
Import the first record of the 12^(th) signal channel and plot it using ListLinePlot:
In[1]:=
Click for copyable input
Out[1]=