Skip to main content

mne_sensor_locations

Overview

mne_sensor_locations exports sensor locations from a measurement FIFF file to a text file. It writes one line per MEG and EEG channel with the channel name and x, y, z coordinates. Positions can be reported in either the head or device coordinate frame.

This is a C++ port of the original MNE-C tool by Matti Hämäläinen.

Usage

mne_sensor_locations [options]

Options

OptionDescription
--meas <file>Measurement FIFF file
--out <file>Output text file
--frame <frame>Coordinate frame: head (default) or device
--helpPrint help
--versionPrint version

Example

# Export sensor locations in head coordinates
mne_sensor_locations --meas sam-raw.fif --out sensors_head.txt

# Export in device coordinates
mne_sensor_locations --meas sam-raw.fif --out sensors_dev.txt --frame device

Output format (one channel per line):

MEG 0113               0.061300     0.047200     0.089100
MEG 0112 0.062100 0.048000 0.088500
EEG 001 0.083400 0.012300 0.067800

See Also