Changeset 389 for trunk/src/filter_tps.m
- Timestamp:
- Apr 8, 2012, 11:11:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/filter_tps.m
r387 r389 28 28 W_smooth=[]; 29 29 NbCoord=size(Coord,2); 30 NbSubDomain= ceil(nbvec/SubDomain);30 NbSubDomain=nbvec/SubDomain; 31 31 MinCoord=min(Coord,[],1); 32 % MinY=min(Y,);33 32 MaxCoord=max(Coord,[],1); 34 % MaxY=max(Y);35 33 Range=MaxCoord-MinCoord; 36 % RangY=MaxY-MinY;37 34 AspectRatio=Range(2)/Range(1); 38 35 NbSubDomainX=max(floor(sqrt(NbSubDomain/AspectRatio)),1); … … 75 72 SubRange(:,1,isub)=SubRange(:,1,isub)-Siz'/4; 76 73 SubRange(:,2,isub)=SubRange(:,2,isub)+Siz'/4; 77 % SubRangy(isub,1)=SubRangy(isub,1)-Siz(2)/4; 78 % SubRangy(isub,2)=SubRangy(isub,2)+Siz(2)/4; 79 else 80 74 else 81 75 [U_smooth_sub,U_tps_sub]=tps_coeff(Coord(ind_sel,:),U(ind_sel),rho); 82 76 [V_smooth_sub,V_tps_sub]=tps_coeff(Coord(ind_sel,:),V(ind_sel),rho); … … 109 103 [V_smooth_sub,V_tps_sub]=tps_coeff(Coord(ind_sel(ind_ind_sel),:),V(ind_sel(ind_ind_sel)),rho); 110 104 U_smooth(ind_sel(ind_ind_sel))=U_smooth(ind_sel(ind_ind_sel))+U_smooth_sub; 111 V_smooth(ind_sel(ind_ind_sel))=V_smooth(ind_sel(ind_ind_sel))+V_smooth_sub; 105 V_smooth(ind_sel(ind_ind_sel))=V_smooth(ind_sel(ind_ind_sel))+V_smooth_sub; 112 106 NbSites(isub)=numel(ind_ind_sel); 113 %Indices_tps(1:NbSites(isub),isub)=ind_sel(ind_ind_sel);114 107 Coord_tps(1:NbSites(isub),:,isub)=Coord(ind_sel(ind_ind_sel),:); 115 % Y_tps(1:NbSites(isub),:,isub)=Coord(ind_sel(ind_ind_sel),2);116 108 U_tps(1:NbSites(isub)+3,isub)=U_tps_sub; 117 109 V_tps(1:NbSites(isub)+3,isub)=V_tps_sub; … … 127 119 if ~isempty(ind_empty) 128 120 SubRange(:,:,ind_empty)=[]; 129 % SubRangy(ind_empty,:)=[];130 % Indices_tps(:,ind_empty)=[];131 121 Coord_tps(:,:,ind_empty)=[]; 132 % Y_tps(:,ind_empty)=[];133 122 U_tps(:,ind_empty)=[]; 134 123 V_tps(:,ind_empty)=[];
Note: See TracChangeset
for help on using the changeset viewer.