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

# NCDF_NCIDINQ

The NCDF_NCIDINQ function returns the ID of a group, given the group’s name and parent group’s ID.

## Syntax

Result = NCDF_NCIDINQ( Grpid, Group_name )

## Return Value

Returns the ID of a group whose name is given by Group_name, and whose parent group ID is given by Grpid. If the file is not a valid NetCDF 4 file, the scalar value -1 is returned.

## Arguments

### Grpid

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

### Group_name

The name of the group for which to search.

## Keywords

See the example for NCDF_GROUPNAME.

## Version History

8.0 | Introduced

## See Also

NCDF_FULLGROUPNAME, NCDF_GROUPNAME, NCDF_GROUPPARENT