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

# EOS_SW_DETACH

This function detaches from the swath interface. It should be run before exiting from the swath file for every swath opened by EOS_SW_CREATE or EOS_SW_ATTACH.

## Examples

status = EOS_SW_DETACH(swathID)

## Syntax

Result = EOS_SW_DETACH(swathID)

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

## Keywords

None

## Version History

5.2 | Introduced

## See Also

EOS_SW_ATTACH