Main Content

cdflib.getVersion

Common Data Format (CDF) library version and release information

Syntax

[version,release,increment] = cdflib.getVersion(cdfId)

Description

[version,release,increment] = cdflib.getVersion(cdfId) returns information about the version of the Common Data Format (CDF) library used to create a CDF file.

Input Arguments

cdfId

Identifier of a CDF file, returned by a call to cdflib.create or cdflib.open.

Output Arguments

version

Numeric value indicating the version number of the CDF library.

release

Numeric value indicating the release number of the CDF library.

increment

Numeric value indicating the increment number of the CDF library.

Examples

Open the example CDF file, and then find out the version of the CDF library used to create it:

cdfId = cdflib.open("example.cdf");

[version,release,increment] = cdflib.getVersion(cdfId)
version =

     2


release =

     7


increment =

     0
% Clean up
cdflib.close(cdfId)
clear cdfId

References

This function corresponds to the CDF library C API routine CDFgetVersion.

To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.