Main Content

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)

Tips

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

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