pkdumpimg1
Program to dump image content to ascii or stdout
Usage
FCpkdumpimgF [0]
FC-iF
[0]
input
[FC-oF
[0]
output]
[options]
[advanced
options]
Overview
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 FC-ofF[0] line to dump each pixel value on a separate line, preceded 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 FC-ulxF[0] FC-ulyF[0] FC-lrxF[0] and FC-lryF[0].
Options
FC
|
input image file |
|---|---|
FC
|
Output ASCII file (Default is empty: use STDOUT) |
FC
|
Output format (matrix form or list (x,y,z) form). Default is matrix form |
FC
|
band index to crop |
FC
|
get boundary from extent from polygons in vector file |
FC
|
Upper left x value bounding box (in geocoordinates if georef is true) |
FC
|
Upper left y value bounding box (in geocoordinates if georef is true) |
FC
|
Lower left x value bounding box (in geocoordinates if georef is true) |
FC
|
Lower left y value bounding box (in geocoordinates if georef is true) |
FC
|
verbose (Default: 0) |
Advanced options
FC
|
Output resolution in x (in meter) (0.0: keep original resolution) |
|---|---|
FC
|
Output resolution in y (in meter) (0.0: keep original resolution) |
FC
|
Resampling method (near: nearest neighbour, bilinear: bi-linear interpolation). |
FC
|
set no data value(s) for input image |
FC
|
nodata value for output if out of bounds. |
Examples
We create a 5x5 raster dataset containing all 0 values except for its center (value=1)
FC
cat input.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
F[0]
Use pkascii2img(1) to create an raster dataset from input.txt
FC
pkascii2img -i input.txt -o output.tif -of GTiff -a_srs epsg:3035 -dx 25 -dy 25 -ulx 1000000 -uly 1000000
F[0]
Dump the image content of output.tif to screen
FC
pkdumpimg -i output.tif
F[0]
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.