csdm_hdr_offsets.m 1/9/96 PJ & RS Appropriating BytOrd field to write length of CSDM file headers. Using old LHeader field for NOffset. Declares a set of global constants for writing the fields of the EGIS average header vectors. Based on ses_hdr_offsets.m See also:rd_ses_hdr_vecs, wt_ses_hdr_vecs, wt_ave_hdr_v.
0001 %csdm_hdr_offsets.m 0002 % 0003 % 1/9/96 PJ & RS Appropriating BytOrd field to write length of CSDM file 0004 % headers. Using old LHeader field for NOffset. 0005 % 0006 %Declares a set of global constants for writing the fields of the 0007 %EGIS average header vectors. 0008 % 0009 %Based on ses_hdr_offsets.m 0010 % 0011 %See also:rd_ses_hdr_vecs, wt_ses_hdr_vecs, wt_ave_hdr_v. 0012 0013 %Modification History: 0014 % 06/06/95 PJ Created file 0015 0016 % The fields given below reference positions in the fhdr information vector 0017 0018 %Average File Description from "EGIS Hdr Conv 1.02" 0019 LHeader_CSDM = 1; % Used to be BytOrd=1; 0020 HdrVer=2; 0021 NOffset=3; % Used to be LHeader=3; 0022 LData=4; 0023 LHeader = 3; 0024 0025 %Average File Session Information 0026 % Fields 5 through 10 are used for storing run date and run time information 0027 % in session files. They are not used in average files 0028 LastDone=11; % Number of subjects in average file 0029 ScaleBins=12; 0030 ScaleCal=13; 0031 BaseDur=14; 0032 % Fields 15 through 17 are empty in average files 0033 0034 %Average File Data Description 0035 NCells=18; 0036 NChan=19; 0037 LComment=20; 0038 LText=21; 0039 LPad=22; 0040 BrdGain=23; 0041 LCellHdr=24; 0042 0043 % The fields given below reference positions in the chdr information matrix 0044 0045 %Average Cell Offsets 0046 CellID=1; 0047 NSubjects=2; 0048 NObs=2; 0049 NPoints=3; 0050 NSamps=3; 0051 NSamp=3; 0052 SampRate=4; 0053 LSpec=5; 0054 0055 %Subject specifics array 0056 NAvg=6; % number of trials in cell average 0057 RunDate_Ave=7; 0058 RunDateMo_Ave=7; 0059 RunDateDay_Ave=8; 0060 RunDateYr_Ave=9; 0061 RunTime_Ave=10; 0062 RunTimeHr_Ave=10; 0063 RunTimeMin_Ave=11; 0064 RunTimeSec_Ave=12; 0065 SubjID_Ave=13; 0066 Handed_Ave=14; 0067 Sex_Ave=15; 0068 Age_Ave=16; 0069 ExperID_Ave=17; 0070 EdVer_Ave=18; 0071 CalFlag_Ave=19; 0072