NCDF_INQUIRE

The NCDF_INQUIRE function returns a structure that contains information about an open NetCDF file. This structure of the form:

{ NDIMS:0L, NVARS:0L, NGATTS:0L, RECDIM:0L }

The structure tags are described below.

Examples

See NCDF_VARDEF.

Syntax

Result = NCDF_INQUIRE(Cdfid)

Return Value

The returned structure contains the following tags:

Tag

Description

Ndims

The number of dimensions defined for this NetCDF file.

Nvars

The number of variables defined for this NetCDF file.

Ngatts

The number of global attributes defined for this NetCDF file.

RecDim

The ID of the unlimited dimension, if there is one, for this NetCDF file. If there is no unlimited dimension, RecDim is set to -1.

Arguments

Cdfid

The NetCDF ID, returned from a previous call to NCDF_OPEN, NCDF_CREATE, or NCDF_GROUPDEF.

Keywords

None

Version History

Pre 4.0

Introduced