Changeset 586 for trunk/src/series.m


Ignore:
Timestamp:
Mar 13, 2013, 9:12:09 AM (8 years ago)
Author:
sommeria
Message:

tps_coeff_field introduced and several bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r554 r586  
    13741374set(handles.RUN,'BackgroundColor',[1 0 0])
    13751375set(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 
    13841376
    13851377% %------------------------------------------------------------------------
     
    14701462index=get(handles.ActionName,'Value');
    14711463action= list_action{index}; % selected string
    1472 %Series.Action=action;%name of the processing programme
    14731464Series.hseries=handles.series; % handles to the series GUI
    14741465path_series=which('series');
     
    15201511    end
    15211512    Series.OutputDirExt=regexprep(SubDirOutNew,Series.OutputSubDir,'');
    1522  %   Series.OutputSubDir=SubDirOutNew;
    1523  %   Series.OutputDir=fullfile(Series.InputTable{1,1},Series.OutputSubDir);%directory set for output results
    15241513    Series.OutputRootFile=Series.InputTable{1,3};% the first sorted RootFile taken for output
    15251514    set(handles.OutputDirExt,'String',Series.OutputDirExt)
     
    20562045set(handles.PairString,'Unit','normalized')
    20572046set(handles.PairString,'ColumnWidth',{Pos(3)-5})
     2047
     2048
     2049% --- Executes on button press in status.
     2050function status_Callback(hObject, eventdata, handles)
     2051val=get(handles.status,'Value');
     2052if 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
     2059end
     2060set(handles.status,'BackgroundColor',[1 1 0])
     2061drawnow
     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
     2088hfig=findobj(allchild(0),'name','series_status');
     2089if 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
     2104end
     2105StatusData.time_ref=get(handles.RUN,'UserData');% get the time of launch
     2106% StatusData.option_civ=option_civ;
     2107set(hrefresh,'UserData',StatusData)
     2108Param=read_GUI(handles.series);
     2109RootPath=Param.InputTable{1,1};
     2110SubDir=Param.InputTable{1,2};
     2111OutputSubDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files
     2112OutputDir=fullfile(RootPath,SubDir,OutputSubDir);
     2113set(hlist,'UserData',OutputDir)
     2114%refresh_GUI(hrefresh,[])
Note: See TracChangeset for help on using the changeset viewer.