Changeset 874 for trunk/src/series
- Timestamp:
- Feb 19, 2015, 2:17:59 AM (10 years ago)
- Location:
- trunk/src/series
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r873 r874 373 373 374 374 %% Civ1 parameters 375 Param.CheckCiv1=1;375 %Param.CheckCiv1=1; 376 376 Param.Civ1.CorrBoxSize=[25 25]; 377 377 Param.Civ1.SearchBoxSize=[55 55]; … … 387 387 388 388 %% Fix1 parameters 389 Param.CheckFix1=1;389 %Param.CheckFix1=1; 390 390 Param.Fix1.CheckFmin2=1; 391 391 Param.Fix1.CheckF3=1; … … 393 393 394 394 %% Patch1 parameters 395 Param.CheckPatch1=1;395 %Param.CheckPatch1=1; 396 396 Param.Patch1.FieldSmooth=10; 397 397 Param.Patch1.MaxDiff=1.5000; … … 400 400 401 401 %% Civ2 parameters 402 Param.CheckCiv2=1;402 %Param.CheckCiv2=1; 403 403 Param.Civ2.CorrBoxSize=[21 21]; 404 404 Param.Civ2.SearchBoxSize=[27 27]; … … 413 413 414 414 %% Fix2 parameters 415 Param.CheckFix2=1;415 %Param.CheckFix2=1; 416 416 Param.Fix2.CheckFmin2=1; 417 417 Param.Fix2.CheckF4=1; … … 420 420 421 421 %% Patch2 parameters 422 Param.CheckPatch2=1;422 %Param.CheckPatch2=1; 423 423 Param.Patch2.FieldSmooth=2; 424 424 Param.Patch2.MaxDiff=1.5000; -
trunk/src/series/merge_proj.m
r867 r874 446 446 if iview==1 447 447 %MergeData.(VarName)=Data{1}.(VarName);% initiate MergeData with the first field 448 MergeData.(VarName)(check_bad)=0; %set to zero NaN or data marked by error flag 448 449 NbAver=~check_bad;% initiate NbAver: the nbre of good data for each point 449 450 elseif size(Data{iview}.(VarName))~=size(MergeData.(VarName)) -
trunk/src/series/time_series.m
r872 r874 92 92 end 93 93 end 94 % test for subtraction 95 if size(Param.InputTable,1)==2 96 answer=msgbox_uvmat('INPUT_Y-N','substract the two input file series (Yes) or concatene them (No)'); 97 ParamOut.ActionInput.CheckSub=str2double(answer); 98 end 94 99 % check the existence of the first and last file in the series 95 100 first_j=[]; … … 161 166 CheckNc=cell(1,nbview); 162 167 frame_index=cell(1,nbview); 168 163 169 for iview=1:nbview 164 170 if ~exist(filecell{iview,1}','file') … … 284 290 VarMesh=Param.ActionInput.VarMesh; 285 291 end 292 end 293 CheckSub=0;%default 294 if isfield(Parma,'ActionInput') && isfield(Param.ActionInput,'CheckSub') 295 CheckSub=ParamOut.ActionInput.CheckSub; 286 296 end 287 297 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% … … 312 322 % coordinate transform (or other user defined transform) 313 323 if ~isempty(transform_fct) 314 switch nargin(transform_fct) 315 case 4 316 if length(Data)==2 317 Field=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2}); 318 else 324 if CheckSub 325 switch nargin(transform_fct) 326 case 4 327 if length(Data)==2 328 Field=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2}); 329 else 330 Field=transform_fct(Data{1},XmlData{1}); 331 end 332 case 3 333 if length(Data)==2 334 Field=transform_fct(Data{1},XmlData{1},Data{2}); 335 else 336 Field=transform_fct(Data{1},XmlData{1}); 337 end 338 case 2 319 339 Field=transform_fct(Data{1},XmlData{1}); 320 end 321 case 3 322 if length(Data)==2 323 Field=transform_fct(Data{1},XmlData{1},Data{2}); 324 else 325 Field=transform_fct(Data{1},XmlData{1}); 326 end 327 case 2 328 Field=transform_fct(Data{1},XmlData{1}); 329 case 1 330 Field=transform_fct(Data{1}); 340 case 1 341 Field=transform_fct(Data{1}); 342 end 343 else 344 if nargin(transform_fct)>=2 345 for iview=1:nbview 346 Data{iview}=transform_fct(Data{iview},XmlData{iview}); 347 end 348 else 349 for iview=1:nbview 350 Data{iview}=transform_fct(Data{iview}); 351 end 352 end 331 353 end 332 354 end … … 344 366 end 345 367 end 346 % nbfile=nbfile+1;368 % nbfile=nbfile+1; 347 369 348 370 % initiate the time series at the first iteration … … 441 463 VarVal=Field.(VarName); 442 464 if testsum(ivar)==2% test for recorded variable 443 if isempty(errormsg) 465 if isempty(errormsg) 444 466 VarVal=shiftdim(VarVal,-1); %shift dimension 445 467 DataOut.(VarName)(index,:,:)=VarVal;%concanete the current field to the time series
Note: See TracChangeset
for help on using the changeset viewer.