Ignore:
Timestamp:
Apr 23, 2024, 3:03:38 PM (6 months ago)
Author:
sommeria
Message:

fct for python added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civdata.m

    r1127 r1135  
    3232% FileName: file name (string).
    3333% FieldNames =cell of field names to get, which can contain the strings:
    34 %             'ima_cor': image correlation, vec_c or vec2_C
    35 %             'vort','div','strain': requires velocity derivatives DUDX...
    36 %             'error': error estimate (vec_E or vec2_E)
    37 %             
     34% 'U','V','norm(U,V)','curl(U,V)','div(U,V)','strain(U,V)'
    3835% VelType : character string indicating the types of velocity fields to read ('civ1','civ2'...)
    3936%            if vel_type=[] or'*', a  priority choice, given by vel_type_out{1,2}, is done depending
     
    6865    VelType='';
    6966end
    70 if isequal(VelType,'*')
     67if isempty(VelType)||strcmp(VelType,'*')
    7168    VelType='';
    7269end
    73 if isempty(VelType)
    74     VelType='';
    75 end
    7670if ~exist('FieldNames','var')
    77     FieldNames=[]; %default
     71    FieldNames={}; %default
    7872end
    7973Field=[];
     
    194188
    195189%% default input values
    196 if ~exist('vel_type','var'),vel_type='';end;
    197 if iscell(vel_type),vel_type=vel_type{1}; end;%transform cell to string if needed
     190if ~exist('vel_type','var'),vel_type='';end
     191if iscell(vel_type),vel_type=vel_type{1}; end%transform cell to string if needed
    198192errormsg='';
    199193
Note: See TracChangeset for help on using the changeset viewer.