Changeset 606 for trunk/src/series/time_series.m
- Timestamp:
- Apr 7, 2013, 10:14:45 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/time_series.m
r605 r606 42 42 function ParamOut=time_series(Param) 43 43 44 %% set the input elements needed on the GUI series when the action is selected in the menu ActionName 44 %% set the input elements needed on the GUI series when the action is selected in the menu ActionName or InputTable refreshed 45 45 if isstruct(Param) && isequal(Param.Action.RUN,0) 46 46 ParamOut.AllowInputSort='off';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default) … … 50 50 ParamOut.FieldName='two';% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default) 51 51 ParamOut.FieldTransform = 'on';%can use a transform function 52 ParamOut.TransformPath=fullfile(fileparts(which('uvmat')),'transform_field');% path to transform functions (needed for compilation only) 52 53 ParamOut.ProjObject='on';%can use projection object(option 'off'/'on', 53 54 ParamOut.Mask='off';%can use mask option (option 'off'/'on', 'off' by default) … … 71 72 end 72 73 73 ParamOut= Param; %default output74 ParamOut=[]; %default output 74 75 OutputDir=[Param.OutputSubDir Param.OutputDirExt]; 75 76 … … 89 90 % i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices 90 91 %%%%%%%%%%%% 91 NbSlice=1;%default92 if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)93 NbSlice=Param.IndexRange.NbSlice;94 end92 % NbSlice=1;%default 93 % if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice) 94 % NbSlice=Param.IndexRange.NbSlice; 95 % end 95 96 nbview=numel(i1_series);%number of input file series (lines in InputTable) 96 nbfield_j=size( i1_series{1},1); %nb of fields for the j index (bursts or volume slices)97 nbfield_j=size(j1_series{1},1); %nb of fields for the j index (bursts or volume slices) 97 98 nbfield_i=size(i1_series{1},2); %nb of fields for the i index 98 99 nbfield=nbfield_j*nbfield_i; %total number of fields 99 nbfield_i=floor(nbfield/NbSlice);%total number of indexes in a slice (adjusted to an integer number of slices)100 nbfield=nbfield_i*NbSlice; %total number of fields after adjustement101 100 102 101 %determine the file type on each line from the first input file … … 153 152 end 154 153 NomTypeOut='_1-2_1';% output file index will indicate the first and last ref index in the series 155 if checkrun==1156 return % stop here for input checks157 end158 154 159 155 %% Set field names and velocity types … … 419 415 420 416 %name of result file 421 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(1),i1_series{1}(end), i_slice,[]);417 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(1),i1_series{1}(end),j1_series{1}(1),j1_series{1}(end)); 422 418 errormsg=struct2nc(OutputFile,DataOut); %save result file 423 419 if isempty(errormsg)
Note: See TracChangeset
for help on using the changeset viewer.