cdflib.inquire
Information about Common Data Format (CDF) file
Syntax
info = cdflib.inquire(cdfId)
Description
info = cdflib.inquire(cdfId)
returns basic
information about a Common Data Format (CDF) file.
Input Arguments
|
Identifier of a CDF file, returned by a call to |
Output Arguments
|
A structure containing the following fields:
|
Examples
Open the example CDF file, and then get basic information about the file:
cdfId = cdflib.open("example.cdf");
info = cdflib.inquire(cdfId)
info = encoding: 'IBMPC_ENCODING' majority: 'ROW_MAJOR' maxRec: 23 numVars: 5 numvAttrs: 1 numgAttrs: 3
% Clean up cdflib.close(cdfId) clear cdfId
Tips
This function corresponds to the CDF library C API routines
CDFinquireCDF
andCDFgetNumgAttributes
.To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.