NCDF_GROUPPARENT

The NCDF_GROUPPARENT function returns the ID of a group’s parent group.

Examples

See the example for NCDF_GROUPNAME.

Syntax

Result = NCDF_GROUPPARENT( Grpid)

Return Value

Returns the ID of a group’s parent group. If the specified group is the root group, or the associated file is not a NetCDF 4 file, 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

None

Version History

8.0

Introduced

See Also

NCDF_FULLGROUPNAME, NCDF_GROUPNAME, NCDF_GROUPSINQ