Changeset 862 for trunk/src/series/civ_input.m
- Timestamp:
- Jan 30, 2015, 8:37:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r861 r862 397 397 %% Civ2 parameters 398 398 Param.Civ2.CorrBoxSize=[21 21]; 399 Param.Civ2.SearchBoxSize=[ 31 31];399 Param.Civ2.SearchBoxSize=[27 27]; 400 400 Param.Civ2.CorrSmooth=1; 401 401 Param.Civ2.Dx=10; … … 539 539 set(handles.ListPairCiv2,'Visible','off') 540 540 end 541 if max(checkbox(1:3))==0 && get(handles.CheckCiv2,'UserData')==6,% no operation asked before Civ2 and input file ready for civ3 541 hseries=findobj(allchild(0),'Tag','series');% find the parent GUI 'series' 542 hhseries=guidata(hseries); %handles of the elements in 'series' 543 InputTable=get(hhseries.InputTable,'Data'); 544 if size(InputTable,1)>=1 && strcmp(InputTable{1,5},'.nc') && max(checkbox(1:3))==0 %&& get(handles.CheckCiv2,'UserData')==6,% no operation asked before Civ2 and input file ready for civ3 542 545 set(handles.CheckCiv3,'Visible','on') 543 546 else … … 573 576 checkeven=(mod(ActionInput.Civ2.CorrBoxSize,2)==0); 574 577 ActionInput.Civ2.CorrBoxSize(checkeven)=ActionInput.Civ2.CorrBoxSize(checkeven)+1;% set correlation box sizes to odd values 575 ActionInput.Civ2.SearchBoxSize=max(ActionInput.Civ2.SearchBoxSize,ActionInput.Civ2.CorrBoxSize+ 6);578 ActionInput.Civ2.SearchBoxSize=max(ActionInput.Civ2.SearchBoxSize,ActionInput.Civ2.CorrBoxSize+4); 576 579 checkeven=(mod(ActionInput.Civ2.SearchBoxSize,2)==0); 577 580 ActionInput.Civ2.SearchBoxSize(checkeven)=ActionInput.Civ2.SearchBoxSize(checkeven)+1;% set search box sizes to odd values … … 1132 1135 % --- Executes on button press in CheckDeformation. 1133 1136 function CheckDeformation_Callback(hObject, eventdata, handles) 1134 set(handles. configSource,'String','NEW')1137 set(handles.ConfigSource,'String','NEW') 1135 1138 set(handles.OK,'BackgroundColor',[1 0 1]) 1136 1139 … … 1751 1754 Param.Action.RUN=1; 1752 1755 Param.ActionInput=read_GUI(handles.civ_input); 1756 if isfield(Param.ActionInput,'Fix1') 1757 Param.ActionInput=rmfield(Param.ActionInput,'Fix1'); 1758 end 1759 if isfield(Param.ActionInput,'Patch1') 1760 Param.ActionInput=rmfield(Param.ActionInput,'Patch1'); 1761 end 1762 if isfield(Param.ActionInput,'Civ2')%remove options that may be selected beyond Patch1 1763 Param.ActionInput=rmfield(Param.ActionInput,'Civ2'); 1764 end 1765 if isfield(Param.ActionInput,'Fix2') 1766 Param.ActionInput=rmfield(Param.ActionInput,'Fix2'); 1767 end 1768 if isfield(Param.ActionInput,'Patch2') 1769 Param.ActionInput=rmfield(Param.ActionInput,'Patch2'); 1770 end 1753 1771 if isfield(Param,'OutputSubDir') 1754 1772 Param=rmfield(Param,'OutputSubDir'); %remove output file option from civ_series … … 1819 1837 Param.Action.RUN=1; 1820 1838 Param.ActionInput=read_GUI(handles.civ_input); 1839 if isfield(Param.ActionInput,'Civ2')%remove options that may be selected beyond Patch1 1840 Param.ActionInput=rmfield(Param.ActionInput,'Civ2'); 1841 end 1842 if isfield(Param.ActionInput,'Fix2') 1843 Param.ActionInput=rmfield(Param.ActionInput,'Fix2'); 1844 end 1845 if isfield(Param.ActionInput,'Patch2') 1846 Param.ActionInput=rmfield(Param.ActionInput,'Patch2'); 1847 end 1821 1848 if isfield(Param,'OutputSubDir') 1822 1849 Param=rmfield(Param,'OutputSubDir'); %remove output file option from civ_series … … 1928 1955 ViewData.PlotAxes.X=Data.Civ2_X'; 1929 1956 ViewData.PlotAxes.Y=Data.Civ2_Y'; 1930 ViewData.PlotAxes.ShiftX=Data.Civ2_U';% shift at each point (from patch1) estimated by runningciv21957 ViewData.PlotAxes.ShiftX=Data.Civ2_U';% shift at each point (from patch1) estimated by the preliminary run of civ2 1931 1958 ViewData.PlotAxes.ShiftY=Data.Civ2_V'; 1932 1959 ViewData.PlotAxes.Civ1_SubRange=Data.Civ1_SubRange; … … 2279 2306 drawnow 2280 2307 end 2281 2282 2283 2284 2285 2286
Note: See TracChangeset
for help on using the changeset viewer.