- Timestamp:
- May 14, 2024, 7:54:48 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_series.m
r1144 r1146 817 817 return 818 818 end 819 elseif isfield(Param,'Civ2_X')% use Civ2 data as input in Param (test mode)820 Data.ListGlobalAttribute={};821 Data.ListVarName={};822 Data.VarDimName={};823 Data.Civ2_X=Param.Civ2_X;824 Data.Civ2_Y=Param.Civ2_Y;825 Data.Civ2_U=Param.Civ2_U;826 Data.Civ2_V=Param.Civ2_V;827 Data.Civ2_FF=Param.Civ2_FF;819 % elseif isfield(Param,'Civ2_X')% use Civ2 data as input in Param (test mode) 820 % Data.ListGlobalAttribute={}; 821 % Data.ListVarName={}; 822 % Data.VarDimName={}; 823 % Data.Civ2_X=Param.Civ2_X; 824 % Data.Civ2_Y=Param.Civ2_Y; 825 % Data.Civ2_U=Param.Civ2_U; 826 % Data.Civ2_V=Param.Civ2_V; 827 % Data.Civ2_FF=Param.Civ2_FF; 828 828 end 829 829 end … … 1003 1003 1004 1004 %% Apply mask 1005 % Convention for mask IDEAS TO IMPLEMENT ?1005 % Convention for mask, IDEAS NOT IMPLEMENTED 1006 1006 % mask >200 : velocity calculated 1007 1007 % 200 >=mask>150;velocity not calculated, interpolation allowed (bad spots) … … 1020 1020 end 1021 1021 check_undefined=(par_civ.Mask<200 & par_civ.Mask>=20 ); 1022 % par_civ.ImageA(check_undefined)=0;% put image A to zero (i.e. the min image value) in the undefined area1023 % par_civ.ImageB(check_undefined)=0;% put image B to zero (i.e. the min image value) in the undefined area1024 1022 end 1025 1023 … … 1058 1056 sizemask=sum(sum(mask1_crop))/(numel(subrange1_y)*numel(subrange1_x));%size of the masked part relative to the correlation sub-image 1059 1057 if sizemask > 1/2% eliminate point if more than half of the correlation box is masked 1060 F(ivec)= 3; %1058 F(ivec)=1; % 1061 1059 utable(ivec)=NaN; 1062 1060 vtable(ivec)=NaN; … … 1072 1070 end 1073 1071 %threshold on image minimum 1074 if F(ivec)~= 31072 if F(ivec)~=1 1075 1073 if check_MinIma && (image1_mean < par_civ.MinIma || image2_mean < par_civ.MinIma) 1076 F(ivec)= 3;1074 F(ivec)=1; 1077 1075 %threshold on image maximum 1078 1076 elseif check_MaxIma && (image1_mean > par_civ.MaxIma || image2_mean > par_civ.MaxIma) 1079 F(ivec)= 3;1080 end 1081 if F(ivec)== 31077 F(ivec)=1; 1078 end 1079 if F(ivec)==1 1082 1080 utable(ivec)=NaN; 1083 1081 vtable(ivec)=NaN; … … 1134 1132 utable(ivec)=0; 1135 1133 vtable(ivec)=0; 1136 F(ivec)= 3;1134 F(ivec)=1; 1137 1135 end 1138 1136 ctable(ivec)=corrmax/sum_square;% correlation value 1139 1137 catch ME 1140 F(ivec)= 3;1138 F(ivec)=1; 1141 1139 disp(ME.message) 1142 1140 end 1143 1141 else 1144 F(ivec)= 3;1142 F(ivec)=1; 1145 1143 end 1146 1144 end
Note: See TracChangeset
for help on using the changeset viewer.