Entire record for variable
data = cdflib.getVarRecordData(cdfId,varNum,recNum)
data = cdflib.getVarRecordData(cdfId,varNum,recNum) returns the data in a record associated with a variable 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 identifies the variable in the CDF file. Variable numbers are zero-based.
Numeric value that identifies the record in the variable. Record numbers are zero-based.
Open the example CDF, and then get the data associated with a record in a variable:
cdfid = cdflib.open('example.cdf'); % Get data in first record in first variable in file. recData = cdflib.getVarRecordData(cdfid,0,0) recData = 6.3146e+013 % Clean up cdflib.close(cdfid) clear cdfid
This function corresponds to the CDF library C API routine CDFgetzVarRecordData.
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.