Routines (alphabetical) > Routines: N > NCDF Routines > NCDF_CLOSE

# NCDF_CLOSE

The NCDF_CLOSE procedure closes an open NetCDF file. If a writable NetCDF file is not closed before exiting IDL, the disk copy of the NetCDF file may not reflect recent data changes or new definitions.

## Syntax

NCDF_CLOSE, Cdfid

## Arguments

### Cdfid

The NetCDF ID of the file to be closed, returned from a previous call to NCDF_OPEN or NCDF_CREATE.

## Keywords

None

## Version History

Pre 4.0 | Introduced

## See Also

NCDF_ATTINQ