Converts an ascii csv containing medical timeseries into a European Data Format (EDF)
C C++ Makefile
Switch branches/tags
Nothing to show
Clone or download
Latest commit 790abb4 Sep 8, 2016
Permalink
Failed to load latest commit information.
.gitignore Initial commit Sep 8, 2016
Makefile Initial commit Sep 8, 2016
README.md Initial commit Sep 8, 2016
ascii2edf.c Initial commit Sep 8, 2016
xml.cpp Initial commit Sep 8, 2016
xml.h Initial commit Sep 8, 2016

README.md

This program converts an ascii csv file into a European Data Format file. Various parameters regarding the csv file format and conversion are expected to be defined by an xml file, which is a required argument to this program. This XML file is the same format supported and generated by EDFbrowser. An example is

<EDFbrowser_ascii2edf_template>
    <separator>tab</separator>
    <columns>2</columns>
    <startline>1</startline>
    <samplefrequency>20.0000000000</samplefrequency>
    <autophysicalmaximum>1</autophysicalmaximum>
    <edf_format>1</edf_format>
    <signalparams>
        <checked>0</checked> <!-- whether to convert or not -->
        <label>Heartrate</label>
        <physical_maximum></physical_maximum>
        <physical_dimension>breaths/min</physical_dimension>
        <multiplier>1.000000</multiplier>
    </signalparams>
    <signalparams>
        <checked>1</checked>
        <label>Flow</label>
        <physical_maximum></physical_maximum>
        <physical_dimension>l/m</physical_dimension>
        <multiplier>1.000000</multiplier>
    </signalparams>
</EDFbrowser_ascii2edf_template>

This work is an adaptation of EDFbrowser by Teunis van Beelen (teuniz@gmail.com)