Changeset 183 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jan 26, 2011, 5:03:40 PM (13 years ago)
Author:
sommeria
Message:

small bug repair: reading movies in read_fields, plotting rectangles and ellipes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r180 r183  
    21592159    ParamIn.VelType=VelType;
    21602160    ParamIn.GUIName='get_field';
    2161     [Field{1},ParamOut,errormsg] = read_field(ObjectName,FileType,ParamIn);
     2161    [Field{1},ParamOut,errormsg] = read_field(ObjectName,FileType,ParamIn,num_i1);
     2162    if ~isempty(errormsg)
     2163        errormsg=['error in reading ' filename ': ' errormsg];
     2164        return
     2165    end
    21622166    if isfield(ParamOut,'Npx')&& isfield(ParamOut,'Npy')
    21632167        set(handles.npx,'String',num2str(ParamOut.Npx));% display image size on the interface
     
    22442248            ParamIn.VelType=VelType_1;
    22452249            ParamIn.GUIName='get_field_1';
    2246             [Field{2},ParamOut_1,errormsg] = read_field(Name,FileType_1,ParamIn);         
     2250            [Field{2},ParamOut_1,errormsg] = read_field(Name,FileType_1,ParamIn,num_i1);
     2251            if ~isempty(errormsg)
     2252                errormsg=['error in reading ' filename_1 ': ' errormsg];
     2253                return
     2254            end
    22472255            UvData.Field_1=Field{2}; %store the second field for possible use at next RUN
    22482256        end
     
    42484256    if ~isempty(hview_field)
    42494257        delete(hview_field)
     4258    end
     4259    hset_object=findobj(allchild(0),'Tag','set_object');
     4260    if ~isempty(hset_object)
     4261        delete(hset_object)
    42504262    end
    42514263else
Note: See TracChangeset for help on using the changeset viewer.