c_gettyp - Returns the data type of an image

SYNTAX

#include "las.h"

FUNCTION c_gettyp (hname, nmrimg, dtype)

     char                hname[][CMLEN];
     long               *nmrimg;
     long               *dtype;

PARAMETERS

hname (input, character, length(nmrimg),(CMLEN))

Array of image host filenames for which the type type is to be returned.

nmrimg (input, integer)

Number of images specified in parameter hname. In most cases, the parameter nmrimg is returned by the function c_getin().

dtype (output, integer)

Data type of the image(s) to be returned to the calling program.

DESCRIPTION

The c_gettyp() routine is used to return the data type of the image(s). It returns a bad status code if the DDR cannot be read or if the data types of the images are not the same. No error message is output.

RETURN VALUE

c_gettyp() returns

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