Ignore:
Timestamp:
Feb 12, 2015, 9:31:47 PM (9 years ago)
Author:
sommeria
Message:

python option added in series and bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/calc_field_tps.m

    r866 r867  
    105105    VarAttribute=[VarAttribute VarAttributeNew];
    106106end
    107 Attr_FF.Role='errorflag';
    108 VarAttribute=[VarAttribute {Attr_FF}];
     107%Attr_FF.Role='errorflag';
     108%VarAttribute=[VarAttribute {Attr_FF}];
    109109FieldName(check_remove)=[];
    110110
     
    160160    end
    161161end
    162 DataOut.FF=nbval==0; %put errorflag to 1 for points outside the interpolation rang
    163 nbval(nbval==0)=1;% to avoid division by zero for averaging
     162%DataOut.FF=nbval==0; %put errorflag to 1 for points outside the interpolation rang
     163nbval(nbval==0)=NaN;% to avoid division by zero for averaging
    164164ListFieldOut=fieldnames(DataOut);
    165165for ifield=1:numel(ListFieldOut)
Note: See TracChangeset for help on using the changeset viewer.