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

# EOS_SW_GETFILLVALUE

This function retrieves the fill value for the specified field.

## Examples

In this example, we get the fill value for the “Temperature” field:

status = EOS_SW_GETFILLVALUE(swathID, "Temperature", tempfill)

## Syntax

Result = EOS_SW_GETFILLVALUE(swathID, fieldname, fillvalue)

## 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.

### fieldname

Fieldname (string).

### fillvalue

A named variable that will contain the fill value.

## Keywords

None

## Version History

5.2 | Introduced