Changeset 633 for trunk/src/series
- Timestamp:
- May 13, 2013, 8:45:45 PM (12 years ago)
- Location:
- trunk/src/series
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/aver_stat.m
r624 r633 177 177 for index=1:nbfield 178 178 update_waitbar(WaitbarHandle,index/nbfield) 179 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')179 if ~isempty(RUNHandle)&& ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 180 180 disp('program stopped by user') 181 181 break -
trunk/src/series/civ_input.m
r624 r633 199 199 MinIndex_i=Param.IndexRange.MinIndex_i{1}; 200 200 MinIndex_j=Param.IndexRange.MinIndex_j{1}; 201 CivInputData.MaxIndex_i=MaxIndex_i; 202 CivInputData.MaxIndex_j=MaxIndex_j; 203 CivInputData.MinIndex_i=MinIndex_i; 204 CivInputData.MinIndex_j=MinIndex_j; 201 205 if ~isfield(Param.IndexRange,'first_j') 202 206 set(handles.ListPairMode,'Value',1) … … 286 290 set(handles.dt_unit,'String',['dt in m' TimeUnit]);%display dt in unit 10-3 of the time (e.g ms) 287 291 set(handles.TimeUnit,'String',TimeUnit); 288 set(handles.nb_field,'String',num2str(MaxIndex_i)); 289 set(handles.nb_field2,'String',num2str(MaxIndex_j)); 292 % set(handles.nb_field,'String',num2str(MaxIndex_i)); 293 % set(handles.nb_field2,'String',num2str(MaxIndex_j)); 294 290 295 set(handles.CoordUnit,'String',CoordUnit) 291 296 set(handles.SearchRange,'UserData', pxcm_search); … … 1124 1129 CivInputData=get(handles.civ_input,'UserData'); 1125 1130 TimeUnit=get(handles.TimeUnit,'String'); 1126 time=CivInputData.Time;1131 Time=CivInputData.Time; 1127 1132 checkframe=strcmp(TimeUnit,'frame'); 1128 1133 %displ_num=get(handles.ListPairCiv1,'UserData'); … … 1234 1239 if select(ipair) 1235 1240 displ_pair{ipair}=['Di= ' num2str(-floor(ipair/2)) '|' num2str(ceil(ipair/2))]; 1236 %if ~checkframe && size( time,1)>=ref_i+1+displ_num(4,ipair) && size(time,2)>=ref_j+1+displ_num(2,ipair)&&displ_num(2,ipair)>=1 &&displ_num(1,ipair)>=11237 % dt= time(ref_i+1+displ_num(4,ipair),ref_j+1+displ_num(2,ipair))-time(ref_i+1+displ_num(3,ipair),ref_j+1+displ_num(1,ipair));%time interval dt1238 if ~checkframe && size( time,1)>=ref_i+1+ceil(ipair/2) && size(time,2)>=ref_j+1&& ref_i-floor(ipair/2)>=0 && ref_j>=01239 dt= time(ref_i+1+ceil(ipair/2),ref_j+1)-time(ref_i+1-floor(ipair/2),ref_j+1);%time interval dtref_j+11241 %if ~checkframe && size(Time,1)>=ref_i+1+displ_num(4,ipair) && size(Time,2)>=ref_j+1+displ_num(2,ipair)&&displ_num(2,ipair)>=1 &&displ_num(1,ipair)>=1 1242 % dt=Time(ref_i+1+displ_num(4,ipair),ref_j+1+displ_num(2,ipair))-Time(ref_i+1+displ_num(3,ipair),ref_j+1+displ_num(1,ipair));%Time interval dt 1243 if ~checkframe && size(Time,1)>=ref_i+1+ceil(ipair/2) && size(Time,2)>=ref_j+1&& ref_i-floor(ipair/2)>=0 && ref_j>=0 1244 dt=Time(ref_i+1+ceil(ipair/2),ref_j+1)-Time(ref_i+1-floor(ipair/2),ref_j+1);%Time interval dtref_j+1 1240 1245 else 1241 1246 dt=1; … … 1254 1259 if select(ipair) 1255 1260 displ_pair{ipair}=['Dj= ' num2str(-floor(ipair/2)) '|' num2str(ceil(ipair/2))]; 1256 if ~checkframe && size( time,1)>=ref_i+1+displ_num(4,ipair) && size(time,2)>=ref_j+1+displ_num(2,ipair)1257 dt= time(ref_i+1+displ_num(4,ipair),ref_j+1+displ_num(2,ipair))-time(ref_i+1+displ_num(3,ipair),ref_j+1+displ_num(1,ipair));%time interval dt1261 if ~checkframe && size(Time,1)>=ref_i+1+displ_num(4,ipair) && size(Time,2)>=ref_j+1+displ_num(2,ipair) 1262 dt=Time(ref_i+1+displ_num(4,ipair),ref_j+1+displ_num(2,ipair))-Time(ref_i+1+displ_num(3,ipair),ref_j+1+displ_num(1,ipair));%Time interval dt 1258 1263 displ_pair{ipair}=[displ_pair{ipair} ' :dt= ' num2str(dt*1000)]; 1259 1264 end … … 1264 1269 end 1265 1270 elseif isequal(mode,'pair j1-j2')%case of pairs 1266 for ipair=1:nbpair 1267 if select(ipair) 1268 if ~checkframe && size(time,2)>1 1269 dt=time(ref_i+1+displ_num(4,ipair),displ_num(2,ipair)+1)-time(ref_i+1+displ_num(3,ipair),displ_num(1,ipair)+1);%time interval dt 1270 else % time set by default to i index 1271 dt=1; 1271 MinIndex_j=CivInputData.MinIndex_j; 1272 MaxIndex_j=min(CivInputData.MaxIndex_j,10);%limitate the number of pairs to 10x10 1273 index_pair=0; 1274 %get all the Time intervals in bursts 1275 for numod_a=MinIndex_j:MaxIndex_j-1 %nbfield2 always >=2 for 'pair j1-j2' mode 1276 for numod_b=(numod_a+1):MaxIndex_j 1277 index_pair=index_pair+1; 1278 displ_pair{index_pair}=['j= ' num2stra(numod_a,nom_type_ima) '-' num2stra(numod_b,nom_type_ima)]; 1279 dt(index_pair)=numod_b-numod_a;%default dt 1280 if size(Time,1)>ref_i && size(Time,2)>numod_b % && ~checkframe 1281 dt(index_pair)=Time(ref_i+1,numod_b+1)-Time(ref_i+1,numod_a+1);% Time interval dt 1282 displ_pair{index_pair}=[displ_pair{index_pair} ' :dt= ' num2str(dt(index_pair)*1000)]; 1272 1283 end 1273 displ_pair{ipair}=['j= ' num2stra(displ_num(1,ipair),nom_type_ima) '-' num2stra(displ_num(2,ipair),nom_type_ima) ... 1274 ' :dt= ' num2str(dt*1000)]; 1275 else 1276 displ_pair{ipair}='...'; %pair not displayed in the menu 1277 end 1278 end 1284 end 1285 end 1286 [dtsort,indsort]=sort(dt); 1287 displ_pair=displ_pair(indsort); 1279 1288 elseif isequal(mode,'displacement') 1280 1289 displ_pair={'Di=Dj=0'}; -
trunk/src/series/civ_series.m
r624 r633 218 218 for ifield=1:NbField 219 219 update_waitbar(WaitbarHandle,index/nbfield) 220 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')220 if ~isempty(RUNHandle) && ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 221 221 disp('program stopped by user') 222 222 break -
trunk/src/series/ima_levels.m
r628 r633 151 151 for ifile=1:nbfield 152 152 update_waitbar(WaitbarHandle,ifile/nbfield) 153 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')153 if ~isempty(RUNHandle) &&ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 154 154 disp('program stopped by user') 155 155 return -
trunk/src/series/merge_proj.m
r632 r633 174 174 for index=1:NbField 175 175 update_waitbar(WaitbarHandle,index/NbField) 176 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')176 if ~isempty(RUNHandle) &&ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 177 177 disp('program stopped by user') 178 178 return -
trunk/src/series/sub_background.m
r624 r633 367 367 for ifield = step*ceil(nbaver/2)+1:step:nbfield_i-step*floor(nbaver/2) 368 368 update_waitbar(WaitbarHandle,ifield/nbfield_i) 369 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')369 if ~isempty(RUNHandle) &&ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 370 370 disp('program stopped by user') 371 371 return -
trunk/src/series/time_series.m
r624 r633 210 210 for index=1:nbfield 211 211 update_waitbar(WaitbarHandle,index/nbfield) 212 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')212 if ~isempty(RUNHandle) &&ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 213 213 disp('program stopped by user') 214 214 break % leave the loop if stop is ordered
Note: See TracChangeset
for help on using the changeset viewer.