Changeset 494 for trunk/src/get_field.m
- Timestamp:
- Jul 19, 2012, 11:50:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r436 r494 110 110 if exist('filename','var') && ischar(filename) %transfer input file name in slave mode 111 111 set(handles.inputfile,'String',filename)% prefill the input file name 112 Field=nc2struct(filename,[]);% reads the whole field112 Field=nc2struct(filename,[]);% reads the field structure, without variables 113 113 if isfield(Field,'Txt') 114 114 msgbox_uvmat('ERROR',Field.Txt) 115 115 else 116 116 set(handles.get_field,'UserData',Field); 117 Field_input( eventdata,handles,Field);117 Field_input(handles,Field); 118 118 end 119 119 else %master mode … … 177 177 else 178 178 set(handles.get_field,'UserData',Field); 179 Field_input( eventdata,handles,Field);179 Field_input(handles,Field); 180 180 end 181 181 huvmat=findobj(allchild(0),'tag','uvmat'); … … 186 186 %------------------------------------------------------------------------ 187 187 % --- update the display when a new field is introduced. 188 function Field_input( eventdata,handles,Field)188 function Field_input(handles,Field) 189 189 %------------------------------------------------------------------------ 190 190 if isfield(Field,'ListDimName')&&~isempty(Field.ListDimName) … … 282 282 end 283 283 end 284 check_1Dplot_Callback(handles.check_1Dplot, eventdata, handles)285 check_scalar_Callback(handles.check_scalar, eventdata, handles)286 check_vector_Callback(handles.check_vector, eventdata, handles)284 check_1Dplot_Callback(handles.check_1Dplot, [], handles) 285 check_scalar_Callback(handles.check_scalar, [], handles) 286 check_vector_Callback(handles.check_vector, [], handles) 287 287 end 288 288 %scalar_Callback(handles.get_field, eventdata, handles)
Note: See TracChangeset
for help on using the changeset viewer.