c_getrwt - Reads a resampling weight table from disk

SYNTAX

#include "geompak.h"

FUNCTION c_getrwt (hname, table)

     char               *hname;
     struct RWTAB       *table;

PARAMETERS

hname (input, character, length(CMLEN))

Host file from which the resampling weight table is read.

table (output, RWTAB)

An RWTAB structure that contains the entire resampling weight table.

DESCRIPTION

This routine takes as input the name of the resampling weight table file, opens the file, reads the entire weight table from disk, and closes the file. This one-step operation is provided since most routines which use resampling weight tables need the entire table in memory while doing operations on it.

RETURN VALUE

c_getrwt() returns

     E_SUCC (0) --> successful completion
     E_FAIL (-1) --> operation failed

SPECIAL CONSIDERATIONS:

The c_getrwt() call is for C only.