The NCDF_DIMIDSINQ function returns an array of dimension IDs for all dimensions in a given group (and optionally for the group’s parents).

Examples


See the example for NCDF_GROUPNAME.

Syntax


Result = NCDF_DIMIDSINQ( Grpid [, /INCLUDE_PARENTS] )

Return Value


Returns an array of all dimension IDs associated with the specified group. If no dimension IDs exist, or if the file is not a NetCDF 4 file (or a NetCDF 3 file without groups), the scalar value -1 is returned.

Arguments


Grpid

The ID of the group to query, returned from a previous call to NCDF_OPEN, NCDF_CREATE, or NCDF_GROUPDEF.

Keywords


INCLUDE_PARENTS

Set this keyword to also return the IDs of the dimensions associated with the group’s parents.

Version History


8.0

Introduced

See Also


NCDF_DIMDEF, NCDF_VARIDSINQ