[Top] [Prev] [Next] [Bottom]

GRend/mgend

intn GRend(int32 gr_id)
gr_id

IN:

General raster interface identifier returned by GRstart.

Purpose

Terminates the general raster interface session.

Return value

Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.

Description

This routine is used with the GRstart routine to define the extent of a general raster interface session. As with the start routines in the other interfaces, GRend disposes of the internal structures used in the remaining GR routines. Use the general purpose routines Hopen and Hclose to manage file access because the GR routines will not open and close HDF files.

Example

This example illustrates the use of GRstart and GRend in initializing and terminating a GR interface session.

     #include "hdf.h"
     int32 gr_id, file_id, stat;

     file_id = Hopen("myfile", DFACC_WRITE, 0);
     gr_id = GRstart(file_id);
       ...
     stat = GRend(gr_id);
     Hclose(file_id);

 
FORTRAN

integer function mgend(gr_id)

integer gr_id



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.