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

# EOS_SW_ATTRINFO

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

## Examples

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

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

## Syntax

Result = EOS_SW_ATTRINFO(swathID, attrname, numbertype, count)

## Return Value

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

## Arguments

### swathID

Swath id (long) returned by EOS_SW_CREATE or EOS_SW_ATTACH.

### attrname

Attribute name (string).

### numbertype

A named variable that will contain the HDF data type (long) of attribute.

### count

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

## Keywords

None

## Version History

5.2 | Introduced