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

# EOS_SW_INQDIMS

This function retrieves information about all of the dimensions defined in swath. The dimension list is returned as a string with each dimension name separated by commas.

Note: See STRSPLIT to separate the dimension list.

## Examples

ndims = EOS_SW_INQDIMS(swathID, dimname, dims)

## Syntax

Result = EOS_SW_INQDIMS(swathID, dimname, dim)

## Return Value

Returns number of dimension entries found. If –1, could signify an improper swath id.

## Arguments

### swathID

Swath id (long) returned by EOS_SW_CREATE or EOS_SW_ATTACH.

### dimname

A named variable that will contain the dimension list (string) with entries separated by commas.

### dims

A named variable that will contain an array (long) of size of each dimension.

## Keywords

None

## Version History

5.2 | Introduced