| Contents | Index |
info = cdflib.inquireVar(cdfId,varNum)
info = cdflib.inquireVar(cdfId,varNum) returns information about a variable in a Common Data Format (CDF) file.
cdfId |
Identifier of a CDF file, returned by a call to cdflib.create or cdflib.open. |
varNum |
Numeric value that identifies the variable. Variable numbers are zero-based. |
Open the example CDF file and get information about a variable.
cdfid = cdflib.open('example.cdf');
% Determine if the file contains variables
info = cdflib.inquireVar(cdfid,1)
info =
name: 'Longitude'
datatype: 'cdf_int1'
numElements: 1
dims: [2 2]
recVariance: 0
dimVariance: [1 0]
This function corresponds to the CDF library C API routine CDFinquirezVar. To use these functions, 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.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |