pkcreatect1
Program to create and import colour table to gtiff image
Usage
FCpkcreatectF [0]
FC-iF
[0]
input
FC-oF
[0]
output
[{FC-ctF
[0]
colortable | FC-minF
[0]
value
FC-maxF
[0]
value}]
[options]
[advanced
options]
Overview
pkcreatect is a utility to include a color table to a raster dataset. You can either define an existing color table (ASCII text file) with the option FC-ctF[0] or define a minimum (FC-minF[0]) and maximum (FC-maxF[0]) value.
Options
- FC
-iF[0] filename, FC--inputF[0] filename -
input image
- FC
-oF[0] filename, FC--outputF[0] filename -
output classification image
- FC
-ctF[0] filename, FC--ctF[0] filename -
colour table in ASCII format having 5 columns: id R G B ALFA (0: transparent, 255: solid)
- FC
-minF[0] number, FC--minF[0] number -
minimum value
- FC
-maxF[0] number, FC--maxF[0] number -
maximum value
options
FC
|
grey scale |
|---|---|
FC
|
Output image format (see also gdal_translate(1)). |
FC
|
Creation option for output file. Multiple options can be specified. |
FC
|
Set image description |
FC
|
verbose |
Advanced options
FC
|
Create legend as png file |
|---|---|
FC
|
number of columns and rows in legend. |
Examples
Attach a color table to image with values between 0 and 50
FC
pkcreatect -i image.tif -o image_ct.tif -min 0 -max 50
F[0]
Attach a grey scale "color" table to image with values between 0 and 100 and create a legend image (annotation needs to be drawn manually)
FC
pkcreatect -i image.tif -o image_ct.tif -min 0 -max 100 -l legend.tif -g
F[0]
Attach a predefined color table to FCimage.tifF[0]. The colortable has 5 entries for the values 0 (black), 1 (red), 2 (green), 3 (blue) and 4 (grey)
FC
cat colortable.txt
0 0 0 0 255
1 255 0 0 255
2 0 255 0 255
3 0 0 255 255
4 100 100 100 255
pkcreatect -i image.tif -o image_ct.tif -ct colortable.txt
F[0]
Remove the color table from an image
FC
pkcreatect -i image.tif -o image_noct.tif -ct none
F[0]
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.