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

# EOS_SW_DIMINFO

This function retrieves the size of the specified dimension.

## Examples

In this example, we retrieve information about the dimension, “GeoTrack”:

dimsize = EOS_SW_DIMINFO(swathID, "GeoTrack")

## Syntax

Result = EOS_SW_DIMINFO(swathID, dimname)

## Return Value

Size of dimension or FAIL (–1) if the swath ID or dimension name are invalid.

## Arguments

### swathID

Swath id (long).

### dimname

Dimension name (string).

## Keywords

None

## Version History

5.2 | Introduced