Changeset 316 for trunk/src/civ.m
- Timestamp:
- Dec 4, 2011, 5:54:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r315 r316 23 23 %TODO: search range 24 24 25 % Last Modified by GUIDE v2.5 0 3-Dec-2011 16:08:2525 % Last Modified by GUIDE v2.5 04-Dec-2011 08:42:47 26 26 % Begin initialization code - DO NOT EDIT 27 27 gui_Singleton = 1; … … 268 268 %set(handles.thresh_patch1,'Visible','off') 269 269 % set(handles.thresh_text1,'Visible','off') 270 %set(handles.num_MaxDiff,'Visible','off')271 % set(handles.thresh_text2,'Visible','off')270 set(handles.num_MaxDiff,'Visible','off') 271 set(handles.title_MaxDiff,'Visible','off') 272 272 set(handles.num_Rho,'Style','edit') 273 273 set(handles.num_Rho,'String','1') … … 281 281 set(handles.MenuMatlab,'checked','on') 282 282 set(handles.MenuCivX,'checked','off') 283 if get(handles.CheckPatch1,'Value') 284 set(handles.thresh_patch1,'Visible','on') 285 set(handles.thresh_text1,'Visible','on') 286 end 287 if get(handles.CheckPatch2,'Value') 288 set(handles.num_MaxDiff,'Visible','on') 289 set(handles.thresh_text2,'Visible','on') 290 end 283 % if get(handles.CheckPatch1,'Value') 284 set(handles.num_MaxDiff,'Visible','on') 285 set(handles.title_MaxDiff,'Visible','on') 286 287 % end 291 288 set(handles.num_Rho,'Style','popupmenu') 292 289 set(handles.num_Rho,'Value',1) … … 868 865 lastfield=''; 869 866 % check the content netcdf file 870 Data=nc2struct(civ_files{ifile},'ListGlobalAttribute','patch2','fix2','civ2','patch','fix'); 871 if ~isempty(Data.patch2) && isequal(Data.patch2,1) 872 option=6; 873 option_str='patch2'; 874 elseif ~isempty(Data.fix2) && isequal(Data.fix2,1) 875 option=5; 876 option_str='fix2'; 877 elseif ~isempty(Data.civ2) && isequal(Data.civ2,1); 878 option=4; 879 option_str='civ2'; 880 elseif ~isempty(Data.patch) && isequal(Data.patch,1); 881 option=3; 882 option_str='patch1'; 883 elseif ~isempty(Data.fix) && isequal(Data.fix,1); 884 option=2; 885 option_str='fix1'; 867 Data=nc2struct(civ_files{ifile},'ListGlobalAttribute','CivStage','patch2','fix2','civ2','patch','fix'); 868 option_list={'civ1','fix1','patch1','civ2','fix2','patch2'}; 869 if ~isempty(Data.CivStage) 870 option=Data.CivStage; 886 871 else 887 option=1; 888 option_str='civ1'; 889 end 872 if ~isempty(Data.patch2) && isequal(Data.patch2,1) 873 option=6; 874 % option_str='patch2'; 875 elseif ~isempty(Data.fix2) && isequal(Data.fix2,1) 876 option=5; 877 % option_str='fix2'; 878 elseif ~isempty(Data.civ2) && isequal(Data.civ2,1); 879 option=4; 880 % option_str='civ2'; 881 elseif ~isempty(Data.patch) && isequal(Data.patch,1); 882 option=3; 883 % option_str='patch1'; 884 elseif ~isempty(Data.fix) && isequal(Data.fix,1); 885 option=2; 886 % option_str='fix1'; 887 else 888 option=1; 889 % option_str='civ1'; 890 end 891 end 892 option_str=option_list{option}; 890 893 end 891 894 if option >= option_civ … … 3717 3720 end 3718 3721 if testmask 3719 stage=1;%default 3720 switch parent_tag 3721 % case 'Fix1' 3722 % stage=2; 3723 case 'Civ2' 3724 stage=3; 3725 % case 'Fix2' 3726 % stage=4; 3727 end 3728 set(handles.txt_Mask(stage:end),'Visible','on') 3729 set(handles.txt_Mask(stage:end),'String',filemask) 3730 set(handles.CheckMask(stage:end),'Value',1) 3722 % stage=4;%default 3723 if strcmp(parent_tag,'Civ1') 3724 set(handles.txt_Mask,'Visible','on') 3725 set(handles.txt_Mask,'String',filemask) 3726 set(handles.CheckMask,'Value',1) 3727 end 3728 % switch parent_tag 3729 % % case 'Fix1' 3730 % % stage=2; 3731 % case 'Civ2' 3732 % stage=3; 3733 % % case 'Fix2' 3734 % % stage=4; 3735 % end 3736 % set(handles.txt_Mask(stage:end),'Visible','on') 3737 % set(handles.txt_Mask(stage:end),'String',filemask) 3738 % set(handles.CheckMask(stage:end),'Value',1) 3731 3739 else 3732 3740 set(hObject,'Value',0); … … 4009 4017 % set(handles.thresh_text1,'Visible','off') 4010 4018 % set(handles.num_MaxDiff,'Visible','off') 4011 % set(handles.t hresh_text2,'Visible','off')4019 % set(handles.title_MaxDiff,'Visible','off') 4012 4020 % set(handles.num_Rho,'Style','edit') 4013 4021 % set(handles.num_Rho,'String','1') … … 4114 4122 filename=regexprep(filename,'.nc',''); 4115 4123 MaskName_string='';%default 4116 if Param.(fixname).CheckMask4117 MaskName_string=[' -maskName "' Param.(fixname).MaskName'"'];4118 end4124 % if Param.(fixname).CheckMask 4125 % MaskName_string=[' -maskName "' Param.(fixname).Mask '"']; 4126 % end 4119 4127 MaxVel_string='';%default 4120 4128 if ~isempty(Param.(fixname).MaxVel)
Note: See TracChangeset
for help on using the changeset viewer.