DBChanType()

  DBChanType

Description

DBChanType() is used to determine the type of image data stored in an image channel.

Call Signature

string DBChanType ( int/string filespec, int channel_num )

Return Value

string

The channel type is returned as a string which is either "8U" for 8-bit unsigned data, "16U" for 16-bit unsigned data, "16S" for 16-bit signed data or "32R" for 32-bit floating point data.

Arguments

int/string filespec:

This can either be the handle returned by DBOpen(), or the name of an open file.

int channel_num:

The channel number to use.

See also GDB file functions

DBChannels()

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.