c_wndchk - Validate an image window using an existing DDR file

SYNTAX

#include "las.h"
#include "util.h"

int c_wndchk

(
     char               *host,
     double             inwind[],
     long               vlwind[]
)

PARAMETERS

host (input, char, length(CMLEN))

Input DDR file name in host format. The number of lines and number of samples are used from the file.

inwind (input, double, length (4))

Defines the input window that is to be checked. The four elements of the window are SL, SS, NL and NS.

vlwind (output, long, length (4))

Defines the output window with window values that are valid.

DESCRIPTION

The c_wndchk() routine is used to check an input window. It retrieves the DDR information from the DDR file then calls c_check_window() to do the actual checking of the window.

RETURN VALUE

c_wndchk() returns

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

The routine c_check_window() does the same window validation as c_wndchk, except that it uses a DDR structure instead of an existing DDR file.