Back to the main page.

Bug 1206 - documentation ft_datatype_raw incomplete

Status CLOSED FIXED
Reported 2011-12-01 12:32:00 +0100
Modified 2012-04-11 16:48:30 +0200
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: All
Operating System: All
Importance: P3 enhancement
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Martin Vinck - 2011-12-01 12:32:12 +0100

many optional fields are not described here.


Robert Oostenveld - 2011-12-01 12:35:01 +0100

which ones?


Martin Vinck - 2011-12-01 12:36:01 +0100

for example sampleinfo and trialinfo but also elec


Robert Oostenveld - 2011-12-01 12:37:22 +0100

% FT_DATATYPE_RAW describes the FieldTrip MATLAB structure for raw data % % The raw datatype represents sensor-level time-domain data typically % obtained after calling FT_DEFINETRIAL and FT_PREPROCESSING. It % contains one or multiple segments of data, each represenetd as % Nchan X Ntime arrays. % % An example of a raw data structure with 275 MEG channels is % % label: {275x1 cell} the channel labels (e.g. 'MRC13') % time: {1x10 cell} the timeaxis [1xN double] per trial % trial: {1x10 cell} the numeric data [275xN double] per trial % hdr: [1x1 struct] the full header information of the original dataset on disk % fsample: 600 the sampling frequency % grad: [1x1 struct] information about the sensor array (for EEG it is called elec) % cfg: [1x1 struct] the configuration used by the function that generated this data structure % % Required fields: % - time, trial, label % ================================== % Optional fields: % - sampleinfo, trialinfo, grad, elec, hdr, cfg ================================== % % Deprecated fields: % - fsample % % Obsoleted fields: % - offset % % Revision history: % % (2011/latest) The description of the sensors has changed, see FT_DATATYPE_SENS % for further information. % % (2010v2) The trialdef field has been replaced by the sampleinfo and % trialinfo fields. The sampleinfo corresponds to trl(:,1:2), the trialinfo % to trl(4:end). % % (2010v1) In 2010/Q3 it shortly contained the trialdef field which was a copy % of the trial definition (trl) is generated by FT_DEFINETRIAL. % % (2007) It used to contain the offset field, which correcponds to trl(:,3). % Since the offset field is redundant with the time axis, the offset field is % from now on not present any more. It can be recreated if needed. % % (2003) The initial version was defined % % See also FT_DATATYPE, FT_DATATYPE_COMP, FT_DATATYPE_DIP, FT_DATATYPE_FREQ, % FT_DATATYPE_MVAR, FT_DATATYPE_RAW, FT_DATATYPE_SOURCE, FT_DATATYPE_SPIKE, % FT_DATATYPE_TIMELOCK, FT_DATATYPE_VOLUME


Robert Oostenveld - 2011-12-22 09:18:33 +0100

I have updated it into % label: {151x1 cell} the channel labels (e.g. 'MRC13') % time: {1x266 cell} the timeaxis [1*Ntime double] per trial % trial: {1x266 cell} the numeric data [151*Ntime double] per trial % sampleinfo: [266x2 double] the begin and endsample of each trial relative to the recording on disk % trialinfo: [266x1 double] optional trigger or condition codes for each trial % hdr: [1x1 struct] the full header information of the original dataset on disk % grad: [1x1 struct] information about the sensor array (for EEG it is called elec) % cfg: [1x1 struct] the configuration used by the function that generated this data structure which adds the sampleinfo and trialinfo fields, and removed the deprecated fsample from the example. manzana> svn commit utilities/ Sending utilities/ft_datatype_raw.m Transmitting file data . Committed revision 5068.


Robert Oostenveld - 2012-04-11 16:48:30 +0200

I cleaned up my bugzilla list by changing the status from resolved (either fixed or wontfix) into closed. If you don't agree, please reopen the bug. Robert