UNLOCK

Unlock image channels


EnvironmentsPYTHON :: EASI
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example :: Related

Back to top

Description


Unlocks previously write-locked image channels in a PCIDSK image file so that other programs can write to these channels.
Back to top

Parameters


Name Type Caption Length Value range
FILE * String Input file name 1 - 192  
DBIC Integer Input raster channels 0 -   -1024 -

* Required parameter
Back to top

Parameter descriptions

FILE

Specifies the name of the PCIDSK file which contains the image channels to unlock.

DBIC

Specifies the image channels to unlock.

If this parameter is not specified, all channels are unlocked.

Ranges of channels or segments can be specified with negative values. For example, {1,-4,10} is internally expanded to {1,2,3,4,10}. When you are not specifying a range in this way, only 48 numbers can be specified explicitly.

Back to top

Details

Unlocks previously write-locked image channels in a PCIDSK file so that other functions can write to these channels.

Image channels in PCIDSK files can be write-locked. Write-locked channels can be read but any attempt to write to or modify the contents is prevented. This generally means that write-locked channels can be used as input to any operation but cannot be output to. This is useful for protecting certain channels (for example, the original raw data or completed results) from being overwritten. The LOCK function write-locks specified channels; UNLOCK removes this protection, allowing channels to be overwritten.

Any PCIDSK file (FILE) containing imagery data can have specified image channels (DBIC) unlocked. If no channels are specified, all image channels are unlocked.

Back to top

Example

Channels 1 through 6 and channel 10 on the file irvine.pix contain 'raw' data, and have been previously write-locked. Unlock channel 10.

EASI>file	=	'irvine.pix'
EASI>dbic	=	10

EASI>RUN UNLOCK

Channel 10 can now be used to receive output results.

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