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;
|
par = inputParser;
|
||||||
addParamValue(par,'verbosity',0,@isnumeric);
|
addParamValue(par,'verbosity',0,@isnumeric);
|
||||||
addParamValue(par,'debug',0,@isnumeric);
|
addParamValue(par,'debug',0,@isnumeric);
|
||||||
addParamValue(par,'tarmode',0,@isnumeric);
|
addParamValue(par,'tarmode',0,@isnumeric); % deprecated
|
||||||
parse(par,varargin{:});
|
parse(par,varargin{:});
|
||||||
|
|
||||||
% Define sets to be read
|
% 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
|
% Open UCF file and read
|
||||||
obj = ucf('verbosity',par.Results.verbosity,'debug',par.Results.debug);
|
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');
|
ptr = file.pointer('grid.bin');
|
||||||
obj.opentar(ptr);
|
obj.opentar(ptr);
|
||||||
else
|
otherwise
|
||||||
obj.open(file);
|
error('Input file type not supported: %s',class(file));
|
||||||
end
|
end
|
||||||
|
|
||||||
% Read raw data
|
% Read raw data
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue