cdflib.getVarRecordData
Entire record for variable
Syntax
data = cdflib.getVarRecordData(cdfId,varNum,recNum)
Description
data = cdflib.getVarRecordData(cdfId,varNum,recNum)
returns the data in a record associated with a variable in a Common
Data Format (CDF) file.
Input Arguments
|
Identifier of a CDF file, returned by a call to |
|
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. |
Output Arguments
|
Data in the record. |
Examples
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+13
% Clean up cdflib.close(cdfId) clear cdfId
Tips
This function corresponds to the CDF library C API routine
CDFgetzVarRecordData
.To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.