bugfix: dropped tarmode flag

This commit is contained in:
Michael Stumpf (ifhcluster) 2019-03-29 12:20:32 +01:00
parent 57785b9cb9
commit f74f51a0b5
1 changed files with 7 additions and 4 deletions

View File

@ -17,7 +17,7 @@ function [xu,yu,zu,xv,yv,zv,xw,yw,zw,xp,yp,zp,...
par = inputParser;
addParamValue(par,'verbosity',0,@isnumeric);
addParamValue(par,'debug',0,@isnumeric);
addParamValue(par,'tarmode',0,@isnumeric);
addParamValue(par,'tarmode',0,@isnumeric); % deprecated
parse(par,varargin{:});
% Define sets to be read
@ -26,11 +26,14 @@ function [xu,yu,zu,xv,yv,zv,xw,yw,zw,xp,yp,zp,...
% Open UCF file and read
obj = ucf('verbosity',par.Results.verbosity,'debug',par.Results.debug);
if par.Results.tarmode
switch class(file)
case 'char'
obj.open(file);
case {'ustar','ucfmulti'}
ptr = file.pointer('grid.bin');
obj.opentar(ptr);
else
obj.open(file);
otherwise
error('Input file type not supported: %s',class(file));
end
% Read raw data