Skip to content
Snippets Groups Projects
Commit 93b14c0b authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

add case {'int8'}

     case {'byte', 'uint8'}
not really important
parent 75586e9a
No related branches found
No related tags found
No related merge requests found
...@@ -360,8 +360,10 @@ for i=1:numel(ncv_keys) ...@@ -360,8 +360,10 @@ for i=1:numel(ncv_keys)
value = int32(s.data__); value = int32(s.data__);
case {'short', 'int16'} case {'short', 'int16'}
value = int16(s.data__); value = int16(s.data__);
case {'byte', 'int8'} case {'int8'}
value = int8(s.data__); value = int8(s.data__);
case {'byte', 'uint8'}
value = uint8(s.data__);
case 'char' case 'char'
value = char(s.data__); value = char(s.data__);
end end
...@@ -418,4 +420,4 @@ t = toc; fprintf('...done (%6.2f sec).\n\n',t); ...@@ -418,4 +420,4 @@ t = toc; fprintf('...done (%6.2f sec).\n\n',t);
% ----------------- % -----------------
netcdf.close(self.nc_id) netcdf.close(self.nc_id)
end % end of write function end % end of write function
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment