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

# NCDF_DIMINQ

The NCDF_DIMINQ procedure retrieves the name and size of a dimension in a NetCDF file, given its ID. The size for the unlimited dimension, if any, is the maximum value used so far in writing data for that dimension.

## Examples

See NCDF_VARPUT.

## Syntax

NCDF_DIMINQ, Cdfid, Dimid, Name, Size

## Arguments

### Cdfid

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

### Dimid

The NetCDF dimension ID, returned from a previous call to NCDF_DIMID or NCDF_DIMDEF, or an indexed number from 0 to NDIMS-1 that indexes the desired dimension. The first dimension has a DIMID of 0, the second dimension has a DIMID of 1, and so on.

### Name

A named variable in which the dimension name is returned (a scalar string).

### Size

A named variable in which the size of the dimension is returned (a scalar longword integer)

## Keywords

None

## Version History

Pre 4.0 | Introduced