Ignore:
Timestamp:
May 6, 2013, 6:50:34 PM (11 years ago)
Author:
sommeria
Message:

correction to avoid probleme with interp_tps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/transform_field/phys.m

    r574 r631  
    187187    end
    188188end
    189 if isfield(DataOut,'VarAttribute')&&isfield(DataOut.VarAttribute{3},'VarIndex_tps')
     189if isfield(DataOut,'VarAttribute') && numel(DataOut.VarAttribute)>=3 && isfield(DataOut.VarAttribute{3},'VarIndex_tps')
    190190    DataOut.VarAttribute{3}=rmfield(DataOut.VarAttribute{3},'VarIndex_tps');
    191191end
    192 
     192if isfield(DataOut,'VarAttribute')&& numel(DataOut.VarAttribute)>=4 && isfield(DataOut.VarAttribute{4},'VarIndex_tps')
     193    DataOut.VarAttribute{4}=rmfield(DataOut.VarAttribute{4},'VarIndex_tps');
     194end
    193195if ~isempty(ind_remove)
    194196    DataOut.ListVarName(ind_remove)=[];
Note: See TracChangeset for help on using the changeset viewer.