c_putrwt - Writes a resampling weight table to disk

SYNTAX

#include "geompak.h"

FUNCTION c_putrwt (hname, table)

     char                     *hname;
     struct RWTAB             *table;

PARAMETERS

hname (input, character, length(CMLEN))

Host file to which the output resampling weight table is written.

table (input, RWTAB)

An RWTAB structure that contains the entire resampling weight table.

DESCRIPTION

This routine takes as input an entire resampling weight table, creates the output weight table file, writes the weight table to disk, and closes the file. This onestep 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_putrwt() returns

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

SPECIAL CONSIDERATIONS:

The c_putrwt() call is for C only.