c_inmnmx - Initializes minimum and maximum arrays for specific data type

SYNTAX

#include "las.h"

FUNCTION c_inmnmx (dtype, totbnd, minval, maxval)

     long                *dtype;
     long                *totbnd;
     double              *minval;
     double              *maxval;

PARAMETERS

dtype (input, integer)

Data type used to initialize minval arrays.

totbnd (input, integer)

Total number of bands to be processed. This is the maximum index into minval arrays.

minval (output, double, length(totbnd))

Minimum pixel value array. It contains the minimum pixel values for each band being processed. It is initialized with the maximum value for the specified data type.

maxval (output, double, length(totbnd))

Maximum pixel value array. It contains the maximum pixel values for each band being processed. It is initialized with the minimum value for the specified data type.

DESCRIPTION

The c_inmnmx() routine is used to initialize the minimum/maximum arrays for the current data type. It sets the elements of the minval array to the maximum allowed value of the data type, and sets the elements of the maxval array to the minimum allowed value of the dtata type.

RETURN VALUE

c_inmnmx() returns

     E_SUCC (0)  --> successful completion
     TYPERR (66) --> invalid data type