Ignore:
Timestamp:
May 28, 2013, 11:30:01 PM (11 years ago)
Author:
sommeria
Message:

various improvements: resize GUI uvmat, projection on lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/calc_field_interp.m

    r579 r644  
    1717function [VarVal,ListVarName,VarAttribute,errormsg]=calc_field_interp(Coord,Data,FieldName,XI,YI)
    1818
     19%% initialization
    1920VarVal={};
    2021ListVarName={};
     
    2526check_skipped=zeros(size(FieldName));% default, =1 to mark the variables which can be calculated
    2627Operator=cell(size(FieldName));
     28
     29%% analyse the list of input fields: needed variables and requested operations
    2730for ilist=1:numel(FieldName)
    2831    Operator{ilist}='';%default empty operator (vec, norm,...)
     
    6669    end
    6770end
    68 %create interpolator for linear interpolation
     71
     72%% create interpolator for each variable to interpolate
    6973if exist('XI','var')
    7074    for ilist=1:numel(InputVarList)
     
    7276    end
    7377end
     78
     79%% perform the linear interpolation for the requested variables
    7480for ilist=1:numel(FieldName)
    7581    if ~check_skipped(ilist)
     
    120126    end
    121127end
    122 % put an error flag to indicate NaN data
     128
     129%% put an error flag to indicate NaN data
    123130if exist('XI','var')&&~isempty(VarVal)
    124131    nbvar=numel(ListVarName);
     
    128135end
    129136
    130 % Attr_FF.Role='errorflag';
    131 % VarAttribute=[VarAttribute {Attr_FF}];
    132137
    133138
    134139
    135140
    136 
Note: See TracChangeset for help on using the changeset viewer.