Documentation Center

  • Trial Software
  • Product Updates

cdflib.open

Open existing Common Data Format (CDF) file

Syntax

cdfId = cdflib.open(filename)

Description

cdfId = cdflib.open(filename) opens an existing Common Data Format (CDF) file. filename is a text string that identifies the file.

This function returns a CDF file identifier, cdfId.

All CDF files opened this way have the zMode set to zModeon2. Refer to the CDF User's Guide for information about zModes.

Examples

Open the example CDF file:

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

% Clean up
cdflib.close(cdfId)

clear cdfId

References

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

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.

See Also

|

Tutorials

Was this topic helpful?