cdflib.close

Close Common Data Format (CDF) file

Syntax

cdflib.close(cdfId)

Description

cdflib.close(cdfId) closes the specified CDF file. cdfId identifies the CDF file.

You must close a CDF to guarantee that all modifications you made since opening the CDF are actually written to the file.

Examples

Open the example CDF file and then close it.

cdfid = cdflib.open('example.cdf');
cdflib.close(cdfid)

References

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

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.

Was this topic helpful?