%    MEXCDF  provides an interface between netCDF and MATLAB.
%
%    USAGE:
%    	[a,b,...,rcode] = mexcdf(fun_name, file, x,y,...)
%
%       where the values of the output variables a, b, ... and the input 
%       variables x, y, ... depend on the desired netCDF function 
%       which is given in fun_name.
%
%       To maintain compatibility with the CSIRO netCDF - Matlab function
%	calls, rcode is set to zero unless there is an error condition.
%
%    The available function calls are organized in four groups:
%
%    1. netCDF file interface routines
%
%      	nccreate
%	[cdfid,rcode] = mexcdf('nccreate',filename,cmode);
%				where cmode = 'NC_CLOBBER' 
%					    = 'NC_NOCLOBBER' 
%      	ncopen
%	[cdfid,rcode] = mexcdf('ncopen',filename,rwmode);
%				where rwmode = 'NC_NOWRITE' for read only 
%					     = 'NC_WRITE' for read/write
%      	ncclose
%	[rcode] = mexcdf('ncclose',cdfid);
%
%      	ncinquire
%	[ndims,nvars,ngatts,recdim,rcode] = mexcdf('ncinquire',cdfid);
%
%      	ncendef
%	[rcode] = mexcdf('ncendef',cdfid);
%
%	ncredef
%	[rcode] = mexcdf('ncredef',cdfid);
%
%     2. netCDF dimension routines
%
%      	ncdimdef
%	[dimid,rcode] = mexcdf('ncdimdef',cdfid,dim_name,dim_size);
%
%       ncdimid
%	[dimid,rcode] = mexcdf('ncdimid',cdfid,dim_name);
%
%	ncdiminq
%	[dim_name,dim_size,rcode] = mexcdf('ncdiminq',cdfid,dimid);
%
%     3. netCDF variable routines
%
%	ncvardef
%	[varid,rcode] = mexcdf('ncvardef',cdfid,...
%                              var_name,var_type,nvdims,var_dim);
%	ncvarput1
%	[rcode] = mexcdf('ncvarput1',cdfid,varid,corner,value);
%
%	ncvarput
%	[rcode] = mexcdf('ncvarput',cdfid,varid,corner,count,values);
%
%	ncvarid
%	[varid,rcode] = mexcdf('ncvarid',cdfid,var_name);
%
%      	ncvarget1
%	[value,rcode] = mexcdf('ncvarget1',cdfid,varid,corner);
%
%	ncvarget
%	[values,rcode] = mexcdf('ncvarget',cdfid,varid,corner,count);
%
%       ncvarinq
%	[var_name,var_type,nvdims,var_dim,natts,rcode] = ...
%              mexcdf('ncvarinq',cdfid,varid);
%
%    4. netCDF attribute routines
%
%      	ncattput
%	[rcode] = mexcdf('ncattput',cdfid,varid,att_name,att_type,len,values);
%
%	ncattget
%	[values,rcode] = mexcdf('ncattget',cdfid,varid,att_name);
%      
%  	ncattname
%	[attname,rcode] = mexcdf('ncattname', cdfid, varid, attnum);
%
%	ncattinq
%	[att_type,att_len,rcode] = mexcdf('ncattinq',cdfid,varid,att_name);
%
