Changeset 1195 for trunk/src/struct2nc.m
- Timestamp:
- Feb 26, 2026, 4:16:03 PM (5 days ago)
- File:
-
- 1 edited
-
trunk/src/struct2nc.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/struct2nc.m
r1194 r1195 114 114 VarType=''; 115 115 switch VarClass{ivar} 116 case {'single','double' }116 case {'single','double','int32','uint32','int64','uint64'} 117 117 VarType='nc_float'; % store all floating reals as single 118 case {'int8','uint8','int16','uint16','int32','uint32','int64','uint64'} 119 VarType='nc_int'; 118 case {'int16','uint16'} 119 VarType='nc_short'; 120 case {'int8','uint8'} 121 VarType='nc_byte'; 120 122 case 'logical' 121 VarType='nc_ int';123 VarType='nc_byte'; 122 124 Data.(ListVarName{ivar})=uint8(Data.(ListVarName{ivar})); 123 125 end
Note: See TracChangeset
for help on using the changeset viewer.
