Changeset 918 for trunk/src/series
- Timestamp:
- Jun 26, 2015, 9:20:48 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r910 r918 207 207 end 208 208 end 209 if ~isfield(Param.IndexRange,'first_j')||isequal(MaxIndex_j,MinIndex_j)% no possibility of j pairs 210 set(handles.ListPairMode,'Value',1) 211 set(handles.ListPairMode,'String',{'series(Di)'}) 212 elseif MaxIndex_i==1 && MaxIndex_j>1% simple series in j 213 set(handles.ListPairMode,'String',{'pair j1-j2';'series(Dj)'}) 214 if MaxIndex_j <= 10 215 set(handles.ListPairMode,'Value',1)% advice 'pair j1-j2' except in MaxIndex_j is large 216 end 217 else 218 set(handles.ListPairMode,'String',{'pair j1-j2';'series(Dj)';'series(Di)'})%multiple choice 219 if strcmp(NomTypeNc,'_1-2_1') 220 set(handles.ListPairMode,'Value',3)% advise 'series(Di)' 221 elseif MaxIndex_j <= 10 222 set(handles.ListPairMode,'Value',1)% advice 'pair j1-j2' except in MaxIndex_j is large 223 end 224 end 209 225 210 226 211 %% transfer the time from the GUI series, or use file index by default … … 272 257 %set(handles.CoordUnit,'String',CoordUnit) 273 258 set(handles.SearchRange,'UserData', pxcm_search); 274 275 % indicate the min and max indices i and j on the GUI276 set(handles.MinIndex_i,'String',num2str(MinIndex_i))277 set(handles.MaxIndex_i,'String',num2str(MaxIndex_i))278 set(handles.MinIndex_j,'String',num2str(MinIndex_j))279 set(handles.MaxIndex_j,'String',num2str(MaxIndex_j))280 259 281 260 … … 336 315 end 337 316 end 317 318 %% set the menu and default choice of civ pairs 319 if ~isfield(Param.IndexRange,'first_j')||isequal(MaxIndex_j,MinIndex_j)% no possibility of j pairs 320 set(handles.ListPairMode,'Value',1) 321 set(handles.ListPairMode,'String',{'series(Di)'}) 322 elseif MaxIndex_i==1 && MaxIndex_j>1% simple series in j 323 set(handles.ListPairMode,'String',{'pair j1-j2';'series(Dj)'}) 324 if MaxIndex_j <= 10 325 set(handles.ListPairMode,'Value',1)% advice 'pair j1-j2' except in MaxIndex_j is large 326 end 327 else 328 set(handles.ListPairMode,'String',{'pair j1-j2';'series(Dj)';'series(Di)'})%multiple choice 329 if strcmp(NomTypeNc,'_1-2_1') 330 set(handles.ListPairMode,'Value',3)% advise 'series(Di)' 331 elseif MaxIndex_j <= 10 332 set(handles.ListPairMode,'Value',1)% advice 'pair j1-j2' except in MaxIndex_j is large 333 end 334 end 335 336 %% indicate the min and max indices i and j on the GUI 337 set(handles.MinIndex_i,'String',num2str(MinIndex_i)) 338 set(handles.MaxIndex_i,'String',num2str(MaxIndex_i)) 339 set(handles.MinIndex_j,'String',num2str(MinIndex_j)) 340 set(handles.MaxIndex_j,'String',num2str(MaxIndex_j)) 338 341 339 342 %% set the reference indices from the input file indices … … 968 971 index_pair=0; 969 972 %get all the Time intervals in bursts 973 displ_pair_dt=''; 970 974 for numod_a=MinIndex_j:MaxIndex_j-1 %nbfield2 always >=2 for 'pair j1-j2' mode 971 975 for numod_b=(numod_a+1):MaxIndex_j … … 981 985 982 986 end 987 if index_pair ~=0 983 988 [tild,indsort]=sort(dt); 984 989 displ_pair=displ_pair(indsort); 985 990 displ_pair_dt=displ_pair_dt(indsort); 991 end 986 992 case 'displacement' 987 993 displ_pair={'Di=Dj=0'}; … … 1497 1503 end 1498 1504 end 1499 set(hObject,'BackgroundColor',[1 0 1])1500 1505 set(handles.ConfigSource,'String','NEW') 1501 1506 set(handles.OK,'BackgroundColor',[1 0 1]) 1507 1502 1508 %------------------------------------------------------------------------ 1503 1509 % --- Executes on button press in CheckMask: common to all panels (civ1, Civ2..) … … 1524 1530 testmask=1; 1525 1531 else % browse for a mask 1526 % filemask=get(hObject,'UserData');%look for previous mask name stored as UserData1527 % if exist(filemask,'file')1528 % filebase=filemask;1529 % end1530 1532 filemask= uigetfile_uvmat('pick a mask image file:',InputTable{ind_A,1},'image'); 1531 1533 set(hObject,'UserData',filemask);%store for future use
Note: See TracChangeset
for help on using the changeset viewer.