#include "geompak.h"
FUNCTION c_getgrd (hname, grid)
char *hname; struct GEOGRID *grid;
Host file from which the geometric mapping grid is read.
A GEOGRID structure that contains the entire geometric mapping grid.
This routine takes as input the name of the geometric mapping grid file, opens the file, reads the entire mapping grid from disk, and closes the file. This one-step operation is provided since most routines which use geometric mapping grids need the entire grid in memory while doing operations on it.
c_getgrd() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed
The c_getgrd() call is for C only.