c_svmnmx - Writes minimum, maximum, and validity flag values for each band to associated DDR file

SYNTAX

#include "las.h"

FUNCTION c_svmnmx (hname, totbnd, minval, maxval, m_flag)

     char               *hname;
     long               *totbnd;
     double              minval[];
     double              maxval[];
     char               *m_flag;

PARAMETERS

hname (input, character, length(CMLEN))

Image host file name for which the information is to be written.

totbnd (input, integer)

Total number of bands in the output image.

minval (input, double, length(MAXBND))

Array of minimum intensity values.

maxval (input, double, length(MAXBND))

Array of maximum intensity values.

m_flag (input, character, length(8))

A flag ("YES", "NO", or "BOUNDED") indicating whether or not the min and max values were calculated/estimated. An application program can pass the value retrieved from the $MINMAX global ("YES" the minmax was calculated or "NO" it was not calculated). An application program can pass the value of "BOUNDED" when estimated values for minval be calculated.

DESCRIPTION

The c_svmnmx() call is used to ouput the specified minimum, maximum, and validity flag values for each band record of the DDR file associated with image hname.

RETURN VALUE

c_svmnmx() returns

     E_SUCC (0)  --> successful completion
     E_FAIL (-1) --> operation failed
     E_PROT (-2) --> DDR is write protected - No error message is produced
                     from this error