Changeset 651 for trunk/src/series
- Timestamp:
- Jun 25, 2013, 12:48:10 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r647 r651 56 56 guidata(hObject, handles); % Update handles structure 57 57 set(hObject,'WindowButtonDownFcn',{'mouse_down'}) % allows mouse action with right button (zoom for uicontrol display) 58 SeriesData.ParentHandle=gcbf; 59 SeriesData=get(gcbf,'UserData'); 58 hseries=findobj(allchild(0),'Tag','series'); 59 SeriesData.ParentHandle=hseries; 60 SeriesData=get(hseries,'UserData'); 60 61 % relevant data in gcbf:.FileType,.FileInfo,.Time,.TimeUnit,.GeometryCalib{1}; 61 62 … … 1944 1945 % set(handles.num_FieldSmooth,'Visible','on') 1945 1946 % else 1947 1946 1948 % set(handles.num_subdomainsize,'Visible','off') 1947 1949 % set(handles.num_FieldSmooth,'Visible','off') … … 1955 1957 drawnow 1956 1958 if get(handles.TestCiv1,'Value') 1957 set(handles.TestCiv1,'BackgroundColor',[ 0.7 0.7 0.7])% paint TestCiv1 button to greyto confirm civ launch1959 set(handles.TestCiv1,'BackgroundColor',[1 1 0])% paint TestCiv1 button to yellow to confirm civ launch 1958 1960 ref_i=str2double(get(handles.ref_i,'String'));% read reference i index 1959 1961 if strcmp(get(handles.ref_j,'Visible'),'on') … … 1962 1964 ref_j=1;%default j index 1963 1965 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 indices1966 % [filecell,i1,i2]=set_civ_filenames(handles,ref_i,ref_j,[1 0 0 0 0 0]);% get the corresponding file name and indices 1965 1967 Data.ListVarName={'ny','nx','A'}; 1966 1968 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); 1968 1981 Data.A=imread(filecell.ima1.civ1{1}); % read the first image 1969 1982 if ndims(Data.A)==3 %case of color image
Note: See TracChangeset
for help on using the changeset viewer.