Ignore:
Timestamp:
Jun 26, 2015, 9:20:48 AM (9 years ago)
Author:
sommeria
Message:

job launching procedure modified in series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_input.m

    r910 r918  
    207207    end
    208208end
    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
    225210
    226211%%  transfer the time from the GUI series, or use file index by default
     
    272257%set(handles.CoordUnit,'String',CoordUnit)
    273258set(handles.SearchRange,'UserData', pxcm_search);
    274 
    275 % indicate the min and max indices i and j on the GUI
    276 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))
    280259
    281260
     
    336315    end
    337316end
     317
     318%% set the menu and default choice of civ pairs
     319if ~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)'})
     322elseif  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
     327else
     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
     334end
     335
     336%% indicate the min and max indices i and j on the GUI
     337set(handles.MinIndex_i,'String',num2str(MinIndex_i))
     338set(handles.MaxIndex_i,'String',num2str(MaxIndex_i))
     339set(handles.MinIndex_j,'String',num2str(MinIndex_j))
     340set(handles.MaxIndex_j,'String',num2str(MaxIndex_j))
    338341
    339342%% set the reference indices from the input file indices
     
    968971        index_pair=0;
    969972        %get all the Time intervals in bursts
     973        displ_pair_dt='';
    970974        for numod_a=MinIndex_j:MaxIndex_j-1 %nbfield2 always >=2 for 'pair j1-j2' mode
    971975            for numod_b=(numod_a+1):MaxIndex_j
     
    981985           
    982986        end
     987        if index_pair ~=0
    983988        [tild,indsort]=sort(dt);
    984989        displ_pair=displ_pair(indsort);
    985990        displ_pair_dt=displ_pair_dt(indsort);
     991        end
    986992    case 'displacement'
    987993        displ_pair={'Di=Dj=0'};
     
    14971503    end
    14981504end
    1499 set(hObject,'BackgroundColor',[1 0 1])
    15001505set(handles.ConfigSource,'String','NEW')
    15011506set(handles.OK,'BackgroundColor',[1 0 1])
     1507
    15021508%------------------------------------------------------------------------
    15031509% --- Executes on button press in CheckMask: common to all panels (civ1, Civ2..)
     
    15241530        testmask=1;
    15251531    else % browse for a mask
    1526 %         filemask=get(hObject,'UserData');%look for previous mask name stored as UserData
    1527 %         if exist(filemask,'file')
    1528 %             filebase=filemask;
    1529 %         end
    15301532        filemask= uigetfile_uvmat('pick a mask image file:',InputTable{ind_A,1},'image');
    15311533        set(hObject,'UserData',filemask);%store for future use
Note: See TracChangeset for help on using the changeset viewer.