.. _sphx_glr_auto_examples_plot_coregistration.py: ============================ Read and plot coregistration ============================ We'll take a look at the coregistration here. .. code-block:: python # Author: Denis A. Enegemann # License: BSD 3 clause import os.path as op from hcp.viz import plot_coregistration we assume our data is inside a designated folder under $HOME .. code-block:: python storage_dir = op.expanduser('~/mne-hcp-data') and we assume to have the downloaded data, the MNE/freesurfer style anatomy directory, and the MNE style MEG directory. these can be obtained from :func:`make_mne_anatomy`. See also :ref:`tut_make_anatomy`. .. code-block:: python hcp_params = dict( subject='105923', hcp_path=op.join(storage_dir, 'HCP'), subjects_dir=op.join(storage_dir, 'subjects'), recordings_path=op.join(storage_dir, 'hcp-meg')) let's plot two views .. code-block:: python for azim in (0, 90): plot_coregistration( view_init=(('azim', azim), ('elev', 0)), **hcp_params) .. rst-class:: sphx-glr-horizontal * .. image:: /auto_examples/images/sphx_glr_plot_coregistration_001.png :scale: 47 * .. image:: /auto_examples/images/sphx_glr_plot_coregistration_002.png :scale: 47 .. rst-class:: sphx-glr-script-out Out:: Reading 4D PDF file /Users/dengemann/mne-hcp-data/HCP/105923/unprocessed/MEG/3-Restin/4D/c,rfDC... Creating Neuromag info structure ... ... Setting channel info structure. ... no headshape file supplied, doing nothing. Currently direct inclusion of 4D weight tables is not supported. For critical use cases please take into account the MNE command "mne_create_comp_data" to include weights as printed out by the 4D "print_table" routine. Triangle file: nvert = 5000 ntri = 9996 Reading 4D PDF file /Users/dengemann/mne-hcp-data/HCP/105923/unprocessed/MEG/3-Restin/4D/c,rfDC... Creating Neuromag info structure ... ... Setting channel info structure. ... no headshape file supplied, doing nothing. Currently direct inclusion of 4D weight tables is not supported. For critical use cases please take into account the MNE command "mne_create_comp_data" to include weights as printed out by the 4D "print_table" routine. Triangle file: nvert = 5000 ntri = 9996 **Total running time of the script:** ( 0 minutes 0.451 seconds) .. container:: sphx-glr-download :download:`Download Python source code: plot_coregistration.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_coregistration.ipynb ` .. rst-class:: sphx-glr-signature `Generated by Sphinx-Gallery `_