Changeset 974 for trunk/src/get_field.m
- Timestamp:
- Nov 18, 2016, 7:14:06 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r924 r974 158 158 end 159 159 set(handles.SwitchVarIndexTime,'String',ListSwitchVarIndexTime) 160 set(handles.SwitchVarIndexTime,'UserData',ListSwitchVarIndexTime); % keep string in memory for check3D 160 161 set(handles.get_field,'UserData',Field);% record the finput field structure 161 162 SwitchVarIndexTime_Callback([], [], handles) … … 1045 1046 else% fields studied as 2D 1046 1047 status='off'; 1047 1048 end 1048 end 1049 1049 1050 set(handles.Coord_z,'Visible',status) 1050 1051 % set(handles.CheckDimensionZ,'Visible',status) 1051 1052 set(handles.Z_title,'Visible',status) 1052 1053 set(handles.vector_z,'Visible',status) 1053 set(handles.W_title,'Visible',status) 1054 if strcmp(status,'on') 1055 Field=get(handles.get_field,'UserData'); 1056 if Field.MaxDim>=3% for 3D fields, propose to use the third variable as time 1054 set(handles.W_title,'Visible',status) 1055 if strcmp(status,'on')% ask for 3D input 1056 Field=get(handles.get_field,'UserData'); 1057 if Field.MaxDim>3% for 4D fields, propose to use the fourth variable as time 1058 %set(handles.Time,'Visible','on') 1057 1059 menu=get(handles.SwitchVarIndexTime,'String'); 1058 1060 val=find(strcmp('variable',menu)); 1059 1061 if ~isempty(val) 1060 1062 set(handles.SwitchVarIndexTime,'Value',val) 1061 SwitchVarIndexTime_Callback(handles.SwitchVarIndexTime,[], handles) 1062 end 1063 end 1064 end 1063 end 1064 else 1065 set(handles.SwitchVarIndexTime,'Value',1) 1066 set(handles.SwitchVarIndexTime,'String',{'file index'}) 1067 end 1068 else 1069 set(handles.SwitchVarIndexTime,'String',get(handles.SwitchVarIndexTime,'UserData')) 1070 end 1071 SwitchVarIndexTime_Callback(handles.SwitchVarIndexTime,[], handles) 1072 1065 1073 %------------------------------------------------------------------------ 1066 1074 % --- Executes on button press in OK.
Note: See TracChangeset
for help on using the changeset viewer.