CDF_CLOSE

The CDF_CLOSE procedure closes the specified Common Data Format file. The CDF's data buffers are flushed, all of the CDF's open files are closed, and the CDF identifier is freed. You must use CDF_CLOSE to close a CDF to guarantee that all modifications you have made are actually written to disk.

Calling Sequence

CDF_CLOSE, Id

Arguments

Id

The CDF ID of the file to be closed, returned from a previous call to CDF_OPEN or CDF_CREATE.

Example

id = CDF_OPEN('open_close.cdf') ; Open a file.

... ; Other CDF_ commands.

CDF_CLOSE, id ; Close the cdf file.