bugfix: dropped tarmode flag
This commit is contained in:
parent
57785b9cb9
commit
f74f51a0b5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue