Files
rustytorch/crates/specialized/rtx-neuro-io/src/kit/mod.rs
T
2026-03-04 00:08:42 +00:00

39 lines
1.0 KiB
Rust

//! Yokogawa/KIT/Ricoh MEG File Format Reader
//!
//! Reads data from Yokogawa/KIT MEG systems (now Ricoh).
//!
//! ## File Types
//!
//! - `.con` - Continuous data file (single file per recording)
//! - `.sqd` - Segmented/epoched data file
//! - `.mrk` - Marker/event file (optional)
//!
//! ## Data Format
//!
//! KIT files are little-endian with a fixed header structure followed by
//! channel data. The format supports multiple acquisition systems:
//! - KIT-157 (157 channels)
//! - KIT-208 (208 channels)
//! - KIT-64 (64 channels)
//! - Ricoh MEG systems
//!
//! ## Example
//!
//! ```rust,ignore
//! use rtx_neuro_io::kit::KitReader;
//!
//! let reader = KitReader::open("recording.con")?;
//! println!("Channels: {}", reader.n_channels());
//! println!("Sample rate: {} Hz", reader.sfreq());
//!
//! let data = reader.read_data(0.0, 10.0)?; // Read 10 seconds
//! ```
mod constants;
mod header;
mod reader;
pub use constants::*;
pub use header::{KitChannel, KitChannelKind, KitHeader, KitSystemInfo};
pub use reader::KitReader;