Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.4K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Convert format from edf to csv?

Posted 9 years ago

Hi, everyone i have a file whose format is .edf, according to Mathematica this format is ok but when i try to import this but i could not. every time it shows cannot infer this format, But when i write $ImportFormat then i find that edf format is ok. Now I have attached my file in this post if anyone successfully import this, its very helpful for me. If not can anybody tell me how to convert the file format in Mathematica?

Attachments:
POSTED BY: Rony Saha
Posted 7 hours ago

One option is to convert the EDF recording into ordinary CSV files first and then import those files into Mathematica.

I recently created an open-source tool called edf2csv: https://edf2csv.vercel.app/

The basic command is: bash npx edf2csv recording.edf

It creates an output folder containing:

signals.csv
channels.csv
annotations.csv
metadata.json

You can then import the signal data into Mathematica using something like:

data = Import["recording_csv/signals.csv", "Dataset"]

The tool works locally, supports EDF, EDF+, BDF, and BDF+, and preserves the original units and sampling rates. It also separates channels with different sampling rates instead of inventing interpolated samples.

For disclosure, I am the developer of the tool. I built it partly because importing and correctly interpreting EDF recordings often requires substantially more work than importing an ordinary table. Would love to hear your thoughts using this tool!

POSTED BY: Sarthak Tayal
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard