NCDF_VARINQ

The NCDF_VARINQ function returns a structure that contains information about a NetCDF variable, given its ID. This structure has the form:

{ NAME:"", DATATYPE:"", NDIMS:0L, NATTS:0L, DIM:LONARR(NDIMS) }

This structure is described below.

Examples

See NCDF_VARDEF.

Syntax

Result = NCDF_VARINQ(Cdfid, Varid)

Return Value

The returned structure contains the following tags:

Tag

Description

Name

The name of the variable.

DataType

A string describing the data type of the variable. The string will be one of the following: 'BYTE', 'CHAR', 'INT', 'LONG', 'FLOAT', or 'DOUBLE'.

Ndims

The number of dimensions.

Natts

The number of attributes assigned to this variable.

Dim

A vector of the dimension IDs for the variable dimensions.

Arguments

Cdfid

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

Varid

The NetCDF variable ID, returned from a previous call to NCDF_VARDEF or NCDF_VARID, or the name of the variable.

Version History

Pre 4.0

Introduced