## Copyright (C) 2023 John Donoghue
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; If not, see <http://www.gnu.org/licenses/>.

## -*- texinfo -*-
## @deftypefn {} {[@var{name},@var{nctype},@var{dimids},@var{nattr}] = } netcdf.inqVar (@var{ncid},@var{varid}) 
## Inquires information about a NetCDF variable.
##
## This functions returns the @var{name}, the NetCDF type @var{nctype}, an array of dimension ids 
##
## @var{dimids} and the number of attributes @var{nattr} of the NetCDF variable.
##
## @var{nctype} in an integer corresponding NetCDF constants.
## @seealso{netcdf.inqVarID,netcdf.getConstant}
## @end deftypefn

function varargout = inqVar(varargin)
  if nargout > 0
    [varargout{1:nargout}] = netcdf_inqVar (varargin{:});
  else
    netcdf_inqVar (varargin{:});
  endif
endfunction
