Changeset 651 for trunk/src/series


Ignore:
Timestamp:
Jun 25, 2013, 12:48:10 AM (11 years ago)
Author:
sommeria
Message:

various bugs corrected. Introduction of campaign lists in Open menu

File:
1 edited

Legend:

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

    r647 r651  
    5656guidata(hObject, handles); % Update handles structure
    5757set(hObject,'WindowButtonDownFcn',{'mouse_down'}) % allows mouse action with right button (zoom for uicontrol display)
    58 SeriesData.ParentHandle=gcbf;
    59 SeriesData=get(gcbf,'UserData');
     58hseries=findobj(allchild(0),'Tag','series');
     59SeriesData.ParentHandle=hseries;
     60SeriesData=get(hseries,'UserData');
    6061% relevant data in gcbf:.FileType,.FileInfo,.Time,.TimeUnit,.GeometryCalib{1};
    6162
     
    19441945%     set(handles.num_FieldSmooth,'Visible','on')
    19451946% else
     1947
    19461948%     set(handles.num_subdomainsize,'Visible','off')
    19471949%     set(handles.num_FieldSmooth,'Visible','off')
     
    19551957drawnow
    19561958if get(handles.TestCiv1,'Value')
    1957     set(handles.TestCiv1,'BackgroundColor',[0.7 0.7 0.7])% paint TestCiv1 button to grey to confirm civ launch
     1959    set(handles.TestCiv1,'BackgroundColor',[1 1 0])% paint TestCiv1 button to yellow to confirm civ launch
    19581960    ref_i=str2double(get(handles.ref_i,'String'));% read reference i index
    19591961    if strcmp(get(handles.ref_j,'Visible'),'on')
     
    19621964        ref_j=1;%default j index
    19631965    end
    1964     [filecell,i1,i2]=set_civ_filenames(handles,ref_i,ref_j,[1 0 0 0 0 0]);% get the corresponding file name and indices
     1966   % [filecell,i1,i2]=set_civ_filenames(handles,ref_i,ref_j,[1 0 0 0 0 0]);% get the corresponding file name and indices
    19651967    Data.ListVarName={'ny','nx','A'};
    19661968    Data.VarDimName= {'ny','nx',{'ny','nx'}};
    1967 
     1969    hseries=findobj(allchild(0),'Tag','series');
     1970    hhseries=guidata(hseries);
     1971    InputTable=get(hhseries.InputTable,'Data');
     1972    ind_A=1;
     1973    if strcmp(InputTable{1,5},'.nc');
     1974        ind_A=2;
     1975    end
     1976    [i1_series_Civ1,i2_series_Civ1,j1_series_Civ1,j2_series_Civ1,check_bounds,NomTypeNc]=...
     1977            find_pair_indices(PairCiv1,i_series{1},j_series{1},MinIndex_i,MaxIndex_i,MinIndex_j,MaxIndex_j);
     1978 
     1979    ImageName_A=fullfile_uvmat(InputTable{ind_A,1},InputTable{ind_A,2},InputTable{ind_A,3},InputTable{ind_A,5},InputTable{ind_A,4},...
     1980        ref_i,[],ref_j);
    19681981    Data.A=imread(filecell.ima1.civ1{1}); % read the first image
    19691982    if ndims(Data.A)==3 %case of color image
Note: See TracChangeset for help on using the changeset viewer.