Changeset 880 for trunk/src/series/merge_proj.m
- Timestamp:
- Mar 4, 2015, 12:01:38 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/merge_proj.m
r874 r880 142 142 FileType{iview}=FileInfo{iview}.FileType; 143 143 CheckImage{iview}=~isempty(find(strcmp(FileType{iview},ImageTypeOptions)));% =1 for images 144 if CheckImage{iview} 145 ParamIn{iview}=MovieObject{iview}; 146 else 147 ParamIn{iview}=Param.InputFields; 148 end 144 149 CheckNc{iview}=~isempty(find(strcmp(FileType{iview},NcTypeOptions)));% =1 for netcdf files 145 150 if ~isempty(j1_series{iview}) … … 196 201 FileExtOut='.nc'; %netcdf output 197 202 end 203 if isempty(j1_series{1}) 204 NomTypeOut='_1'; 205 else 206 NomTypeOut='_1_1'; 207 end 198 208 %NomTypeOut=NomType;% output file index will indicate the first and last ref index in the series 199 209 RootFileOut=RootFile{1}; … … 232 242 233 243 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 244 tstart=tic; %used to record the computing time 234 245 for index=1:NbField 235 246 update_waitbar(WaitbarHandle,index/NbField) … … 238 249 return 239 250 end 240 241 251 %%%%%%%%%%%%%%%% loop on views (input lines) %%%%%%%%%%%%%%%% 242 252 Data=cell(1,NbView);%initiate the set Data 243 253 timeread=zeros(1,NbView); 244 254 for iview=1:NbView 245 %% reading input file(s) 246 [Data{iview},tild,errormsg] = read_field(filecell{iview,index},FileType{iview},Param .InputFields,frame_index{iview}(index));255 %% reading input file(s) 256 [Data{iview},tild,errormsg] = read_field(filecell{iview,index},FileType{iview},ParamIn{iview},frame_index{iview}(index)); 247 257 if ~isempty(errormsg) 248 258 disp_uvmat('ERROR',['ERROR in merge_proj/read_field/' errormsg],checkrun) … … 323 333 end 324 334 end 325 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFileOut,FileExtOut,NomType {1},i1,i2,j1,j2);335 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFileOut,FileExtOut,NomTypeOut,i1,i2,j1,j2); 326 336 327 337 %% recording the merged field … … 337 347 npy=siz(1); 338 348 npx=siz(2); 339 if isfield(MergeData,' coord_x') && isfield(MergeData,'coord_y')340 Rangx=MergeData. coord_x;341 Rangy=MergeData. coord_y;349 if isfield(MergeData,'Coord_x') && isfield(MergeData,'Coord_y') 350 Rangx=MergeData.Coord_x; 351 Rangy=MergeData.Coord_y; 342 352 elseif isfield(MergeData,'AX')&& isfield(MergeData,'AY') 343 353 Rangx=[MergeData.AX(1) MergeData.AX(end)]; … … 392 402 end 393 403 end 394 404 disp(['total ellapsed time ' num2str(toc(tstart))]) 395 405 396 406 %'merge_field': concatene fields
Note: See TracChangeset
for help on using the changeset viewer.