Ignore:
Timestamp:
Apr 19, 2024, 8:21:23 PM (3 weeks ago)
Author:
sommeria
Message:

adapted to reading hdf5 data from fluidimage, extract_rdvision improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_pivdata_fluidimage.m

    r1131 r1134  
    7777    FieldNames=[]; %default
    7878end
     79if isempty(FieldNames)||isempty(FieldNames{1})
     80    FieldNames={'vec(U,V)'};
     81end
    7982Field=[];
    8083VelTypeOut=VelType;
     
    8487    return
    8588end
    86 if ischar(FieldNames), FieldNames={FieldNames}; end;
     89if ischar(FieldNames), FieldNames={FieldNames}; end
    8790ProjModeRequest='';
    8891for ilist=1:length(FieldNames)
     
    119122Field.ListVarName={'X'  'Y'  'U'  'V'  'C'  'F'  'FF'};
    120123Field.VarDimName={'nb_vec' 'nb_vec' 'nb_vec' 'nb_vec' 'nb_vec' 'nb_vec' 'nb_vec'};
     124% Field.VarAttribute{1}.Role='coord_x';
     125% Field.VarAttribute{2}.Role='coord_y';
     126% Field.VarAttribute{3}.Role='vector_x';
     127% Field.VarAttribute{3}.FieldName={'vec(U,V)'};
     128
    121129VelTypeOut=VelType;
    122130switch VelType
Note: See TracChangeset for help on using the changeset viewer.