NAME
pkcreatect - program to create and import colour table to GTiff image
SYNOPSIS
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]
DESCRIPTION
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-gF[0], FC--greyF[0]
-
grey scale
- FC-ofF[0] format, FC--oformatF[0] format
-
Output image format (see also gdal_translate(1)).
- FC-coF[0] option, FC--coF[0] option
-
Creation option for output file. Multiple options can be specified.
- FC-dF[0] description, FC--descriptionF[0] description
-
Set image description
- FC-vF[0], FC--verboseF[0]
-
verbose
Advanced options
- FC-lF[0] filename, FC--filenameF[0] filename
-
Create legend as png file
- FC-dimF[0] cols FC-dimF[0] rows, FC--dimF[0] cols FC--dimF[0] rows
-
number of columns and rows in legend.
EXAMPLE
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]