Changeset 1195 for trunk/src/struct2nc.m


Ignore:
Timestamp:
Feb 26, 2026, 4:16:03 PM (5 days ago)
Author:
sommeria
Message:

format of PIV data made more compact/4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/struct2nc.m

    r1194 r1195  
    114114        VarType='';
    115115        switch VarClass{ivar}
    116             case {'single','double'}
     116            case {'single','double','int32','uint32','int64','uint64'}
    117117                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';
    120122            case 'logical'
    121                 VarType='nc_int';
     123                VarType='nc_byte';
    122124                Data.(ListVarName{ivar})=uint8(Data.(ListVarName{ivar}));
    123125        end
Note: See TracChangeset for help on using the changeset viewer.