function urange = calc_sqw_urange (varargin)
% Compute range of data for a collection of data files
%
%   >> urange = calc_sqw_urange (efix, emode, eps_lo, eps_hi, det,...
%                           alatt, angdeg, u, v, psi, omega, dpsi, gl, gs)
%
% Input: (in the following, nfile = no. spe files)
% ------
%   efix    Fixed energy (meV)              [scalar or vector length nfile]
%   emode   Direct geometry=1, indirect geometry=2    [scalar]
%   eps_lo  Lower energy transfer (meV)     [scalar or vector length nfile]
%   eps_hi  Upper energy transfer (meV)     [scalar or vector length nfile]
%   det     Name of detector .par file, or detector structure as read by get_par
%   alatt   Lattice parameters (Ang^-1)     [vector length 3 or array size [nfile,3]]
%   angdeg  Lattice angles (deg)            [vector length 3 or array size [nfile,3]]
%   u       First vector defining scattering plane (r.l.u.)
%                                           [vector length 3 or array size [nfile,3]]
%   v       Second vector defining scattering plane (r.l.u.)
%                                           [vector length 3 or array size [nfile,3]]
%   psi     Angle of u w.r.t. ki (deg)      [scalar or vector length nfile]
%   omega   Angle of axis of small goniometer arc w.r.t. notional u (deg) 
%                                           [scalar or vector length nfile]
%   dpsi    Correction to psi (deg)         [scalar or vector length nfile]
%   gl      Large goniometer arc angle (deg)[scalar or vector length nfile]
%   gs      Small goniometer arc angle (deg)[scalar or vector length nfile]
%
% Output:
% --------
%   urange  Actual range of data in crystal Cartesian coordinates and
%          energy transfer (2x4 array)


% Original author: T.G.Perring
%
% $Revision: 977 $ ($Date: 2015-02-21 18:58:56 +0000 (Sat, 21 Feb 2015) $)


% Gateway routine that calls sqw method
urange = calc_sqw_urange (sqw, varargin{:});
