Changeset 1200 for trunk/src/series.m


Ignore:
Timestamp:
Mar 20, 2026, 4:42:36 PM (22 hours ago)
Author:
sommeria
Message:

bug repaired for civ image rescale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r1199 r1200  
    165165RunModeList={'local';'background'}; % default choice of extensions (Matlab fct .m or compiled version .sh)
    166166if isfield(SeriesData.ClusterParam, 'ExistenceTest')
    167     oarcommand=SeriesData.ClusterParam.ExistenceTest;
    168     s=system(oarcommand); % look for cluster system presence
     167    ClusterExistenceTest=SeriesData.ClusterParam.ExistenceTest;
     168    disp('look for cluster command available')
     169    s=system(ClusterExistenceTest); % look for cluster system presence
    169170    if isequal(s,0)% cluster detected
    170171        RunModeList=[RunModeList;{'cluster'}];
     
    568569%------------------------------------------------------------------------
    569570CheckRelabel=get(handles.Relabel,'Value');
    570 check_input_file_series(handles,CheckRelabel)
    571 
    572 %% enable field and veltype menus, in accordance with the current action
     571errormsg=check_input_file_series(handles,CheckRelabel);
     572if ~isempty(errormsg)
     573    msgbox_uvmat('ERROR',errormsg);% no input files entered
     574    set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH  back to red color
     575    return
     576end
     577
     578%% enable field and veltype menus, in accordance with the current action function
    573579ActionInput_Callback([],[], handles)
    574580
    575581%------------------------------------------------------------------------
    576582% --- check the input file series.
    577 function check_input_file_series(handles,CheckRelabel)
     583function errormsg=check_input_file_series(handles,CheckRelabel)
    578584%------------------------------------------------------------------------
    579585InputTable=get(handles.InputTable,'Data');%read the table of input file series
    580586set(handles.series,'Pointer','watch') % set the mouse pointer to 'watch'
    581587set(handles.REFRESH,'BackgroundColor',[1 1 0])% set REFRESH  button to yellow color (indicate activation)
    582 set(handles.Relabel,'BackgroundColor',[0 1 0])
    583588drawnow
    584 empty_line=false(size(InputTable,1),1);
     589errormsg='';%default
     590
     591%% removes possible  empty lines in the tables documenting the files index series
     592check_empty_line=false(size(InputTable,1),1);
    585593for iline=1:size(InputTable,1)
    586     empty_line(iline)= isempty(cell2mat(InputTable(iline,1:3)));%check the empty lines in the input table
    587 end
    588 if ~isempty(find(empty_line,1))%removes the empty lines in the table
    589     InputTable(empty_line,:)=[]; % remove empty lines
     594    check_empty_line(iline)= isempty(cell2mat(InputTable(iline,1:3)));%check the empty lines in the input table
     595end
     596empty_lines=find(check_empty_line);%line indices which are empty
     597if numel(empty_lines)==size(InputTable,1)
     598   errormsg='input files needed';% no input files
     599    return
     600end
     601if ~isempty(empty_lines)
     602    InputTable(empty_lines,:)=[]; % remove empty lines
    590603    set(handles.InputTable,'Data',InputTable)
    591604    ListTable={'MinIndex_i','MaxIndex_i','MinIndex_j','MaxIndex_j','PairString','TimeTable'};
    592605    for ilist=1:numel(ListTable)
    593606        Table=get(handles.(ListTable{ilist}),'Data');
    594         Table(empty_line,:)=[]; % remove empty lines
     607        Table(empty_lines,:)=[]; % remove empty lines
    595608        set(handles.(ListTable{ilist}),'Data',Table);
    596609    end
    597610    set(handles.series,'UserData',[])%refresh the stored info
    598611end
    599 nbview=size(InputTable,1);
    600 CheckRelabelQuest=false;
     612nbview=size(InputTable,1);% number of lines filled in the Input file table after this cleaning of empty lines
     613
     614%% get info on each line of the input table
     615CheckRelabelQuest=true;% will ask for relabeling if relevant
    601616for iview=1:nbview
    602     RootPath=fullfile(InputTable{iview,1},InputTable{iview,2});
    603     Param.Relabel=false;
     617    RootPath=fullfile(InputTable{iview,1},InputTable{iview,2});% path of the input file series
     618    Param.Relabel=false;% no relabeling by default
    604619    MovieObject=[];
    605620    Param.FileInfo=[];
    606621    if ~exist(RootPath,'dir')
    607622        Param.i1_series=[];
    608         RootFile='';
     623        RootFile='';% input folder does not exist, will ask by browser
    609624    else
    610         [XmlFileName,Rank]=find_imadoc(InputTable{iview,1},InputTable{iview,2});
     625        [XmlFileName,Rank]=find_imadoc(InputTable{iview,1},InputTable{iview,2});%look for ImaDoc file
    611626        if ~isempty(XmlFileName)
    612             XmlData=read_imadoc(XmlFileName);
    613             if  Rank==0 && ~isempty(XmlData.FileSeries)
    614                 set(handles.Relabel,'Visible','on')
     627            XmlData=read_imadoc(XmlFileName);%read the imadoc file through the local fct read_imadoc
     628            if  Rank==0 && ~isempty(XmlData.FileSeries)% file relabeling proposed in the xml file
     629                set(handles.Relabel,'Visible','on')% make the relabel check box visible
    615630                answer='Yes';
    616                 if ~CheckRelabel && ~CheckRelabelQuest% propose to relabel if not selected yet
     631                if ~CheckRelabel && CheckRelabelQuest% propose to relabel if not selected yet
    617632                    answer=msgbox_uvmat('INPUT_Y-N','relabel the frame  indices according to the xml info?');
    618                     CheckRelabelQuest=true;
     633                    CheckRelabelQuest=false;% will validate the answer for all lines
    619634                end
    620                 if strcmp(answer,'Yes')
    621                     set(handles.Relabel,'Value',1)
     635                if strcmp(answer,'Yes')% relabel option activated
     636                    set(handles.Relabel,'Value',1)% activate the relabel option
     637                    CheckRelabel=true;
    622638                    NomType='*';
    623639                    i1=1;i2=[];j1=1;j2=[];
     
    633649                    FirstFile=fullfile(InputTable{iview,1},InputTable{iview,2},XmlData.FileSeries.FileName{1});
    634650                    if ~exist(FirstFile,'file')
    635                         msgbox_uvmat('ERROR',[FirstFile ' does not exist']);
     651                        errormsg=[FirstFile ' set by the xml file does not exist'];
    636652                        return
    637653                    end
    638                     [Param.FileInfo,VideoObject]=get_file_info(FirstFile);
     654                    Param.FileInfo=get_file_info(FirstFile);
    639655                else
    640                     set(handles.Relabel,'Value',0)
     656                    set(handles.Relabel,'Value',0) % suppress the relabel option
    641657                end
    642658            end
     
    647663        %scan the input folder
    648664        InputTable{iview,3}=regexprep(InputTable{iview,3},'^/','');%suppress '/' at the beginning of the input name
    649         i1=str2double(get(handles.num_first_i,'String'));
    650         j1=str2double(get(handles.num_first_j,'String'));
    651         j2=[];%default
    652 %         PairString=get(handles.PairString,'Data');
    653 %         if numel(PairString)>=iview
    654 %             r=regexp(PairString{iview},'(?<num1>\d+)-(?<num2>\d+)' ,'names');
    655 %             if ~isempty(r)
    656 %                 j1=str2double(r.num1);
    657 %                 j2=str2double(r.num2);
    658 %             end
    659 %         end
    660  InputFile=[InputTable{iview,3} InputTable{iview,4} InputTable{iview,5}];
    661         %InputFile=fullfile_uvmat('','',InputTable{iview,3},InputTable{iview,5},InputTable{iview,4},i1,[],j1,j2);
     665        InputFile=[InputTable{iview,3} InputTable{iview,4} InputTable{iview,5}];
    662666        [RootPath,~,RootFile,Param.i1_series,Param.i2_series,Param.j1_series,Param.j2_series,~,Param.FileInfo,MovieObject]=...
    663667            find_file_series(fullfile(InputTable{iview,1},InputTable{iview,2}),InputFile);
    664668    end
    665669
    666     % if no file is found on line #ivew, open a browser
     670    % if no file is found on line #iview, open a browser
    667671    if ~Param.Relabel && isempty(RootFile)&& isempty(Param.i1_series)
    668672        fileinput=uigetfile_uvmat(['wrong input at line ' num2str(iview) ':pick a new input file'],RootPath);
    669673        if isempty(fileinput)
    670             set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH  back to red color
     674            errormsg='no input file entered';
    671675            return
    672676        else
    673             display_file_name(handles,fileinput,iview)% update the table of input file series, then call update_rootinfo
     677            display_file_name(handles,fileinput,iview)% update the table of input file series #iview, then will call update_rootinfo
    674678        end
    675679    else
     
    678682end
    679683
    680 %% update MinIndex_i and MaxIndex_i if the input table content has been reduced in line nbre
     684%% suppress possible remaining data beyond nbview lines in MinIndex_i, MaxIndex_i ,MinIndex_j, MaxIndex_j,PairString,TimeTable
    681685MinIndex_i_table=get(handles.MinIndex_i,'Data'); % retrieve the min indices in the table MinIndex
    682 set(handles.MinIndex_i,'Data',MinIndex_i_table(1:nbview,:));
     686set(handles.MinIndex_i,'Data',MinIndex_i_table(1:nbview)); % save only the nbviews values, remove possible values beyond
     687
    683688MinIndex_j_table=get(handles.MinIndex_j,'Data'); % retrieve the min indices in the table MinIndex
    684 set(handles.MinIndex_j,'Data',MinIndex_j_table(1:nbview,:));
    685 MaxIndex_i_table=get(handles.MaxIndex_i,'Data'); % retrieve the min indices in the table MinIndex
    686 
    687 set(handles.MaxIndex_i,'Data',MaxIndex_i_table(1:nbview,:));
     689set(handles.MinIndex_j,'Data',MinIndex_j_table(1:nbview));
     690
     691MaxIndex_i_table=get(handles.MaxIndex_i,'Data'); % retrieve the max indices in the table MinIndex
     692set(handles.MaxIndex_i,'Data',MaxIndex_i_table(1:nbview));
     693
    688694MaxIndex_j_table=get(handles.MaxIndex_j,'Data'); % retrieve the min indices in the table MinIndex
    689 set(handles.MaxIndex_j,'Data',MaxIndex_j_table(1:nbview,:));
     695set(handles.MaxIndex_j,'Data',MaxIndex_j_table(1:nbview));
     696
    690697PairString=get(handles.PairString,'Data'); % retrieve the min indices in the table MinIndex
    691 set(handles.PairString,'Data',PairString(1:nbview,:));
     698set(handles.PairString,'Data',PairString(1:nbview));
     699
    692700TimeTable=get(handles.TimeTable,'Data'); % retrieve the min indices in the table MinIndex
    693701set(handles.TimeTable,'Data',TimeTable(1:nbview,:));
    694702
    695 
    696703set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH  button to red color (indicate activation finished)
    697704set(handles.series,'Pointer','arrow') % set the mouse pointer to 'watch'
    698 
    699705
    700706
     
    750756XmlData=[];
    751757if ~isempty(XmlFileName)
    752     XmlData=read_imadoc(XmlFileName);
     758    XmlData=read_imadoc(XmlFileName);%read the imadoc file through the local fct read_imadoc
    753759    if isfield(XmlData,'FileSeries') && Rank==0
    754760        set(handles.Relabel,'Visible','on')
     
    925931    SeriesData.InputPath=InputPath;
    926932end
    927 
    928 
    929933set(handles.series,'UserData',SeriesData)
    930 
    931934set(handles.InputTable,'BackgroundColor',[1 1 1])
    932 
    933 
    934935
    935936%% initiate input file series and refresh the current field view:
     
    947948% --- get info from the xml file XmlFileName
    948949function XmlData=read_imadoc(XmlFileName)
    949 
     950%------------------------------------------------------------------------
    950951[XmlData,errormsg]=imadoc2struct(XmlFileName);
    951952if ~isempty(errormsg)
     
    10111012    if isempty(i1_series)
    10121013        MinIndex_j=1;MaxIndex_j=1;MinIndex_i=1;MaxIndex_i=1;
    1013     elseif size(i1_series,2)==2 && min(min(i1_series(:,1,:)))==0
     1014    elseif size(i1_series,2)==2 && min(min(i1_series(:,1,:)))==0 % file series with a single index i
    10141015        MinIndex_j=1; % index j set to 1 by default
    10151016        MaxIndex_j=1;
     
    10261027        diff_i_max=diff(ref_i);
    10271028        if ~isempty(diff_i_max) && isequal (diff_i_max,diff_i_max(1)*ones(size(diff_i_max)))
    1028             set(handles.num_incr_i,'String',num2str(diff_i_max(1)))% detect an increment to dispaly by default
     1029            set(handles.num_incr_i,'String',num2str(diff_i_max(1)))% detect an increment to display by default
    10291030        end
    10301031        if ~isempty(diff_j_max) && isequal (diff_j_max,diff_j_max(1)*ones(size(diff_j_max)))
     
    10781079        InputTable=get(handles.InputTable,'Data');
    10791080        [XmlFileName,Rank]=find_imadoc(InputTable{iview,1},InputTable{iview,2});
    1080         if isempty(XmlFileName)
    1081             return
    1082         else
     1081        if ~isempty(XmlFileName)
    10831082            Param.XmlData=read_imadoc(XmlFileName);
    1084         end
    1085         [nbfield,nbfield_j]=size(Param.XmlData.Time);
    1086         nbfield=nbfield-1; %remove the possible index 0
    1087         nbfield_j=nbfield_j-1; %remove the possible index 0
    1088 %         MaxIndex_i=get(handles.MaxIndex_i,'Data');
    1089 %         MaxIndex_j=get(handles.MaxIndex_j,'Data');
    1090 %         MaxIndex_i(1,:)=nbfield;
    1091 %         MaxIndex_j(1,:)=nbfield_j;
    1092 %         MinIndex_i(1,:)=1;
    1093 %         MinIndex_j(1,:)=1;
    1094          MaxIndex_i=nbfield;
    1095          MaxIndex_j=nbfield_j;
    1096          MinIndex_i=1;
    1097          MinIndex_j=1;
    1098 
     1083            [nbfield,nbfield_j]=size(Param.XmlData.Time);
     1084            nbfield=nbfield-1; %remove the possible index 0
     1085            nbfield_j=nbfield_j-1; %remove the possible index 0
     1086            MaxIndex_i=nbfield;
     1087            MaxIndex_j=nbfield_j;
     1088            MinIndex_i=1;
     1089            MinIndex_j=1;
     1090        end
    10991091
    11001092        first_i=str2double(get(handles.num_first_i,'String'));
     
    11151107
    11161108%% determine the min and max times: case of Netcdf files will be treated later in FieldName_Callback
    1117 if ~isempty(TimeName)
     1109if isempty(TimeName)
     1110    TimeMin=NaN;    TimeMax=NaN;  TimeFirst=NaN;    TimeLast=NaN;
     1111else
    11181112    if size(Time)<[MaxIndex_i+1 MaxIndex_j+1]
    1119         msgbox_uvmat('WARNING',['incomplete time info in xml file']);
     1113        msgbox_uvmat('WARNING','incomplete time info in xml file');
    11201114    end
    11211115    TimeMin=Time(MinIndex_i+1,MinIndex_j+1);
     
    11431137set(handles.MaxIndex_j,'Data',MaxIndex_j_table)%display the max indices in the table MaxIndex
    11441138
    1145 if isfield(Param.XmlData,'NbSlice') && ~isempty(Param.XmlData.NbSlice)
     1139if isfield(Param,'XmlData') && isfield(Param.XmlData,'NbSlice') && ~isempty(Param.XmlData.NbSlice)
    11461140    set(handles.num_NbSlice,'String',num2str(Param.XmlData.NbSlice))
    11471141    set(handles.num_NbSlice,'Visible','on')
     
    12231217SeriesData.j1_series{iview}=j1_series;
    12241218SeriesData.j2_series{iview}=j2_series;
    1225 %     SeriesData.FileType{iview}=FileInfo.FileType;
    12261219SeriesData.FileInfo{iview}=Param.FileInfo;
    12271220SeriesData.Time{iview}=Time;
     
    18821875        drawnow
    18831876    end
    1884     if get(handles.Replicate,'Value')
     1877    if get(handles.Replicate,'Value')%resset the input file settings in case of replicated processing
    18851878        set(handles.InputTable,'Data',Param.InputTable)
    18861879        set(handles.OutputPath,'String',OutputPath)
     
    24162409%------------------------------------------------------------------------
    24172410% --- read parameters from the GUI series
    2418 %------------------------------------------------------------------------
    24192411function Param=read_GUI_series(handles)
    2420 
    2421 %% read raw parameters from the GUI series
     2412%------------------------------------------------------------------------
     2413
     2414% read raw parameters from the GUI series
    24222415Param=read_GUI(handles.series);
    24232416
     
    25592552set(handles.num_CPUTime,'String','')
    25602553
     2554%------------------------------------------------------------------------
    25612555% --- Executes on button press in ActionInput.
    25622556function ActionInput_Callback(hObject, eventdata, handles)
     2557%------------------------------------------------------------------------
    25632558
    25642559set(handles.ActionInput,'BackgroundColor',[1 1 0])
     
    30933088end
    30943089
    3095 
     3090%------------------------------------------------------------------------
    30963091function [TimeValue,DtValue]=get_time(ref_i,ref_j,PairString,InputTable,FileInfo,TimeName,DtName)
     3092%------------------------------------------------------------------------
    30973093[i1,i2,j1,j2] = get_file_index(ref_i,ref_j,PairString);
    30983094FileName=fullfile_uvmat(InputTable{1},InputTable{2},InputTable{3},InputTable{5},InputTable{4},i1,i2,j1,j2);
     
    31823178end
    31833179
    3184 
    3185 %%%%%%%%%%%%%
     3180%------------------------------------------------------------------------
    31863181function [ind_remove]=find_pairs(dirpair,ind_i,last_i)
     3182%------------------------------------------------------------------------
    31873183indsel=ind_i;
    31883184indiff=diff(ind_i); % test index increment to detect multiplets (several pairs with the same index ind_i) and holes in the series
     
    33073303%------------------------------------------------------------------------
    33083304% --- Executes on button press in ViewObject.
    3309 %------------------------------------------------------------------------
    33103305function ViewObject_Callback(hObject, eventdata, handles)
     3306%------------------------------------------------------------------------
    33113307
    33123308UserData=get(handles.series,'UserData');
     
    33603356%------------------------------------------------------------------------
    33613357% --- Executed when CheckMask is activated
    3362 %------------------------------------------------------------------------
    33633358function CheckMask_Callback(hObject, eventdata, handles)
     3359%------------------------------------------------------------------------
    33643360% SeriesData=get(handles.series,'UserData');
    33653361
     
    34843480%------------------------------------------------------------------------
    34853481% --- Executes when selected cell(s) is changed in MaskTable.
    3486 %------------------------------------------------------------------------
    34873482function MaskTable_CellSelectionCallback(hObject, eventdata, handles)
    3488 
     3483%------------------------------------------------------------------------
    34893484if numel(eventdata.Indices)>=1
    34903485set(handles.ListMask,'Value',eventdata.Indices(1))
     
    34943489function MenuHelp_Callback(hObject, eventdata, handles)
    34953490%-------------------------------------------------------------------
    3496 
    3497 
    3498 % path_to_uvmat=which ('uvmat'); % check the path of uvmat
    3499 % pathelp=fileparts(path_to_uvmat);
    3500 % helpfile=fullfile(pathelp,'uvmat_doc','uvmat_doc.html');
    3501 % if isempty(dir(helpfile)), msgbox_uvmat('ERROR','Please put the help file uvmat_doc.html in the sub-directory /uvmat_doc of the UVMAT package')
    3502 % else
    3503 %     addpath (fullfile(pathelp,'uvmat_doc'))
    3504 %     web([helpfile '#series'])
    3505 % end
     3491web('https://legi.gricad-pages.univ-grenoble-alpes.fr/soft/uvmat-doc/help')
    35063492
    35073493%-------------------------------------------------------------------
     
    35803566%------------------------------------------------------------------------
    35813567% --- fct activated by the upper bar menu ExportConfig
    3582 %------------------------------------------------------------------------
    35833568function MenuDisplayConfig_Callback(hObject, eventdata, handles)
    3584 
     3569%------------------------------------------------------------------------
    35853570global Param
    35863571Param=read_GUI_series(handles);
    35873572evalin('base','global Param')%make CurData global in the workspace
    3588 display('current series config :')
     3573disp('current series config :')
    35893574evalin('base','Param') %display CurData in the workspace
    35903575commandwindow; % brings the Matlab command window to the front
     
    35953580%------------------------------------------------------------------------
    35963581function MenuImportConfig_Callback(hObject, eventdata, handles)
     3582%------------------------------------------------------------------------
    35973583
    35983584%% use a browser to choose the xml file containing the processing config
     
    36683654
    36693655%------------------------------------------------------------------------
    3670 % --- Executes when the GUI series is resized.
    3671 %------------------------------------------------------------------------
     3656% --- Executes when the GUI series is resized.-
    36723657function series_ResizeFcn(hObject, eventdata, handles)
    3673 
    3674 %% input table
     3658%------------------------------------------------------------------------
     3659
     3660% input table
    36753661set(handles.InputTable,'Unit','pixel')
    36763662Pos=get(handles.InputTable,'Position');
     
    37133699set(handles.PairString,'ColumnWidth',{Pos(3)-5})
    37143700
    3715 %% MaskTable
    3716 % % set(handles.MaskTable,'Unit','pixel')
    3717 % % Pos=get(handles.MaskTable,'Position');
    3718 % % set(handles.MaskTable,'Unit','normalized')
    3719 % % set(handles.MaskTable,'ColumnWidth',{Pos(3)-5})
    3720 
    3721 %------------------------------------------------------------------------
    3722 % --- Executes on button press in status.
    3723 %------------------------------------------------------------------------
     3701%------------------------------------------------------------------------
     3702% --- Executes on button press in status.-
    37243703function status_Callback(hObject, eventdata, handles)
    3725 
     3704%------------------------------------------------------------------------
    37263705if get(handles.status,'Value')
    37273706    set(handles.status,'BackgroundColor',[1 1 0])
     
    37523731end
    37533732
    3754 
    37553733%------------------------------------------------------------------------
    37563734% launched by selecting a file on the list
    3757 %------------------------------------------------------------------------
    37583735function view_file(hObject, eventdata)
    3759 
     3736%------------------------------------------------------------------------
    37603737list=get(hObject,'String');
    37613738index=get(hObject,'Value');
     
    37943771end
    37953772
    3796 
    37973773%------------------------------------------------------------------------
    37983774% launched by refreshing the status figure
    3799 %------------------------------------------------------------------------
    38003775function refresh_GUI(hfig)
    3801 
     3776%------------------------------------------------------------------------
    38023777htitlebox=findobj(hfig,'tag','titlebox');
    38033778hlist=findobj(hfig,'tag','list');
     
    38583833%------------------------------------------------------------------------
    38593834% --- Executes on selection change in ActionExt.
    3860 %------------------------------------------------------------------------
    38613835function ActionExt_Callback(hObject, eventdata, handles)
    3862 
     3836%------------------------------------------------------------------------
    38633837ActionExtList=get(handles.ActionExt,'String');
    38643838ActionExt=ActionExtList{get(handles.ActionExt,'Value')};
     
    39123886menu=menu(imin:imax);
    39133887
    3914 
    3915 % --- Executes on mouse motion over figure - except title and menu.
    3916 % function series_WindowButtonMotionFcn(hObject, eventdata, handles)
    3917 % set(hObject,'Pointer','arrow');
    3918 
    3919 
     3888%------------------------------------------------------------------------
    39203889% --- Executes on button press in SetPairs.
    39213890function SetPairs_Callback(hObject, eventdata, handles)
    3922 
     3891%------------------------------------------------------------------------
    39233892%% delete previous occurrence of 'set_pairs'
    39243893hfig=findobj(allchild(0),'Tag','set_pairs');
     
    40063975%------------------------------------------------------------------------
    40073976function ListView_Callback(hObject,eventdata)
     3977%------------------------------------------------------------------------
    40083978Mode_Callback(hObject,eventdata)
    40093979
    40103980%------------------------------------------------------------------------
    40113981function Mode_Callback(hObject,eventdata)
     3982%------------------------------------------------------------------------
    40123983%% get input info
    40133984hseries=findobj(allchild(0),'tag','series'); % handles of the GUI series
     
    40253996
    40263997%% enable j index visibility after the new choice
    4027 
    40283998if strcmp(mode,'series(Dj)')
    40293999   status_j='on'; % default
     
    40734043set(hPairString,'Data',PairString)
    40744044
    4075 
    40764045%------------------------------------------------------------------------
    40774046function num_ref_i_Callback(hObject, eventdata)
     
    40894058delete(get(hObject,'parent'))
    40904059
    4091 
    40924060%------------------------------------------------------------------------
    40934061% --- Executes on button press in ClearLine.
    4094 %------------------------------------------------------------------------
    40954062function ClearLine_Callback(hObject, eventdata, handles)
     4063%------------------------------------------------------------------------
    40964064InputTable=get(handles.InputTable,'Data');
    40974065iline=str2double(get(handles.InputLine,'String'));
     
    41024070set(handles.REFRESH,'BackgroundColor',[1 0 1])% set REFRESH button to magenta color to indicate that input refr
    41034071
    4104 
     4072%------------------------------------------------------------------------
    41054073% --- Executes on button press in MonitorCluster.
    41064074function MonitorCluster_Callback(hObject, eventdata, handles)
    4107 
     4075%------------------------------------------------------------------------
    41084076[rr,ss]=system('oarstat |grep N=UVmat');% check the list of jobs launched with uvmat
    41094077if isempty(ss)
     
    41144082end
    41154083
    4116 
     4084%------------------------------------------------------------------------
    41174085function OutputSubDir_Callback(hObject, eventdata, handles)
     4086%------------------------------------------------------------------------
    41184087set(handles.OutputSubDir,'BackgroundColor',[1 1 1])
    41194088
     
    41244093% --- Executes on button press in TestCPUTime.
    41254094function TestCPUTime_Callback(hObject, eventdata, handles)
    4126 % hObject    handle to TestCPUTime (see GCBO)
    4127 % eventdata  reserved - to be defined in a future version of MATLAB
    4128 % handles    structure with handles and user data (see GUIDATA)
    4129 
    4130 
     4095
     4096%------------------------------------------------------------------------
    41314097% --- Executes on button press in DiskQuota.
    41324098function DiskQuota_Callback(hObject, eventdata, handles)
     4099%------------------------------------------------------------------------
    41334100SeriesData=get(handles.series,'UserData');
    41344101system(SeriesData.DiskQuotaCmd)
    41354102
    4136 
     4103%------------------------------------------------------------------------
    41374104% --- Executes on button press in Replicate.
    41384105function Replicate_Callback(hObject, eventdata, handles)
     4106%------------------------------------------------------------------------
    41394107if get(handles.Replicate,'Value')
    41404108    InputTable=get(handles.InputTable,'Data');
     
    41594127function Device_Callback(hObject, eventdata, handles)
    41604128
    4161 
     4129%------------------------------------------------------------------------
    41624130% --- Executes on button press in OutputPathBrowse.
    41634131function OutputPathBrowse_Callback(hObject, eventdata, handles)
     4132%------------------------------------------------------------------------
    41644133CheckValue=get(handles.OutputPathBrowse,'Value');
    41654134if CheckValue
     
    41714140end
    41724141
    4173 
     4142%------------------------------------------------------------------------
    41744143% --- Executes on button press in DeleteMask.
    41754144function DeleteMask_Callback(hObject, eventdata, handles)
     4145%------------------------------------------------------------------------
    41764146set(handles.MaskTable,'Data',{})
    41774147
    4178 
     4148%------------------------------------------------------------------------
    41794149% --- Executes on button press in Relabel.
    41804150function Relabel_Callback(hObject, eventdata, handles)
     4151%------------------------------------------------------------------------
    41814152CheckRelabel=get(hObject,'Value');
    41824153if CheckRelabel
     
    41954166    end
    41964167end
    4197 check_input_file_series(handles,CheckRelabel)
    4198 ActionInput_Callback([],[], handles)
    4199 
    4200 
     4168check_input_file_series(handles,CheckRelabel)% check the min and max relabeled indices, or original ones if CheckRelabel=false
     4169ActionInput_Callback([],[], handles)% %% enable menus (field, vel type,...), in accordance with the current action function
     4170
     4171
Note: See TracChangeset for help on using the changeset viewer.