Scope of attribute
scope = cdflib.getAttrScope(cdfId,attrNum)
scope = cdflib.getAttrScope(cdfId,attrNum) returns the scope of an attribute in a Common Data Format (CDF) file.
Identifier of a CDF file, returned by a call to cdflib.create or cdflib.open.
Numeric value that specifies the attribute. Attribute numbers are zero-based.
Either of the following text strings, or its numeric equivalent.
To get the numeric equivalent of these text string constants, use the cdflib.getConstantValue function.
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
This function corresponds to the CDF library C API routine CDFgetAttrScope.
To use this function, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site.
For copyright information, see the cdfcopyright.txt file.