PCIDEL2

Delete image channels


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

Back to top

Description


Deletes image channels from a PCIDSK image file created by CIM (separate image files are used for storing each image channel). Image channels are deleted by modifying the PCIDSK database header and (optionally) deleting the image files.
Back to top

Parameters


Name Type Caption Length Value range
FILE * String Input header file name 1 - 192  
DELMODE * String Delete image file 2 - 3 YES | NO
DBIC * Integer Input image channel(s) 1 -    
MONITOR String Monitor mode 0 - 3 ON, OFF
Default: ON

* Required parameter
Back to top

Parameter descriptions

FILE

Specifies the name of the PCIDSK header file to modify.

The input file must have image channels stored as separate image disk files (DBLAYOUT as FILE).

DELMODE

Specifies whether to delete individual image channel files from disk.

Available options are:

DBIC

Specifies the image channel(s) to delete from the PCIDSK database.

The channel number for a deleted channel can be used again by PCIADD2.

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.

MONITOR

The program progress can be monitored by printing the percentage of processing completed. A system parameter, MONITOR, controls this activity.

Available options are:

Back to top

Details

PCIDEL2 deletes specified image channels (DBIC) from a PCIDSK database file (FILE) created by CIM or PCIADD2, where each image channel in the database is stored as a separate image disk file. PCIDEL2 cannot delete image channels created by PCIMOD; use PCIMOD to delete image channels created by PCIMOD.

The option to delete the image files may be specified (DELMODE). If DELMODE="NO", the PCIDSK database is modified so that the specified image channels are marked as deleted in the PCIDSK file header, but the actual image files containing the image data are NOT deleted from disk.

If DELMODE="YES", the PCIDSK database is modified so that the specified image channels are marked as deleted in the PCIDSK file header, and the actual image files containing the image data are actually deleted from disk.

PCIDEL2 changes the numbering of existing channels and removes the deleted channel(s) from the list.

Back to top

Example

Delete channels 1, 3, and 6 from a 512x512 PCIDSK file created by CIM with DBLAYOUT as FILE , which already contains six image channels. The image files pertaining to these image channels are deleted from disk.

EASI>file	=	"image.pix"
EASI>delmode	=	"yes"
EASI>dbic	=	1,3,6

EASI>RUN PCIDEL2

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