Routines (alphabetical) > Routines: H > HDF Routines > HDF_GR_END

# HDF_GR_END

This procedure terminates the HDF GR interface session identified by the parameter gr_id. HDF_GR_END, together with HDF_GR_START, define the extent of a HDF GR interface session. HDF_GR_END disposes of the internal structures initialized by the corresponding call to HDF_GR_START. There must be a call to HDF_GR_END for each call to HDF_GR_START; failing to provide one may cause loss of data. HDF_GR_START and HDF_GR_END do not manage file access; use HDF_OPEN and HDF_CLOSE to open and close HDF files. HDF_OPEN must be called before HDF_GR_START and HDF_CLOSE must be called after HDF_GR_END. Failure to properly close the HDF file with HDF_GR_END and HDF_CLOSE may result in lost data or corrupted HDF files.

## Syntax

HDF_GR_END, gr_id

## Arguments

### gr_id

HDF GR interface identifier returned by HDF_GR_START.

## Keywords

None

## Version History

5.2 | Introduced