Back to the main page.

Bug 1438 - reading 4D data fails for empty room data

Status CLOSED FIXED
Reported 2012-04-18 23:12:00 +0200
Modified 2012-07-04 16:58:43 +0200
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2012-04-18 23:12:19 +0200

Probably the head localization in the data is misinterpreted, because it is an empty room measurement. /Volumes/Data/roboos/data/HCP/database/S00P1/electrophys/Rnoise_MNN_V1/c,rfDC applying digital weights in the gradiometer balancing matrix undoing the Supine balancing ??? NaN's cannot be converted to logicals. Error in ==> channelposition at 74 dist(~dist) = inf; Error in ==> ft_datatype_sens at 99 [chanpos, chanori, chanlab] = channelposition(sens, 'channel', 'all'); Error in ==> ft_read_header at 1671 hdr.grad = ft_datatype_sens(hdr.grad);


Jan-Mathijs Schoffelen - 2012-05-16 07:24:01 +0200

a principled solution here would probably be to re-implement bti2grad, or whicheven function is used to go from header info to grad structure.


Jan-Mathijs Schoffelen - 2012-05-21 10:11:23 +0200

cd /data/jansch/HCP/database/Phase1MEG/CP10019/CP10019_MEG/scans/1-Rnoise_MNN_V1/resources/4D/files hdr=ft_read_header('c,rfDC'); sens = ft_datatype_sens(hdr.grad); % no problems for me


Jan-Mathijs Schoffelen - 2012-06-07 21:04:27 +0200

Abbas reported the same problem.


Jan-Mathijs Schoffelen - 2012-06-07 21:05:54 +0200

PS: working on the Melon dataset


Jan-Mathijs Schoffelen - 2012-06-07 21:20:15 +0200

fixed in channelposition rev. 5973