Changeset 1028 for trunk/src/get_field.m
- Timestamp:
- Jan 8, 2018, 9:52:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r1027 r1028 149 149 ListSwitchVarIndexTime=[ListSwitchVarIndexTime; {'attribute'}];% the time can be chosen as a global attribute 150 150 end 151 152 Check_index=0; 151 153 if Field.MaxDim>=2 152 154 ListSwitchVarIndexTime=[ListSwitchVarIndexTime;{'variable'};{'matrix index'}];% the time can be chosen as a dim index 155 else 156 for ilist=1:numel(Field.Display.VarDimName) 157 NbComponent=numel(Field.Display.VarDimName{ilist}); 158 if NbComponent>=2% multicomponent matrices without coordinate variables (thus not considered in the fct find_field_cell) 159 ListSwitchVarIndexTime=[ListSwitchVarIndexTime;{'matrix index'}];% the time can be chosen as a dim index 160 Check_index=1; 161 break 162 end 163 end 153 164 end 154 165 … … 220 231 if check_vec_input 221 232 set(handles.FieldOption,'Value',3)% set vector selection option 222 else 223 233 else 224 234 set(handles.FieldOption,'Value',2)% set scalar selection option 225 235 end
Note: See TracChangeset
for help on using the changeset viewer.