Changeset 609 for trunk/src/series/time_series.m
- Timestamp:
- Apr 9, 2013, 8:20:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/time_series.m
r606 r609 75 75 OutputDir=[Param.OutputSubDir Param.OutputDirExt]; 76 76 77 %% root input file(s) and type77 %% root input file(s) name, type and index series 78 78 RootPath=Param.InputTable(:,1); 79 79 RootFile=Param.InputTable(:,3); … … 90 90 % i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices 91 91 %%%%%%%%%%%% 92 % NbSlice=1;%default93 % if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)94 % NbSlice=Param.IndexRange.NbSlice;95 % end96 92 nbview=numel(i1_series);%number of input file series (lines in InputTable) 97 93 nbfield_j=size(j1_series{1},1); %nb of fields for the j index (bursts or volume slices) 98 94 nbfield_i=size(i1_series{1},2); %nb of fields for the i index 99 95 nbfield=nbfield_j*nbfield_i; %total number of fields 100 101 %determine the file type on each line from the first input file 96 [first_i,tild,last_i,first_j,tild,last_j,errormsg]=get_index_range(Param.IndexRange); 97 if ~isempty(errormsg),display(errormsg),return,end 98 99 %% determine the file type on each line from the first input file 102 100 ImageTypeOptions={'image','multimage','mmreader','video'}; 103 101 NcTypeOptions={'netcdf','civx','civdata'}; … … 151 149 return 152 150 end 153 NomTypeOut= '_1-2_1';% output file index will indicate the first and last ref index in the series151 NomTypeOut=nomtype2pair(NomType{1});% determine the index nomenclature type for the output file 154 152 155 153 %% Set field names and velocity types … … 414 412 end 415 413 416 % name of result file417 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));414 %% name of result file 415 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,first_i,last_i,first_j,last_j); 418 416 errormsg=struct2nc(OutputFile,DataOut); %save result file 419 417 if isempty(errormsg) … … 422 420 displ_uvmat('ERROR',['error in Series/struct2nc: ' errormsg],checkrun) 423 421 end 424 425 422 426 423 %% plot the time series (the last one in case of multislices)
Note: See TracChangeset
for help on using the changeset viewer.