Changeset 644 for trunk/src/calc_field_interp.m
 Timestamp:
 May 28, 2013, 11:30:01 PM (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/calc_field_interp.m
r579 r644 17 17 function [VarVal,ListVarName,VarAttribute,errormsg]=calc_field_interp(Coord,Data,FieldName,XI,YI) 18 18 19 %% initialization 19 20 VarVal={}; 20 21 ListVarName={}; … … 25 26 check_skipped=zeros(size(FieldName));% default, =1 to mark the variables which can be calculated 26 27 Operator=cell(size(FieldName)); 28 29 %% analyse the list of input fields: needed variables and requested operations 27 30 for ilist=1:numel(FieldName) 28 31 Operator{ilist}='';%default empty operator (vec, norm,...) … … 66 69 end 67 70 end 68 %create interpolator for linear interpolation 71 72 %% create interpolator for each variable to interpolate 69 73 if exist('XI','var') 70 74 for ilist=1:numel(InputVarList) … … 72 76 end 73 77 end 78 79 %% perform the linear interpolation for the requested variables 74 80 for ilist=1:numel(FieldName) 75 81 if ~check_skipped(ilist) … … 120 126 end 121 127 end 122 % put an error flag to indicate NaN data 128 129 %% put an error flag to indicate NaN data 123 130 if exist('XI','var')&&~isempty(VarVal) 124 131 nbvar=numel(ListVarName); … … 128 135 end 129 136 130 % Attr_FF.Role='errorflag';131 % VarAttribute=[VarAttribute {Attr_FF}];132 137 133 138 134 139 135 140 136
Note: See TracChangeset
for help on using the changeset viewer.