Information about raw data in a FIFF file. More...
#include <mne_raw_info.h>
Public Types | |
| typedef QSharedPointer< MNERawInfo > | SPtr |
| typedef QSharedPointer< const MNERawInfo > | ConstSPtr |
Public Member Functions | |
| MNERawInfo () | |
| Constructs a default MNERawInfo. | |
| ~MNERawInfo () | |
| Destroys the MNERawInfo and releases owned resources. | |
Public Attributes | |
| QString | filename |
| std::unique_ptr< FIFFLIB::FiffId > | id |
| int | nchan |
| QList< FIFFLIB::FiffChInfo > | chInfo |
| int | coord_frame |
| std::unique_ptr< FIFFLIB::FiffCoordTrans > | trans |
| float | sfreq |
| float | lowpass |
| float | highpass |
| FIFFLIB::FiffTime | start_time |
| int | buf_size |
| int | maxshield_data |
| QList< FIFFLIB::FiffDirEntry::SPtr > | rawDir |
| int | ndir |
Information about raw data in a FIFF file.
Definition at line 85 of file mne_raw_info.h.
| typedef QSharedPointer<const MNERawInfo> MNELIB::MNERawInfo::ConstSPtr |
Const shared pointer type for MNERawInfo.
Definition at line 89 of file mne_raw_info.h.
| typedef QSharedPointer<MNERawInfo> MNELIB::MNERawInfo::SPtr |
Shared pointer type for MNERawInfo.
Definition at line 88 of file mne_raw_info.h.
| MNERawInfo::MNERawInfo | ( | ) |
Constructs a default MNERawInfo.
Definition at line 62 of file mne_raw_info.cpp.
| MNERawInfo::~MNERawInfo | ( | ) |
Destroys the MNERawInfo and releases owned resources.
Definition at line 76 of file mne_raw_info.cpp.
|
static |
Finds the MaxShield raw data block in the FIFF directory tree.
Searches the tree under the given node for a FIFFB_SMSH_RAW_DATA block, which contains SSS/MaxShield processed raw data.
| [in] | node | Root node of the subtree to search. |
Definition at line 133 of file mne_raw_info.cpp.
|
static |
Finds the nearest FIFFB_MEAS parent node in the FIFF directory tree.
Walks up the tree from the given node by following parent pointers until a node of type FIFFB_MEAS is found.
| [in] | node | Starting node from which to search upward. |
Definition at line 82 of file mne_raw_info.cpp.
|
static |
Finds the FIFFB_MEAS_INFO child node within the nearest FIFFB_MEAS block.
First locates the enclosing FIFFB_MEAS node by walking up the tree from the given node, then searches its immediate children for a node of type FIFFB_MEAS_INFO.
| [in] | node | Starting node from which to search. |
Definition at line 97 of file mne_raw_info.cpp.
|
static |
Finds the raw data block in the FIFF directory tree.
Searches the tree under the given node for a FIFFB_RAW_DATA block. If none is found, falls back to searching for a FIFFB_CONTINUOUS_DATA block.
| [in] | node | Root node of the subtree to search. |
Definition at line 116 of file mne_raw_info.cpp.
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Overload that does not return the measurement start time.
Definition at line 146 of file mne_raw_info.cpp.
|
static |
Reads measurement information from the nearest FIFFB_MEAS_INFO parent of a node.
Extracts channel information, sampling frequency, filter parameters, coordinate transformation (device-to-head), and measurement ID from the FIFF file. Lowpass and highpass default to sfreq/2 and 0 respectively if not explicitly present in the file.
| [in] | stream | Open FIFF stream to read tags from. |
| [in] | node | Starting directory node (typically the raw data node). |
| [out] | id | Measurement ID (managed via unique_ptr). Reset if absent. |
| [out] | nchan | Number of channels. |
| [out] | sfreq | Sampling frequency in Hz. |
| [out] | highpass | Highpass filter cutoff frequency in Hz. |
| [out] | lowpass | Lowpass filter cutoff frequency in Hz. |
| [out] | chp | List of channel information structures, one per channel. |
| [out] | trans | Device-to-head coordinate transformation. |
| [out] | start_time | Measurement start time. Populated from FIFF_MEAS_DATE if present; otherwise from the measurement ID time; otherwise zeroed. |
Definition at line 162 of file mne_raw_info.cpp.
|
static |
Loads raw data information from a FIFF file.
Opens the specified FIFF file, locates the raw data block (or MaxShield data block if allowed and no standard raw data is found), reads the measurement information, determines the buffer size from the first data buffer tag, and assembles a complete MNERawInfo structure.
| [in] | name | Path to the FIFF file to load. |
| [in] | allow_maxshield | If non-zero, fall back to MaxShield (SSS) data when no standard raw data block is found. |
| [out] | infop | Pointer to receive the newly allocated MNERawInfo structure. Only valid on success. |
Definition at line 336 of file mne_raw_info.cpp.
| int MNELIB::MNERawInfo::buf_size |
Buffer size in samples.
Definition at line 235 of file mne_raw_info.h.
| QList<FIFFLIB::FiffChInfo> MNELIB::MNERawInfo::chInfo |
Channel info data .
Definition at line 226 of file mne_raw_info.h.
| int MNELIB::MNERawInfo::coord_frame |
Which coordinate frame are the positions defined in?
Definition at line 227 of file mne_raw_info.h.
| QString MNELIB::MNERawInfo::filename |
The name of the file this comes from.
Definition at line 223 of file mne_raw_info.h.
| float MNELIB::MNERawInfo::highpass |
Highpass filter setting.
Definition at line 233 of file mne_raw_info.h.
| std::unique_ptr<FIFFLIB::FiffId> MNELIB::MNERawInfo::id |
Measurement id from the file.
Definition at line 224 of file mne_raw_info.h.
| float MNELIB::MNERawInfo::lowpass |
Lowpass filter setting.
Definition at line 232 of file mne_raw_info.h.
| int MNELIB::MNERawInfo::maxshield_data |
Are these unprocessed MaxShield data.
Definition at line 236 of file mne_raw_info.h.
| int MNELIB::MNERawInfo::nchan |
Number of channels.
Definition at line 225 of file mne_raw_info.h.
| int MNELIB::MNERawInfo::ndir |
Number of tags in the above directory.
Definition at line 238 of file mne_raw_info.h.
| QList<FIFFLIB::FiffDirEntry::SPtr> MNELIB::MNERawInfo::rawDir |
Directory of raw data tags (FIFF_DATA_BUFFER, FIFF_DATA_SKIP, etc.).
Definition at line 237 of file mne_raw_info.h.
| float MNELIB::MNERawInfo::sfreq |
Sampling frequency.
Definition at line 231 of file mne_raw_info.h.
| FIFFLIB::FiffTime MNELIB::MNERawInfo::start_time |
Acquisition start time (from meas date or block id).
Definition at line 234 of file mne_raw_info.h.
| std::unique_ptr<FIFFLIB::FiffCoordTrans> MNELIB::MNERawInfo::trans |
Coordinate transformation FIFF_COORD_HEAD <-> FIFF_COORD_DEVICE.
Definition at line 230 of file mne_raw_info.h.