Ignore:
Timestamp:
Mar 30, 2020, 3:48:19 PM (4 years ago)
Author:
sommeria
Message:

various updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/calc_field_interp.m

    r1071 r1078  
    5454        if isempty(ivar)% the requested variable does not exist
    5555            check_skipped(ilist)=1; %variable not found
    56         elseif isempty(find(strcmp(FieldName{ilist},InputVarList), 1));% the variable exists and has not been already selected
     56        elseif isempty(find(strcmp(FieldName{ilist},InputVarList), 1))% the variable exists and has not been already selected
    5757            if exist('XI','var')&& isfield(Data.VarAttribute{ivar},'Role') &&...
    5858                    (strcmp(Data.VarAttribute{ivar}.Role,'ancillary')||strcmp(Data.VarAttribute{ivar}.Role,'warnflag')||strcmp(Data.VarAttribute{ivar}.Role,'errorflag'))
     
    8686            UName{ilist}=r.UName;
    8787            VName{ilist}=r.VName;
    88             if isempty(find(strcmp(r.UName,InputVarList)));
     88            if isempty(find(strcmp(r.UName,InputVarList)))
    8989                InputVarList=[InputVarList UName{ilist}]; %the variable is added to the list if it is not already in the list
    9090            end
    91             if isempty(find(strcmp(r.VName,InputVarList), 1));
     91            if isempty(find(strcmp(r.VName,InputVarList), 1))
    9292                InputVarList=[InputVarList VName{ilist}]; %the variable is added to the list if it is not already in the list
    9393            end
     
    162162end
    163163
    164 %% put an error flag to indicate NaN data
    165 % if exist('XI','var')&&~isempty(VarVal)
    166 %     nbvar=numel(VarVal);
    167 %     ListVarName{nbvar+1}='FF';
    168 %     VarVal{nbvar+1}=isnan(VarVal{nbvar});
    169 %     VarAttribute{nbvar+1}.Role='errorflag';
    170 % end
    171164
    172165
Note: See TracChangeset for help on using the changeset viewer.