c_getscaleopt - Determine the scaling option as expected by the support routine c_getscale()

SYNTAX

FUNCTION c_getscaleopt (scale_opt, odtype, soption)

    char *scale_opt;
    long odtype;
    long *soption;

PARAMETERS

scale_opt (char *, input)

The scaling option to be used:

     = US:	US scaling
     = GLOBAL:	GLOBAL scaling
     = NONE:	No scaling

odtype (long, input)

The output data type:

     = EBYTE:	Byte data
     = EWORD:	I*2 data
     = ELONG:	I*4 data
     = EREAL:	Float data

soption (long *, output)

The scaling option as expected by c_getscale():

     = AVHRR_BYTE:	AVHRR global byte scaling
     = AVHRR_10BIT:	AVHRR global 10-bit scaling
     = AVHRR_I4:	AVHRR global I*4 scaling
     = AVHRR_REAL:	AVHRR global float scaling
     = US_BYTE:		AVHRR US byte scaling
     = US_I2:		AVHRR US I*2 scaling
     = US_I4:		AVHRR US I*4 scaling
     = US_REAL:		AVHRR US float scaling
     = NO_SCALING:	No scaling

DESCRIPTION

The appropriate scaling option is determined based upon the specified scaling technique and output data type.

NOTE:  For GLOBAL scaling, two byte integer data types could either be
       conventional "I*2" integer or "10-BIT" integer (unsigned values
       from 0-1023).  For the sake of simplicity, AVHRR data that is
       two-byte integer with GLOBAL scaling is ASSUMED to be "10-BIT"
       data.  The "10-BIT" data type will only be returned when GLOBAL
       scaling is specified.  This assumption essentially disables
       conventional "16-bit" integer data with GLOBAL scaling.

RETURN VALUE

c_getscaleopt() returns

    E_SUCC --> Successful completion