|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | """ |
3 | | -.. _tut_raw_objects: |
| 3 | +The :class:`~mne.io.Raw` data structure: continuous data |
| 4 | +======================================================== |
4 | 5 |
|
5 | | -The :class:`Raw <mne.io.Raw>` data structure: continuous data |
6 | | -============================================================= |
7 | | -
|
8 | | -Continuous data is stored in objects of type :class:`Raw <mne.io.Raw>`. |
| 6 | +Continuous data is stored in objects of type :class:`~mne.io.Raw`. |
9 | 7 | The core data structure is simply a 2D numpy array (channels × samples) |
10 | 8 | (in memory or loaded on demand) combined with an |
11 | | -:class:`Info <mne.Info>` object (`.info` attribute) |
12 | | -(see :ref:`tut_info_objects`). |
| 9 | +:class:`~mne.Info` object (`.info` attribute) |
| 10 | +(see :ref:`sphx_glr_auto_tutorials_plot_info.py`). |
13 | 11 |
|
14 | 12 | The most common way to load continuous data is from a .fif file. For more |
15 | 13 | information on :ref:`loading data from other formats <ch_convert>`, or |
|
43 | 41 | # variable directly but rely on indexing syntax detailed just below. |
44 | 42 |
|
45 | 43 | ############################################################################### |
46 | | -# Information about the channels contained in the :class:`Raw <mne.io.Raw>` |
47 | | -# object is contained in the :class:`Info <mne.Info>` attribute. |
| 44 | +# Information about the channels contained in the :class:`~mne.io.Raw` |
| 45 | +# object is contained in the :class:`~mne.Info` attribute. |
48 | 46 | # This is essentially a dictionary with a number of relevant fields (see |
49 | | -# :ref:`tut_info_objects`). |
| 47 | +# :ref:`sphx_glr_auto_tutorials_plot_info.py`). |
50 | 48 |
|
51 | 49 |
|
52 | 50 | ############################################################################### |
53 | 51 | # Indexing data |
54 | 52 | # ------------- |
55 | 53 | # |
56 | | -# To access the data stored within :class:`Raw <mne.io.Raw>` objects, |
57 | | -# it is possible to index the :class:`Raw <mne.io.Raw>` object. |
| 54 | +# To access the data stored within :class:`~mne.io.Raw` objects, |
| 55 | +# it is possible to index the :class:`~mne.io.Raw` object. |
58 | 56 | # |
59 | | -# Indexing a :class:`Raw <mne.io.Raw>` object will return two arrays: an array |
| 57 | +# Indexing a :class:`~mne.io.Raw` object will return two arrays: an array |
60 | 58 | # of times, as well as the data representing those timepoints. This works |
61 | 59 | # even if the data is not preloaded, in which case the data will be read from |
62 | 60 | # disk when indexing. The syntax is as follows: |
|
113 | 111 | print('Number of channels reduced from', nchan, 'to', raw.info['nchan']) |
114 | 112 |
|
115 | 113 | ############################################################################### |
116 | | -# -------------------------------------------------- |
117 | | -# Concatenating :class:`Raw <mne.io.Raw>` objects |
118 | | -# -------------------------------------------------- |
| 114 | +# ------------------------------------------ |
| 115 | +# Concatenating :class:`~mne.io.Raw` objects |
| 116 | +# ------------------------------------------ |
119 | 117 | # |
120 | | -# :class:`Raw <mne.io.Raw>` objects can be concatenated in time by using the |
121 | | -# :func:`append <mne.io.Raw.append>` function. For this to work, they must |
122 | | -# have the same number of channels and their :class:`Info |
123 | | -# <mne.Info>` structures should be compatible. |
| 118 | +# :class:`~mne.io.Raw` objects can be concatenated in time by using the |
| 119 | +# :func:`~mne.io.Raw.append` function. For this to work, they must |
| 120 | +# have the same number of channels and their :class:`~mne.Info` |
| 121 | +# structures should be compatible. |
124 | 122 |
|
125 | | -# Create multiple :class:`Raw <mne.io.RawFIF>` objects |
| 123 | +# Create multiple :class:`~mne.io.Raw` objects |
126 | 124 | raw1 = raw.copy().crop(0, 10) |
127 | 125 | raw2 = raw.copy().crop(10, 20) |
128 | 126 | raw3 = raw.copy().crop(20, 40) |
|
0 commit comments