pycartool.io.read_xyz🔗

pycartool.io.read_xyz(filename, units='mm')[source]🔗

Read and convert .xyz positions to a DigMontage.

Parameters:
filenamestr

The filename of the .xyz file.

unitsstr

The units of the coordinates in the file. Can be ‘m’ for meters, ‘cm’ for centimeters, or ‘mm’ for millimeters. Cartool usually uses millimeters. Default is ‘mm’.

Returns:
montageDigMontage

Montage for EEG electrode locations.