Changeset 586 for trunk/src/series.m
- Timestamp:
- Mar 13, 2013, 9:12:09 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r554 r586 1374 1374 set(handles.RUN,'BackgroundColor',[1 0 0]) 1375 1375 set(handles.RUN,'enable','on') 1376 % set(handles.BATCH,'BackgroundColor',[1 0 0])1377 % set(handles.BATCH,'enable','on')1378 1379 %------------------------------------------------------------------------1380 % --- Executes on button press in BATCH.1381 function BATCH_Callback(hObject, eventdata, handles)1382 %------------------------------------------------------------------------1383 1384 1376 1385 1377 % %------------------------------------------------------------------------ … … 1470 1462 index=get(handles.ActionName,'Value'); 1471 1463 action= list_action{index}; % selected string 1472 %Series.Action=action;%name of the processing programme1473 1464 Series.hseries=handles.series; % handles to the series GUI 1474 1465 path_series=which('series'); … … 1520 1511 end 1521 1512 Series.OutputDirExt=regexprep(SubDirOutNew,Series.OutputSubDir,''); 1522 % Series.OutputSubDir=SubDirOutNew;1523 % Series.OutputDir=fullfile(Series.InputTable{1,1},Series.OutputSubDir);%directory set for output results1524 1513 Series.OutputRootFile=Series.InputTable{1,3};% the first sorted RootFile taken for output 1525 1514 set(handles.OutputDirExt,'String',Series.OutputDirExt) … … 2056 2045 set(handles.PairString,'Unit','normalized') 2057 2046 set(handles.PairString,'ColumnWidth',{Pos(3)-5}) 2047 2048 2049 % --- Executes on button press in status. 2050 function status_Callback(hObject, eventdata, handles) 2051 val=get(handles.status,'Value'); 2052 if val==0 2053 set(handles.status,'BackgroundColor',[0 1 0]) 2054 hfig=findobj(allchild(0),'name','series_status'); 2055 if ~isempty(hfig) 2056 delete(hfig) 2057 end 2058 return 2059 end 2060 set(handles.status,'BackgroundColor',[1 1 0]) 2061 drawnow 2062 % listtype={'civ1','fix1','patch1','civ2','fix2','patch2'}; 2063 % Param.CheckCiv1=get(handles.CheckCiv1,'Value'); 2064 % Param.CheckFix1=get(handles.CheckFix1,'Value'); 2065 % Param.CheckPatch1=get(handles.CheckPatch1,'Value'); 2066 % Param.CheckCiv2=get(handles.CheckCiv2,'Value'); 2067 % Param.CheckFix2=get(handles.CheckFix2,'Value'); 2068 % Param.CheckPatch2=get(handles.CheckPatch2,'Value'); 2069 % box_test=[Param.CheckCiv1 Param.CheckFix1 Param.CheckPatch1 Param.CheckCiv2 Param.CheckFix2 Param.CheckPatch2]; 2070 % 2071 % option_civ=find(box_test,1,'last');%last selected option (non-zero index of box_test) 2072 % filecell=get(handles.civ,'UserData');%retrieve the list of output files expected for PIV 2073 % test_new=0; 2074 % if ~isfield(filecell,'nc') 2075 % test_new=1; 2076 % [ref_i,ref_j,errormsg]=find_ref_indices(handles); 2077 % if ~isempty(errormsg) 2078 % msgbox_uvmat('ERROR',errormsg) 2079 % return 2080 % end 2081 % filecell=set_civ_filenames(handles,ref_i,ref_j,box_test);%determine the output file expected from the GUI status 2082 % end 2083 % if ~isequal(box_test(4:6),[0 0 0]) 2084 % civ_files=filecell.nc.civ2;%case of civ2 operations 2085 % else 2086 % civ_files=filecell.nc.civ1; 2087 % end 2088 hfig=findobj(allchild(0),'name','series_status'); 2089 if isempty(hfig) 2090 hfig=figure('DeleteFcn',@stop_status); 2091 set(hfig,'MenuBar','none')% suppress the menu bar 2092 set(hfig,'NumberTitle','off')%suppress the fig number in the title 2093 set(hfig,'name','series_status') 2094 set(hfig,'tag','series_status') 2095 % set(hfig,'UserData',civ_files) 2096 hlist= uicontrol('Style','listbox','Units','normalized', 'Position',[0.05 0.09 0.9 0.71], 'Callback', {'open_uvmat'},'tag','list'); 2097 uicontrol('Style','edit','Units','normalized', 'Position', [0.05 0.87 0.9 0.1],'tag','msgbox','Max',2,'String','checking files...'); 2098 uicontrol('Style','frame','Units','normalized', 'Position', [0.05 0.81 0.9 0.05]); 2099 uicontrol('Style','pushbutton','Units','normalized', 'Position', [0.7 0.01 0.2 0.07],'String','Close','FontWeight','bold','FontUnits','normalized','FontSize',0.9,'Callback',@close_GUI); 2100 hrefresh=uicontrol('Style','pushbutton','Units','normalized', 'Position', [0.1 0.01 0.2 0.07],'String','Refresh','FontWeight','bold','FontUnits','normalized','FontSize',0.9,'Callback',@refresh_GUI); 2101 BarPosition=[0.05 0.81 0.01 0.05]; 2102 uicontrol('Style','frame','Units','normalized', 'Position',BarPosition ,'BackgroundColor',[1 0 0],'tag','waitbar'); 2103 drawnow 2104 end 2105 StatusData.time_ref=get(handles.RUN,'UserData');% get the time of launch 2106 % StatusData.option_civ=option_civ; 2107 set(hrefresh,'UserData',StatusData) 2108 Param=read_GUI(handles.series); 2109 RootPath=Param.InputTable{1,1}; 2110 SubDir=Param.InputTable{1,2}; 2111 OutputSubDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files 2112 OutputDir=fullfile(RootPath,SubDir,OutputSubDir); 2113 set(hlist,'UserData',OutputDir) 2114 %refresh_GUI(hrefresh,[])
Note: See TracChangeset
for help on using the changeset viewer.