|
a |
|
b/doc/_includes/units.rst |
|
|
1 |
:orphan: |
|
|
2 |
|
|
|
3 |
Internal representation (units) |
|
|
4 |
=============================== |
|
|
5 |
|
|
|
6 |
.. NOTE: part of this file is included in doc/manual/io.rst and |
|
|
7 |
doc/overview/implementation.rst. Changes here are reflected there. If you |
|
|
8 |
want to link to this content, link to :ref:`manual-units` for the manual or |
|
|
9 |
:ref:`units` for the implementation page. The next line is a target for |
|
|
10 |
:start-after: so we can omit what's above: |
|
|
11 |
units-begin-content |
|
|
12 |
|
|
|
13 |
Irrespective of the units used in your manufacturer's format, when importing |
|
|
14 |
data, MNE-Python will always convert measurements to the same standard units. |
|
|
15 |
Thus the in-memory representation of data are always in: |
|
|
16 |
|
|
|
17 |
- Volts (eeg, eog, seeg, emg, ecg, bio, ecog, dbs) |
|
|
18 |
- Teslas (magnetometers) |
|
|
19 |
- Teslas/meter (gradiometers) |
|
|
20 |
- Amperes*meter (dipole fits, minimum-norm estimates, etc.) |
|
|
21 |
- Moles/liter ("molar"; fNIRS data: oxyhemoglobin (hbo), deoxyhemoglobin (hbr)) |
|
|
22 |
- Arbitrary units (various derived unitless quantities) |
|
|
23 |
|
|
|
24 |
.. NOTE: this is a target for :end-before: units-end-of-list |
|
|
25 |
|
|
|
26 |
Note, however, that most MNE-Python plotting functions will scale the data when |
|
|
27 |
plotted to yield nice-looking axis annotations in a sensible range; for |
|
|
28 |
example, :meth:`mne.io.Raw.plot_psd` will convert teslas to femtoteslas (fT) |
|
|
29 |
and volts to microvolts (µV) when plotting MEG and EEG data. |
|
|
30 |
|
|
|
31 |
The units used in internal data representation are particularly important to |
|
|
32 |
remember when extracting data from MNE-Python objects and manipulating it |
|
|
33 |
outside MNE-Python (e.g., when using methods like :meth:`~mne.io.Raw.get_data` |
|
|
34 |
or :meth:`~mne.Epochs.to_data_frame` to convert data to :class:`NumPy arrays |
|
|
35 |
<numpy.ndarray>` or :class:`Pandas DataFrames <pandas.DataFrame>` for analysis |
|
|
36 |
or plotting with other Python modules). |