Changeset 248 for trunk/src/civ.m
- Timestamp:
- May 9, 2011, 12:32:20 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r246 r248 2152 2152 Param.Patch1.SubDomain=subdomain_patch1; 2153 2153 end 2154 if box_test(4)==1 2155 Param.Civ2=par_civ2; 2156 end 2154 2157 [Data,erromsg]=civ_uvmat(Param,filecell.nc.civ1{ifile,j}); 2155 2158 if isempty(errormsg) … … 2705 2708 if ~testdiff % civ2 or patch2 are written in the same file as civ1 2706 2709 if box_test(4)==0 ; %check the existence of civ2 if it is not calculated 2707 Data=nc2struct(filename,'ListGlobalAttribute','civ2'); 2708 if isempty(Data.civ2)||isequal(Data.civ2,0) 2710 Data=nc2struct(filename,'ListGlobalAttribute','CivStage','civ2'); 2711 if ~isempty(Data.CivStage) && Data.CivStage<4 %test for civ files 2712 msgbox_uvmat('ERROR',['no civ2 data in ' filename]) 2713 filecell=[]; 2714 return 2715 elseif isempty(Data.civ2)||isequal(Data.civ2,0) 2709 2716 msgbox_uvmat('ERROR',['no civ2 data in ' filename]) 2710 2717 filecell=[]; … … 2712 2719 end 2713 2720 elseif box_test(3)==0; %check the existence of patch if it is not calculated 2714 Data=nc2struct(filename,'ListGlobalAttribute','patch'); 2715 if isempty(Data.patch)||isequal(Data.patch,0) 2721 Data=nc2struct(filename,'ListGlobalAttribute','CivStage','patch') 2722 if ~isempty(Data.CivStage) 2723 if Data.CivStage<3 %test for civ files 2724 msgbox_uvmat('ERROR',['no patch data in ' filename]) 2725 filecell=[]; 2726 return 2727 end 2728 elseif isempty(Data.patch)||isequal(Data.patch,0) 2716 2729 msgbox_uvmat('ERROR',['no patch data in ' filename]) 2717 2730 filecell=[]; … … 2801 2814 return 2802 2815 else 2803 Data=nc2struct(filename,'ListGlobalAttribute','civ2'); 2804 if isempty(Data.civ2)||isequal(Data.civ2,0) 2816 Data=nc2struct(filename,'ListGlobalAttribute','CivStage','civ2'); 2817 if ~isempty(Data.CivStage) && Data.CivStage<4 %test for civ files 2818 msgbox_uvmat('ERROR',['no civ2 data in ' filename]) 2819 filecell=[]; 2820 return 2821 elseif isempty(Data.civ2)||isequal(Data.civ2,0) 2805 2822 msgbox_uvmat('ERROR',['no civ2 data in ' filename]) 2806 2823 filecell=[]; … … 4677 4694 end 4678 4695 [filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc,file_ref_fix1,file_ref_fix2]=... 4679 set_civ_filenames(handles,ref_i,ref_j,[1 0 0 0 0 0]) ;4696 set_civ_filenames(handles,ref_i,ref_j,[1 0 0 0 0 0]) 4680 4697 Data.ListVarName={'ny','nx','A'}; 4681 4698 Data.VarDimName={'ny','nx',{'ny','nx'}};
Note: See TracChangeset
for help on using the changeset viewer.