Load data from 'broken' HDF5 file

10 visualizaciones (últimos 30 días)
Eline Borch Petersen
Eline Borch Petersen el 6 de Jul. de 2020
Hi
During an EEG expeirment, my recording computer crashed and left the .HDF5-file containing the data 'broken'.
I've tried h5read and different variations thereof, but the file cannot be read, however I can read the data 'manually' using:
fid = fopen(broken_datafile);
dat = fread(fid,[1, 1000], 'uint8');
char(dat)
This nicely gives me the header information (about 40000 characters) and a some non-interpretable output, that I assume is related to teh recorded data:
...
...
SubjectDescription xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Comment />
<DayOfBirth>2020-06-26T09:57:17.3659493Z</DayOfBirth>
<FirstName />
<LastName />
</SubjectDescription>TREE ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ïˆ u ÚÌõ^ ˆ SNOD ߇ TREE ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ߍ HEAP X NumberOfFeatures 8 x ’Æõ^ € SNOD ό ( ª ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ  7 ÚÌõ^ h TREE ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ U t G¼U ·Ðr ” ÌÔWBÐÔxBœoC3>B«ìÁë (—Ô'CaÎCíuÚ7ÃÃ3‡ÃìÄ~ô8›Bg†BÏwYBù.B8(ƕ¤EŽ€›Æ@íF¶ºaÆ¢
6F?£7ÆöpûÆ`è'Æ8¡ˆÅ —ÆýÈ
ÆÚN7Æ.ßÅFŒ aÆÕÅÆËu\ÆÌ¯“Åƚ2KÆ~ 7ÆfVÆV%¬ÅÜÆFÐÅØÂÆO½Æ“¸éÅ5–1Æ£kgÆQ=IÆêmƯ8’Æ…†$ÆüùÆéR£ÆGv`Æ2;‚ÆoFiUÆã# ƪTÆF€Æµ·HÆxމÆâ’Æ
Ó¤ÆRЃÆm©Ææ…2ÆÌÒ9ÆÐµ¸‚Æ!’ÆœdzÆý·mÆ!)2Æ-ÓmÆÀõŽÆÍê_Ƶٛƭ^ªÆ“ݹÆÞÀyÆíɟÆö'ƎÍ.ÆÝú®ÆÇvÆÒSŠÆ©qmÆFá`ƁM(ÆaÆØÃ‡Æ®mSƪ“Æ•è ÆR6°ÆUaÆÄ £Æ(•,ÆM¡2ƕ¹²Æh
{ÆGwÆ½sÆj&fÆ]N,Æ·@fÆ[¤ŠÆ»”XÆ[ߖƲ<¤Æ=´Æ{O€Æ3i£Æ–-ƚ(4Æ´¬²Æ´t|Æ(͍ƭtÆQ'gÆÌ-Æ
CgÆ ‹Æ“tYÆã)—Æ<¤ÆN ´Æê傯´¥Æ02Ær‡8Æ!?µÆM{€Æ1ÆºèxÆ/ÕkÆA2ÆÈkÆSÆêõ]Ưu™ÆÝã¦ÆŸz¶ÆåׄÆe}§ÆÜÏ5Æv!<Æì·Æ-F‚Æwï‘ÆKC|ƬnoÆ À5Ƌ.oÆ9òŽÆPKaÆ›ÆØ™¨Æ
ð·Æ…ÆK‘¨Æo8ƯF>Æ® ¸Æó]ƒÆU'
Does anyone know if I can manually reconstruct the 16-channel EEG of inter type single + the trigger signal using the above approach? And how I can do it?

Respuestas (0)

Categorías

Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by