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

# EOS_SW_IDXMAPINFO

This function retrieves the size of the indexed array and the array of indexed elements of the specified geolocation mapping.

## Examples

In this example, we retrieve information about the indexed mapping between the “IdxGeo” and “IdxData” dimensions:

idxsz = EOS_SW_IDXMAPINFO(swathID, "IdxGeo", "IdxData", index)

## Syntax

Result = EOS_SW_IDXMAPINFO(swathID, geodim, datadim, index)

## Return Value

Returns size of indexed array if successful and FAIL (–1) if the specified mapping does not exist.

## Arguments

### swathID

Swath id (long) returned by EOS_SW_CREATE or EOS_SW_ATTACH.

### geodim

Geolocation dimension name (string).

### datadim

Data dimension name (string).

### index

A named variable that will contain an array (long) of indices of the data dimension to which each geolocation element corresponds.

## Keywords

None

## Version History

5.2 | Introduced