Changeset 1142 for trunk/src/series
- Timestamp:
- May 5, 2024, 12:29:30 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/test_patch_tps.m
r1141 r1142 33 33 % .FieldName: name(s) of the field 34 34 % .VelType: velocity type 35 % .FieldName_1: name of the second field in case of two input series36 % .VelType_1: velocity type of the second field in case of two input series37 % .Coord_y: name of y coordinate variable38 % .Coord_x: name of x coordinate variable39 35 40 36 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 110 106 case {4,5} 111 107 CivStage='civ2'; 112 MaxDiff=1.5; SubDomainSize= 500; FieldSmooth=2; %default108 MaxDiff=1.5; SubDomainSize=250; FieldSmooth=5; %default 113 109 case 6 114 110 CivStage='civ2'; … … 211 207 212 208 %% Prepare the structure of output netcdf file 213 DataOut.ListGlobalAttribute={'CivStage' };209 DataOut.ListGlobalAttribute={'CivStage','SubDomainSize','MaxDiff','CoordUnit'}; 214 210 DataOut.CivStage=Param.InputFields.VelType; 215 DataOut.ListVarName=[{'FieldSmooth','Diff_rms','NbExclude','FF','X','Y'} Ustr Vstr] ; 216 DataOut.VarDimName=[{'FieldSmooth','FieldSmooth','FieldSmooth','NbVec','NbVec','NbVec'} Dimstr Dimstr]; 211 DataOut.SubDomainSize=SubDomainSize; 212 DataOut.MaxDiff=MaxDiff; 213 DataOut.CoordUnit='pixel'; 214 DataOut.ListVarName=[{'FieldSmooth','Diff_rms','NbExclude','X','Y'} Ustr Vstr] ; 215 DataOut.VarDimName=[{'FieldSmooth','FieldSmooth','FieldSmooth','NbVec','NbVec'} Dimstr Dimstr]; 217 216 DataOut.VarAttribute{4}.Role='falseflag'; 218 217 DataOut.FieldSmooth=FieldSmooth; … … 249 248 DataOut.Diff_rms(irho)=sqrt(mean(U_Diff.*U_Diff+V_Diff.*V_Diff)/2); 250 249 DataOut.NbExclude(irho)=(NbGood-numel(ind_good))/NbGood; 250 U_smooth(ind_false)=NaN; 251 V_smooth(ind_false)=NaN; 251 252 DataOut.(['U_' str_i{irho}])=U_smooth; 252 253 DataOut.(['V_' str_i{irho}])=V_smooth; 253 DataOut.FF(ind_false)=FieldSmooth(irho);254 % DataOut.FF(ind_false)=FieldSmooth(irho); 254 255 end 255 256 time=toc
Note: See TracChangeset
for help on using the changeset viewer.