This example illustrates how to open a file and write a new description to the first channel.
local int tfid
local string description
local string temp_file
try
temp_file = "./my.pix"
delete temp_file noerror
call CopyFile( GetPCIHOME() + "/demo/irvine.pix", \
temp_file)
tfid = DBOpen(temp_file, "r+")
call DBWriteChanDesc( tfid, 1, "Elevation" )
description = DBReadChanDesc(tfid, 1)
call DBClose(tfid)
print description
onerror
print "Error: "+ GetLastErrorMessage()
endonerror
Elevation
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.