Hi,
I am a new user. I have started to work with brainstorm. I tried to import the .raw data but I got this error:
Header file was not found.
How can I solve this issue?
Thanks.
Hi,
I am a new user. I have started to work with brainstorm. I tried to import the .raw data but I got this error:
Header file was not found.
How can I solve this issue?
Thanks.
The file extension .raw could refer to different file formats.
Where are your recordings coming from?
And what data format are you selecting in the import window?
@Francois I appreciate you for responding.
the data had a .edf format, but I have converted to .raw format and then imported in brainstorm through "Review raw file" but I got the error that I mentioned it above.
If the file was in EDF initially, why wouldn't you keep in EDF?
It is always better to avoid reconverting multiple times your recordings, you might lose some information at every step, and you increase the risks of suffering from software bugs.
What format is this .raw file supposed to be? The extension does not always tell what's in the file, there are many file formats that use the .raw extension.
What did you use for this conversion?
Thank you so much. You are right. my Matlab version is 2016b and I could not able to read the .edf file.
so I decided to change the format of the recording.
I used this code in VS for converting:
aw = mne.io.read_raw_edf('data.edf')
data = raw.get_data()
raw_filename = 'data.raw'
p = chan_corr.T
with open(raw_filename, mode='wb') as f:
f.write(p.astype('float32').tobytes())
This is not an EGI .raw file, you won't be able to read this into Brainstorm.
Use the EDF file instead. If you have any issue with this, post the error message here.