Changeset 72 for trunk/src/proj_field.m


Ignore:
Timestamp:
Mar 30, 2010, 11:03:42 AM (11 years ago)
Author:
sommeria
Message:

ima2vol: write image volumes in 16 bits (test for civ_3D)
plot-text removed: put as a sub-function of plot_field
uvmat: movie stops in case of error in reding files
bug fixes for reading 3D vel fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r71 r72  
    950950% test for 3D fields
    951951test3D=0;
    952 if isfield(FieldData,'NbDim')
    953     test3D=isequal(FieldData.NbDim,3);
     952if isfield(FieldData,'nb_dim')
     953    test3D=isequal(FieldData.nb_dim,3)
    954954end
    955955test3C=test3D; %default 3 vel components
     
    10461046%case of input fields with unstructured coordinates
    10471047    if testX
    1048         XName=FieldData.ListVarName{ivar_X};
    1049         YName=FieldData.ListVarName{ivar_Y};
     1048        XName=FieldData.ListVarName{ivar_X}
     1049        YName=FieldData.ListVarName{ivar_Y}
    10501050        eval(['coord_x=FieldData.' XName ';'])
    10511051        eval(['coord_y=FieldData.' YName ';'])
    10521052        if length(ivar_Z)==1
    1053             ZName=FieldData.ListVarName{ivar_X};
     1053            ZName=FieldData.ListVarName{ivar_Z}
    10541054            eval(['coord_z=FieldData.' ZName ';'])
    10551055        end
Note: See TracChangeset for help on using the changeset viewer.