Routines (alphabetical) > Routines: H > HDF-EOS Routines > EOS_GD_ATTRINFO

# EOS_GD_ATTRINFO

This function returns number type and number of elements (count) of a grid attribute.

## Examples

In this example, we return information about the ScalarFloat attribute:

status = EOS_GD_ATTRINFO(pointID, "ScalarFloat", nt, count)

## Syntax

Result = EOS_GD_ATTRINFO(gridID, attrname, numbertype, count)

## Return Value

Returns SUCCEED (0) if successful and FAIL (–1) otherwise.

## Arguments

### gridID

Grid id (long) returned by EOS_GD_CREATE or EOS_GD_ATTACH.

### attrname

Attribute name (string).

### numbertype

A named variable that will contain the number type (long) of an attribute.

### count

A named variable that will contain the number of total bytes in an attribute (long).

## Keywords

None

## Version History

5.2 | Introduced