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

pkdumpimg - program to dump image content to ASCII or STDOUT

Description

pkdumpimg  dumps  the content of a raster dataset to (standard) output (screen or filename).  The default
       is to dump the output in matrix format.  Use -of line to dump each pixel value on a separate  line,  pre‐
       ceded  by its position (x and y value).  You can specify a bounding box to dump with either the extent of
       an OGR vector dataset or via the options -ulx-uly-lrx and -lry.

Example

       We create a 5x5 raster dataset containing all 0 values except for its center (value=1)

       catinput.txt

       0 0 0 0 0
       0 0 0 0 0
       0 0 1 0 0
       0 0 0 0 0
       0 0 0 0 0

       Use pkascii2img(1) to create an raster dataset from input.txtpkascii2img-iinput.txt-ooutput.tif-ofGTiff-a_srsepsg:3035-dx25-dy25-ulx1000000-uly1000000

       Dump the image content of output.tif to screen

       pkdumpimg-ioutput.tif

Name

       pkdumpimg - program to dump image content to ASCII or STDOUT

Options

-ifilename, --inputfilename
              input image file

       -ofilename, --outputfilename
              Output ASCII file (Default is empty: use STDOUT)

       -ofmatrix|line, --oformatmatrix|line
              Output format (matrix form or list (x,y,z) form).  Default is matrix form

       -bband, --bandband
              band index to crop

       -evector, --extentvector
              get boundary from extent from polygons in vector file

       -ulxvalue, --ulxvalue
              Upper left x value bounding box (in geocoordinates if georef is true)

       -ulyvalue, --ulyvalue
              Upper left y value bounding box (in geocoordinates if georef is true)

       -lrxvalue, --lrxvalue
              Lower left x value bounding box (in geocoordinates if georef is true)

       -lryvalue, --lryvalue
              Lower left y value bounding box (in geocoordinates if georef is true)

       -vlevel, --verboselevel
              verbose (Default: 0)

       Advanced options

       -dxvalue, --dxvalue
              Output resolution in x (in meter) (0.0: keep original resolution)

       -dyvalue, --dyvalue
              Output resolution in y (in meter) (0.0: keep original resolution)

       -rresampling, --resampling-methodresampling
              Resampling method (near: nearest neighbour, bilinear: bi-linear interpolation).

       -srcnodatavalue, --srcnodatavalue
              set no data value(s) for input image

       -dstnodatavalue, --dstnodatavalue
              nodata value for output if out of bounds.

See Also

pkascii2img(1)

                                                 01 January 2025                                    pkdumpimg(1)

Synopsis

pkdumpimg-iinput [-ooutput] [options] [advancedoptions]

See Also