cdflib.getAttrScope
Scope of attribute
Syntax
scope = cdflib.getAttrScope(cdfId,attrNum)
Description
scope = cdflib.getAttrScope(cdfId,attrNum)
returns the scope of an attribute in a Common Data Format (CDF) file.
Input Arguments
|
Identifier of a CDF file, returned by a call to |
|
Numeric value that specifies the attribute. Attribute numbers are zero-based. |
Output Arguments
|
One of the following character vectors, or its numeric equivalent.
To get the numeric equivalent of these constants, use the |
Examples
Open example CDF and get the scope of the first attribute in the file:
cdfId = cdflib.open("example.cdf");
attrScope = cdflib.getAttrScope(cdfId,0)
attrScope = 'GLOBAL_SCOPE'
% Clean up cdflib.close(cdfId) clear cdfId
Tips
This function corresponds to the CDF library C API routine
CDFgetAttrScope
.To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.