CDF_VARINQ
Syntax | Return Value | Arguments | Keywords | Examples | Version History
The CDF_VARINQ function returns a structure containing information about the specified variable in a Common Data Format file.
Syntax
Result = CDF_VARINQ( Id, Variable [, /ZVARIABLE] )
Return Value
The returned structure has the form:
{ IS_ZVAR:0, NAME:"", DATATYPE:"", NUMELEM:0L, $
RECVAR:"", DIMVAR:BYTARR(...) [, DIM:LONARR(...)]}
Note
The DIM field is included in the structure only if IS_ZVAR is one.
Explanation of the Structure Tags
The following table provides structure tag information.
Arguments
Id
The CDF ID, returned from a previous call to CDF_OPEN or CDF_CREATE.
Variable
A string containing the name or an integer containing the index of the variable being inquired.
Keywords
ZVARIABLE
If Variable is a variable ID (as opposed to a variable name) and the variable is a zVariable, set this flag to indicate that the variable ID is a zVariable ID. The default is to assume that Variable is an rVariable ID.
Examples
See the example for CDF_VARGET.
Version History