Bad channels

Dear Matti,

I am trying to mark the channels with the value=0 early in the
pre-process ,as to avoid the NaN error (not a number) ,later on when i
try to divide by channel sizes.

As per the mne 2.7 manual (part 11.4.1) The command is:

mne_mark_bad_channels --bad subjectid_bads.bad subjectid.fif

However the .bad file (which is a text file) must contain all the
channel names (http://tinyurl.com/3p5pg8h)

So, In the .ds original folder the channel names are found in this
file called HZ.acq .I assume so because the word "ChannelName" is
repeated in the the file when opened with notepad.
However ,The channel names are too scattered in notepad to be of use.
It can be read via this software (http://tinyurl.com/43ros3a) which
requires a visual basic platform .
Any ideas on how to obtain a list of the channel names ?

Thanks
Mostafa

Dear Mostafa,

Dear Matti,

I guess "Dear MNE users" is more adapted :slight_smile:

to answer you question I would either read the channel names from the
mne_browse_raw GUI
or if you want to extract them automatically I would load the fit file
in matlab or python and read the created structure.

in matlab

raw = fiff_setup_read_raw('subjectid.fif')
for k in 1:raw.info.nchan
    raw.info.chs(k).ch_name
end

(I think ie. untested)

in python

import mne
raw = mne.fiff.Raw('subjectid.fif')
raw.ch_names

Best,
Alex

Hi,