logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pkcreatect - program to create and import colour table to GTiff image

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 -ct or define a minimum (-min) and maximum (-max) value.

Example

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

       pkcreatect-iimage.tif-oimage_ct.tif-min0-max50

       Attach a grey scale "color" table to image with values between 0 and 100 and create a legend image (anno‐
       tation needs to be drawn manually)

       pkcreatect-iimage.tif-oimage_ct.tif-min0-max100-llegend.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)

       catcolortable.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-iimage.tif-oimage_ct.tif-ctcolortable.txt

       Remove the color table from an image

       pkcreatect-iimage.tif-oimage_noct.tif-ct none

                                                 01 January 2025                                   pkcreatect(1)

Name

       pkcreatect - program to create and import colour table to GTiff image

Options

-ifilename, --inputfilename
              input image

       -ofilename, --outputfilename
              output classification image

       -ctfilename, --ctfilename
              colour table in ASCII format having 5 columns: id R G B ALFA (0: transparent, 255: solid)

       -minnumber, --minnumber
              minimum value

       -maxnumber, --maxnumber
              maximum value

       options

       -g, --grey
              grey scale

       -offormat, --oformatformat
              Output image format (see also gdal_translate(1)).

       -cooption, --cooption
              Creation option for output file.  Multiple options can be specified.

       -ddescription, --descriptiondescription
              Set image description

       -v, --verbose
              verbose

       Advanced options

       -lfilename, --filenamefilename
              Create legend as png file

       -dimcols-dimrows, --dimcols--dimrows
              number of columns and rows in legend.

Synopsis

pkcreatect-iinput-ooutput [-ctcolortable | -minvalue-maxvalue] [options] [advancedoptions]

See Also