Changeset 863 for trunk/src/proj_field.m


Ignore:
Timestamp:
Feb 3, 2015, 7:59:58 PM (9 years ago)
Author:
sommeria
Message:

civ2vel3C_introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r854 r863  
    485485end
    486486
    487 
    488487%-----------------------------------------------------------------
    489488%project on a line
     
    696695                end
    697696            elseif isequal(ProjMode,'interp_lin')  %filtering %linear interpolation:
     697                if ~isequal(errorflag,0)
     698                    VarName_FF=FieldData.ListVarName{CellInfo{icell}.VarIndex_errorflag};
     699                    indsel=find(FieldData.(VarName_FF)==0);
     700                    coord_x=coord_x(indsel);
     701                    coord_y=coord_y(indsel);
     702                    for ivar=1:numel(CellInfo{icell}.VarIndex)
     703                        VarName=FieldData.ListVarName{CellInfo{icell}.VarIndex(ivar)};
     704                        FieldData.(VarName)=FieldData.(VarName)(indsel);
     705                    end
     706                end                   
    698707                [ProjVar,ListFieldProj,VarAttribute,errormsg]=calc_field_interp([coord_x coord_y],FieldData,CellInfo{icell}.FieldName,XI,YI);
    699708                ProjData.X=Xproj;
Note: See TracChangeset for help on using the changeset viewer.