Changeset 383 for trunk/src/uvmat.m


Ignore:
Timestamp:
Feb 7, 2012, 8:34:31 AM (9 years ago)
Author:
sommeria
Message:

bugs corrected , new Matlab patch introduced for patch2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r382 r383  
    22162216
    22172217%% update tps in phys coordinates if needed
    2218 if (strcmp(VelType,'filter1')||strcmp(VelType,'filter2'))&& isfield(Field{1},'U')&& isfield(Field{1},'V')
     2218if (strcmp(VelType,'filter1')||strcmp(VelType,'filter2'))&& strcmp(FileType,'civdata')&&isfield(Field{1},'U')&& isfield(Field{1},'V')
    22192219    [Field{1}.SubRange,Field{1}.NbSites,Field{1}.Coord_tps,Field{1}.U_tps,Field{1}.V_tps]=filter_tps([Field{1}.X Field{1}.Y],Field{1}.U,Field{1}.V,[],1500,0);
    22202220end
     
    22252225end
    22262226if numel(Field)==2 && ~test_keepdata_1 && isequal(FileType_1(1:3),'civ') && ~isequal(ParamOut_1.FieldName,'get_field...')%&&~isempty(FieldName_1)
     2227    %update tps in phys coordinates if needed
     2228    if (strcmp(VelType_1,'filter1')||strcmp(VelType_1,'filter2'))&& strcmp(FileType_1,'civdata')&&isfield(Field{2},'U')&& isfield(Field{2},'V')
     2229        [Field{2}.SubRange,Field{2}.NbSites,Field{2}.Coord_tps,Field{2}.U_tps,Field{2}.V_tps]=filter_tps([Field{2}.X Field{2}.Y],Field{2}.U,Field{2}.V,[],1500,0);
     2230    end
    22272231    Field{2}=calc_field([{ParamOut_1.FieldName} {ParamOut_1.ColorVar}],Field{2},VelType_1);
    22282232end
Note: See TracChangeset for help on using the changeset viewer.