PCIDSKCreate

Demonstrates how to create a PCIDSK file.

Remarks

This example illustrates how to create a .pix file that is 512 lines, 512 pixels in size, containing 3 channels, all of type "16s", and the channels are BAND interleaved.

Code

 local int tfid

 try

 delete "Bfile.pix" noerror
 tfid = PCIDSKCreate("Bfile.pix", 512, 512, 3, "16s", "BAND")

 print "File handle: ", tfid

 call DBWriteChanDesc(tfid, 1, "thefirstchan")
 
 call DBClose(tfid)

 onerror
   print "Error: "+ GetLastErrorMessage()
 endonerror

Output

File 1

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