Changeset 1097 for trunk/src/series/civ_input.m
- Timestamp:
- Apr 11, 2021, 10:03:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r1093 r1097 249 249 set(handles.dt_unit,'String',['dt in m' TimeUnit]);%display dt in unit 10-3 of the time (e.g ms) 250 250 set(handles.TimeUnit,'String',TimeUnit); 251 %set(handles.CoordUnit,'String',CoordUnit)252 251 set(handles.SearchRange,'UserData', pxcm_search); 253 252 … … 319 318 %% set the menu and default choice of civ pairs 320 319 if ~isfield(Param.IndexRange,'first_j')||isequal(MaxIndex_j,MinIndex_j)% no possibility of j pairs 321 set(handles.ListPairMode,'Value',1)322 320 PairMenu={'series(Di)'}; 323 321 elseif MaxIndex_i==1 && MaxIndex_j>1% simple series in j 324 322 PairMenu={'pair j1-j2';'series(Dj)'}; 325 if MaxIndex_j <= 10326 set(handles.ListPairMode,'Value',1)% advice 'pair j1-j2' except in MaxIndex_j is large327 end328 323 else 329 324 PairMenu={'pair j1-j2';'series(Dj)';'series(Di)'};%multiple choice 330 if strcmp(NomTypeNc,'_1-2_1')331 set(handles.ListPairMode,'Value',3)% advise 'series(Di)'332 elseif MaxIndex_j <= 10333 set(handles.ListPairMode,'Value',1)% advice 'pair j1-j2' except in MaxIndex_j is large334 end335 325 end 336 326 set(handles.ListPairMode,'String',PairMenu) 337 327 338 328 %% set default choice of pair mode 339 PairIndex= 1;329 PairIndex=[]; 340 330 if isfield(Param,'ActionInput') && isfield(Param.ActionInput,'PairIndices') 341 PairIndex=find(strcmp(Param.ActionInput.PairIndices.ListPairMode,PairMenu)); 331 PairIndex=find(strcmp(Param.ActionInput.PairIndices.ListPairMode,PairMenu));%retrieve the previous option 342 332 end 343 333 if isempty(PairIndex) … … 353 343 elseif MaxIndex_j <= 10 354 344 PairIndex=1;% advice 'pair j1-j2' except in MaxIndex_j is large 345 else 346 PairIndex=2;% advice 'Dj' 355 347 end 356 348 end … … 1748 1740 ImageData.ListVarName={'ny','nx','A'}; 1749 1741 ImageData.VarDimName= {'ny','nx',{'ny','nx'}}; 1742 ImageData.VarAttribute{1}.Role='coord_y'; 1743 ImageData.VarAttribute{2}.Role='coord_x'; 1744 ImageData.VarAttribute{3}.Role='scalar'; 1750 1745 ImageData.A=imread(Data.Civ1_ImageA); % read the first image 1751 1746 if ndims(ImageData.A)==3 %case of color image
Note: See TracChangeset
for help on using the changeset viewer.