pktools  2.6.7
Processing Kernel for geospatial data
examples_pkcreatect

Examples of pkcreatect

Attach a color table to image with values between 0 and 50

1 pkcreatect -i image.tif -o image_ct.tif -min 0 -max 50

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)

1 pkcreatect -i image.tif -o image_ct.tif -min 0 -max 100 -l legend.tif -g

Attach a predefined color table to image.tif. The colortable has 5 entries for the values 0 (black), 1 (red), 2 (green), 3 (blue) and 4 (grey)

1 cat colortable.txt
2 
3 0 0 0 0 255
4 1 255 0 0 255
5 2 0 255 0 255
6 3 0 0 255 255
7 4 100 100 100 255
1 pkcreatect -i image.tif -o image_ct.tif -ct colortable.txt

Remove the color table from an image

1 pkcreatect -i image.tif -o image_noct.tif -ct none