mne.channels.make_dig_montage#

mne.channels.make_dig_montage(ch_pos=None, nasion=None, lpa=None, rpa=None, hsp=None, hpi=None, coord_frame='unknown')[source]#

Make montage from arrays.

Parameters:
ch_posdict | None

Dictionary of channel positions. Keys are channel names and values are 3D coordinates - array of shape (3,) - in native digitizer space in m.

nasionNone | array, shape (3,)

The position of the nasion fiducial point. This point is assumed to be in the native digitizer space in m.

lpaNone | array, shape (3,)

The position of the left periauricular fiducial point. This point is assumed to be in the native digitizer space in m.

rpaNone | array, shape (3,)

The position of the right periauricular fiducial point. This point is assumed to be in the native digitizer space in m.

hspNone | array, shape (n_points, 3)

This corresponds to an array of positions of the headshape points in 3d. These points are assumed to be in the native digitizer space in m.

hpiNone | array, shape (n_hpi, 3)

This corresponds to an array of HPI points in the native digitizer space. They only necessary if computation of a compute_dev_head_t is True.

coord_framestr

The coordinate frame of the points. Usually this is 'unknown' for native digitizer space. Other valid values are: 'head', 'meg', 'mri', 'mri_voxel', 'mri_tal', 'ras', 'fs_tal', 'ctf_head', and 'ctf_meg'.

Note

For custom montages without fiducials, this parameter must be set to 'head'.

Returns:
montageinstance of DigMontage

The montage.