next up previous contents
Next: Some idyosincrasies of the Up: A tool to import/export Previous: Usage: EDF files and   Contents

Usage: Exporting EDF signals to files containing floats and how to use the created file

edfAsc can export an EDF signal to a file composed by float values. Float values are scaled to the units of the signal and no calculation is needed to get the signal properly scaled. Each value is coded in 4 bytes, so it uses about double space than the same signal in EDF format (EDF codes each value as a short integer using 2 bytes). The way to export the values is fairly similar to the export of ASCII files. The only difference is that we click the button Export as float

I would like to present here how to read this kind of files with some of my favorite programs. They are open source and some of them are GPL licensed. We will follow the next approach

All the programs considered are able to handle very long signals. So we are going to read the whole signal in the internal memory used by the program. Using edfAsc, we export the signal EEG Pz-Oz of the file st7121j0.rec. The file is avaliable at Physionet. We call the file EEG.fl. The file is composed by float values sampled at 100 Hz. Now let's review some programs

You could also consider using a library that allows to access the data directly. I would recommend libRASCH.

In summary, using a file of floats isn't the perfect solution to interchange data (e.g., we do not know the sampling rate, the date when the file was acquired and many other things) but it can be a convenient option to interchange information with other programs if you want to develop some processing tool. Reading these files can be very fast and the process can be carried out by many programs.


next up previous contents
Next: Some idyosincrasies of the Up: A tool to import/export Previous: Usage: EDF files and   Contents
je 2006-10-13