Ignore:
Timestamp:
Aug 16, 2012, 8:47:11 AM (9 years ago)
Author:
sommeria
Message:

various bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civdata.m

    r515 r516  
    6464errormsg='';
    6565if ischar(FieldNames), FieldNames={FieldNames}; end;
    66 FieldRequest='vec';
     66FieldRequest='';
    6767for ilist=1:length(FieldNames)
    6868    if ~isempty(FieldNames{ilist})
    6969        switch FieldNames{ilist}
    7070            case{'U','V','norm(U,V)'}
    71                 FieldRequest='interp';
     71                FieldRequest='interp_lin';
    7272            case {'curl(U,V)','div(U,V)','strain(U,V)'}
    73                 FieldRequest='derivatives';
     73                FieldRequest='interp_tps';
    7474        end
    7575    end
     
    128128    Field.VarAttribute{ivar_U}.VarIndex_tps=ivar_U_tps;
    129129end
    130 % if strcmp(FieldRequest,'derivatives')% fields will be calculated from the tps
    131 %     Field.VarAttribute{ivar_U_tps}.FieldRequest=FieldRequest;
    132 %     Field.VarAttribute{ivar_U_tps}.Operation=FieldNames;
    133 % else% fields will be calculated from the initial fields
    134 %     Field.VarAttribute{ivar_U}.FieldRequest=FieldRequest;%
    135 %     Field.VarAttribute{ivar_U}.Operation=FieldNames;
    136 % end
    137130
    138131Field.ListGlobalAttribute=[Field.ListGlobalAttribute {'NbCoord','NbDim','TimeUnit','CoordUnit'}];
     
    211204       % units={'pixel','pixel','pixel','pixel','pixel','pixel','','','','pixel','pixel','pixel','pixel','pixel',''};
    212205end
    213 if ~strcmp(FieldRequest,'derivatives')
     206if ~strcmp(FieldRequest,'interp_tps')
    214207    var=var(:,1:9);%suppress tps if not needed
    215208end
Note: See TracChangeset for help on using the changeset viewer.