Changeset 144 for trunk/src/uvmat.m
- Timestamp:
- Nov 30, 2010, 12:03:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r141 r144 2307 2307 if isequal(FileType,'netcdf') %read the first nc field 2308 2308 if isequal(FieldName,'get_field...')% read the field names on the interface get_field. 2309 hget_field=findobj(allchild(0),'Name',' uvmat_field');%find the get_field... GUI2309 hget_field=findobj(allchild(0),'Name','get_field');%find the get_field... GUI 2310 2310 if isempty(hget_field) 2311 2311 hget_field= get_field(filename);%open the get_field GUI 2312 set(hget_field,'name','uvmat_field')2312 % set(hget_field,'name','get_field') 2313 2313 elseif UvData.NewSeries% refresh the fet_field GUI for a new series 2314 2314 delete(hget_field) 2315 2315 hget_field= get_field(filename);%open the get_field GUI 2316 set(hget_field,'name',' uvmat_field')%rename get_field GUI for the 'slave' mode2316 set(hget_field,'name','get_field')%rename get_field GUI for the 'slave' mode 2317 2317 end 2318 2318 hhget_field=guidata(hget_field); 2319 set(hhget_field.list_fig,'Value',1) 2320 set(hhget_field.list_fig,'String',{'uvmat'}) 2319 2321 funct_list=get(hhget_field.ACTION,'UserData'); 2320 2322 funct_index=get(hhget_field.ACTION,'Value'); … … 2335 2337 if ~isempty(filename_1) && ~test_keepdata_1 && isequal(FileType_1,'netcdf') %read the second file 2336 2338 if isequal(FieldName_1,'get_field...')% read the field names on the interface get_field. 2337 hget_field_1=findobj(allchild(0),'Name',' uvmat_field_1');%find the get_field... GUI2339 hget_field_1=findobj(allchild(0),'Name','get_field_1');%find the get_field... GUI 2338 2340 if isempty(hget_field_1) 2339 2341 hget_field_1= get_field(filename_1);%open the get_field GUI 2340 set(hget_field_1,'name','uvmat_field_1') 2342 set(hget_field_1,'name','get_field_1') 2343 elseif UvData.NewSeries% refresh the fet_field GUI for a new series 2344 delete(hget_field_1) 2345 hget_field_1= get_field(filename);%open the get_field GUI 2346 set(hget_field_1,'name','get_field_1')%rename get_field GUI for the 'slave' mode 2341 2347 end 2342 2348 hhget_field_1=guidata(hget_field_1);%handles of GUI elements in get_field 2349 set(hhget_field_1.list_fig,'Value',1) 2350 set(hhget_field_1.list_fig,'String',{'uvmat'}) 2343 2351 funct_list=get(hhget_field_1.ACTION,'UserData'); 2344 2352 funct_index=get(hhget_field_1.ACTION,'Value'); … … 3216 3224 set_veltype_display(veltype_handles,0) % unvisible civ buttons 3217 3225 filename=read_file_boxes(handles); 3218 hget_field=findobj(allchild(0),'name','uvmat_field'); 3219 if isempty(hget_field) 3220 hget_field=get_field(filename); 3221 set(hget_field,'Name','uvmat_field') 3226 hget_field=findobj(allchild(0),'name','get_field'); 3227 if ~isempty(hget_field) 3228 delete(hget_field) 3222 3229 end 3230 hget_field=get_field(filename); 3231 set(hget_field,'Name','get_field') 3232 hhget_field=guidata(hget_field); 3233 set(hhget_field.list_fig,'Value',1) 3234 set(hhget_field.list_fig,'String',{'uvmat'}) 3235 set(handles.transform_fct,'Value',1)% no transform by default 3236 set(handles.path_transform,'String','') 3223 3237 return %no action 3224 3238 end … … 3380 3394 hget_field=get_field(filename); 3381 3395 set(hget_field,'name','get_field_1') 3396 hhget_field=guidata(hget_field); 3397 set(hhget_field.list_fig,'Value',1) 3398 set(hhget_field.list_fig,'String',{'uvmat'}) 3399 set(handles.transform_fct,'Value',1)% no transform by default 3400 set(handles.path_transform,'String','') 3382 3401 return %no action 3383 3402 end
Note: See TracChangeset
for help on using the changeset viewer.