This function returns number of entries and descriptive string buffer size for a specified entity. This function can be called before an inquiry routine in order to determine the sizes of the output arrays and descriptive strings.

Examples


In this example, we determine the number of dimension mapping entries.

nmaps = EOS_SW_NENTRIES(swathID, 2)

Syntax


Result = EOS_SW_NENTRIES( swathID, entrycode [, LENGTH=variable] )

Return Value


Number of entries or FAIL (–1) in the case of an improper swath id or entry code.

Arguments


swathID

Swath id (long) returned by EOS_SW_CREATE or EOS_SW_ATTACH.

entrycode

Entrycode (long). Allowable values are:

  • 0 = Dimensions
  • 1 = Dimension Mappings
  • 2 = Indexed Dimension Mappings
  • 3 = Geolocation Fields
  • 4 = Data Fields

Keywords


LENGTH

Set this keyword to a named variable that will contain the length of the string that would be returned by the corresponding inquiry routine, as a long integer.

Version History


5.2

Introduced