Ignore:
Timestamp:
Jul 4, 2024, 4:23:43 PM (3 months ago)
Author:
sommeria
Message:

update_xml simlified, bug on civ_series corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/filter_tps.m

    r1143 r1152  
    106106            ind_ind_sel=1:numel(ind_sel);%default
    107107            if exist('Threshold','var')&&~isempty(Threshold)
    108                 FF(ind_sel)=2*(NormDiff>Threshold);%put FF value to 2 to identify the criterium of elimmination
     108                FF(ind_sel)=4*(NormDiff>Threshold);%put FF value to 4 to identify the criterium of elimmination
    109109                ind_ind_sel=find(FF(ind_sel)==0); % select the indices of remaining vectors in the subset of ind_sel vectors
    110110            end
     
    166166U_smooth=U_smooth./nb_select;% take the average at the intersection of several subdomains
    167167V_smooth=V_smooth./nb_select;
    168 U_smooth(FF==2)=U(FF==2);% set to the initial values the eliminated vectors (flagged as false)
    169 V_smooth(FF==2)=V(FF==2);
     168U_smooth(FF==4)=U(FF==4);% set to the initial values the eliminated vectors (flagged as false)
     169V_smooth(FF==4)=V(FF==4);
    170170fill=zeros(NbCoord+1,NbCoord,size(SubRange,3)); %matrix of zeros to complement the matrix Data.Civ1_Coord_tps (conveninent for file storage)
    171171Coord_tps=cat(1,Coord_tps,fill);
Note: See TracChangeset for help on using the changeset viewer.