Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_read_header”.
FT_READ_HEADER reads header information from a variety of EEG, MEG and LFP files and represents the header information in a common data-independent format. The supported formats are listed below. Use as hdr = ft_read_header(filename, ...) Additional options should be specified in key-value pairs and can be 'headerformat' string 'fallback' can be empty or 'biosig' (default = []) This returns a header structure with the following elements hdr.Fs sampling frequency hdr.nChans number of channels hdr.nSamples number of samples per trial hdr.nSamplesPre number of pre-trigger samples in each trial hdr.nTrials number of trials hdr.label Nx1 cell-array with the label of each channel hdr.chantype Nx1 cell-array with the channel type, see FT_CHANTYPE hdr.chanunit Nx1 cell-array with the physical units, see FT_CHANUNIT For continuously recorded data, nSamplesPre=0 and nTrials=1. For some data formats that are recorded on animal electrophysiology systems (e.g. Neuralynx, Plexon), the following optional fields are returned, which allows for relating the timinng of spike and LFP data hdr.FirstTimeStamp number, 32 bit or 64 bit unsigned integer hdr.TimeStampPerSample double Depending on the file format, additional header information can be returned in the hdr.orig subfield. The following MEG dataformats are supported CTF - VSM MedTech (*.ds, *.res4, *.meg4) Neuromag - Elekta (*.fif) BTi - 4D Neuroimaging (*.m4d, *.pdf, *.xyz) Yokogawa (*.ave, *.con, *.raw) NetMEG (*.nc) The following EEG dataformats are supported ANT - Advanced Neuro Technology, EEProbe (*.avr, *.eeg, *.cnt) Biosemi (*.bdf) CED - Cambridge Electronic Design (*. smr) Electrical Geodesics, Inc. (*.egis, *.ave, *.gave, *.ses, *.raw, *.sbin, MFF fileformat) Megis/BESA (*.avr, *.swf) NeuroScan (*.eeg, *.cnt, *.avg) Nexstim (*.nxe) BrainVision (*.eeg, *.seg, *.dat, *.vhdr, *.vmrk) GTec (*.mat) The following spike and LFP dataformats are supported (with some limitations) Plextor (*.nex, *.plx, *.ddt) Neuralynx (*.ncs, *.nse, *.nts, *.nev, DMA log files) CED - Cambridge Electronic Design (*.smr) MPI - Max Planck Institute (*.dap) See also FT_READ_DATA, FT_READ_EVENT, FT_WRITE_DATA, FT_WRITE_EVENT, FT_CHANTYPE, FT_CHANUNIT
Share this page: