Changeset 364 for trunk/src/civ.m
- Timestamp:
- Jan 10, 2012, 5:06:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r363 r364 257 257 % set(handles.thresh_text1,'Visible','off') 258 258 set(handles.num_MaxDiff,'Visible','off') 259 set(handles.num_Nx,'Visible','on') 260 set(handles.num_Ny,'Visible','on') 261 set(handles.title_Nx,'Visible','on') 262 set(handles.title_Ny,'Visible','on') 259 263 set(handles.title_MaxDiff,'Visible','off') 260 264 set(handles.num_Rho,'Style','edit') … … 272 276 set(handles.num_MaxDiff,'Visible','on') 273 277 set(handles.title_MaxDiff,'Visible','on') 274 275 % end 278 set(handles.num_Nx,'Visible','off') 279 set(handles.num_Ny,'Visible','off') 280 set(handles.title_Nx,'Visible','off') 281 set(handles.title_Ny,'Visible','off') 276 282 set(handles.num_Rho,'Style','popupmenu') 277 283 set(handles.num_Rho,'Value',1) … … 346 352 if strcmp(Data.Conventions,'uvmat/civdata')% case of new civ data, 347 353 set(handles.MenuMatlab,'checked','on') %select civ/Matlab by default 348 set(handles.MenuCivX,'checked','off')354 MenuMatlab_Callback([],[], handles) 349 355 if ~isempty(Data.CivStage)%test for civ files 350 356 ind_opening=Data.CivStage; … … 356 362 end 357 363 elseif ~isempty(Data.absolut_time_T0')% case of civx data, 358 set(handles.Menu Matlab,'checked','off') %select Cix by default359 set(handles.MenuCivX,'checked','on')364 set(handles.MenuCivX,'checked','on') %select Cix by default 365 MenuCivX_Callback([],[], handles) 360 366 if ~isempty(Data.fix2) 361 367 ind_opening=5; … … 575 581 set(handles.(ListOptions{index}),'value',0) 576 582 end 577 for index = ind_opening+1 578 set(handles.(ListOptions{index}),'value',1) 579 end 583 set(handles.(ListOptions{min(ind_opening+1,6)}),'value',1) 584 580 585 update_CivOptions(handles,1) 581 586 … … 1144 1149 [filecell,i1_civ1,i2_civ1,j1_civ1,j2_civ1,i1_civ2,i2_civ2,j1_civ2,j2_civ2,nom_type_nc,xx,yy,compare]=... 1145 1150 set_civ_filenames(handles,ref_i,ref_j,box_test); 1151 1146 1152 Rootbat=fileparts(filecell.nc.civ1{1,1});%output netcdf file (without extention) 1147 1153 set(handles.civ,'UserData',filecell);%store for futur use of status callback … … 2248 2254 if checkbox(4)==0 ; %check the existence of civ2 if it is not calculated 2249 2255 Data=nc2struct(filename,'ListGlobalAttribute','CivStage','civ2'); 2250 if ~isempty(Data.CivStage) && Data.CivStage<4 %test for civ files 2256 if isfield(Data,'Txt') 2257 msgbox_uvmat('ERROR',Data.Txt); 2258 return 2259 elseif ~isempty(Data.CivStage)% case of new civ files 2260 if Data.CivStage<4 %test for civ files 2251 2261 msgbox_uvmat('ERROR',['no civ2 data in ' filename]) 2252 2262 filecell=[]; 2253 2263 return 2264 end 2254 2265 elseif isempty(Data.civ2)||isequal(Data.civ2,0) 2255 2266 msgbox_uvmat('ERROR',['no civ2 data in ' filename])
Note: See TracChangeset
for help on using the changeset viewer.