Ignore:
Timestamp:
Jan 30, 2015, 8:37:03 PM (10 years ago)
Author:
sommeria
Message:

bugs repaired

File:
1 edited

Legend:

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

    r861 r862  
    397397%% Civ2 parameters
    398398Param.Civ2.CorrBoxSize=[21 21];
    399 Param.Civ2.SearchBoxSize=[31 31];
     399Param.Civ2.SearchBoxSize=[27 27];
    400400Param.Civ2.CorrSmooth=1;
    401401Param.Civ2.Dx=10;
     
    539539    set(handles.ListPairCiv2,'Visible','off')
    540540end
    541 if max(checkbox(1:3))==0 && get(handles.CheckCiv2,'UserData')==6,% no operation asked before Civ2 and input file ready for civ3
     541hseries=findobj(allchild(0),'Tag','series');% find the parent GUI 'series'
     542hhseries=guidata(hseries); %handles of the elements in 'series'
     543InputTable=get(hhseries.InputTable,'Data');
     544if 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
    542545    set(handles.CheckCiv3,'Visible','on')
    543546else
     
    573576    checkeven=(mod(ActionInput.Civ2.CorrBoxSize,2)==0);
    574577    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);
    576579    checkeven=(mod(ActionInput.Civ2.SearchBoxSize,2)==0);
    577580    ActionInput.Civ2.SearchBoxSize(checkeven)=ActionInput.Civ2.SearchBoxSize(checkeven)+1;% set search box sizes to odd values
     
    11321135% --- Executes on button press in CheckDeformation.
    11331136function CheckDeformation_Callback(hObject, eventdata, handles)
    1134 set(handles.configSource,'String','NEW')
     1137set(handles.ConfigSource,'String','NEW')
    11351138set(handles.OK,'BackgroundColor',[1 0 1])
    11361139
     
    17511754     Param.Action.RUN=1;
    17521755     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
    17531771     if isfield(Param,'OutputSubDir')
    17541772     Param=rmfield(Param,'OutputSubDir'); %remove output file option from civ_series
     
    18191837     Param.Action.RUN=1;
    18201838     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
    18211848     if isfield(Param,'OutputSubDir')
    18221849     Param=rmfield(Param,'OutputSubDir'); %remove output file option from civ_series
     
    19281955    ViewData.PlotAxes.X=Data.Civ2_X';
    19291956    ViewData.PlotAxes.Y=Data.Civ2_Y';
    1930     ViewData.PlotAxes.ShiftX=Data.Civ2_U';% shift at each point (from patch1) estimated by running civ2
     1957    ViewData.PlotAxes.ShiftX=Data.Civ2_U';% shift at each point (from patch1) estimated by the preliminary run of civ2
    19311958    ViewData.PlotAxes.ShiftY=Data.Civ2_V';
    19321959    ViewData.PlotAxes.Civ1_SubRange=Data.Civ1_SubRange;
     
    22792306    drawnow
    22802307end
    2281 
    2282 
    2283 
    2284 
    2285 
    2286 
Note: See TracChangeset for help on using the changeset viewer.