Home > omviz > mcagt.m

mcagt

PURPOSE ^

MCAGT Get the values of a NetCDF attribute.

SYNOPSIS ^

function values = mcagt(cdf, var, att)

DESCRIPTION ^

 MCAGT Get the values of a NetCDF attribute.
  MCAGT('CDF','VAR','ATT') gets the VALUES
   of the attribute 'ATT' associated with variable
   'VAR' in the NetCDF file 'CDF'.

 Example:
    values = mcagt('foo.cdf', 'x', 'complex')

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function values = mcagt(cdf, var, att)
0002 % MCAGT Get the values of a NetCDF attribute.
0003 %  MCAGT('CDF','VAR','ATT') gets the VALUES
0004 %   of the attribute 'ATT' associated with variable
0005 %   'VAR' in the NetCDF file 'CDF'.
0006 %
0007 % Example:
0008 %    values = mcagt('foo.cdf', 'x', 'complex')
0009 
0010 if nargin < 3
0011    help mcagt
0012    return
0013 end
0014 
0015 cdfid=mexcdf('open',cdf,'nowrite');
0016 values=mexcdf('attget',cdfid,var,att);
0017 mexcdf('close',cdfid);

Generated on Thu 01-Dec-2005 08:50:35 by m2html © 2003