nc_endefΒΆ

nc_endef takes an open nc file out of define mode. The changes made to the nc file while it was in define mode are checked and committed to disk if no problems occurred. In particular, non-record variables are filled with their fill-values unless nc_setfill has been called with the argument NC_NOFILL. The nc file is then placed in data mode, so that variable data can be read or written.

r = nc_endef(ncid)

Return Value

If the function succeeds, the return value is not equal to -1. If the function fails, the return value is -1.

Parameters

ncid

Identifies the nc file.

id-730951