Processing Kernel for remote sensing data
|
program to apply mask image (set invalid values) to raster image
Usage: pksetmask -i input -m mask [-msknodata value] -o output
Options: [-min value]* [-max value]* [-data value]* [-nodata value]*
Advanced options: [-b band]* [–operator '<'|'='|'<'] [-ot type] [-of format] [-co option]* [-ct table]
The utility pksetmask sets a mask provided with option -m to an input raster dataset. The default operator is '='. Values in the input raster data where the mask has a nodata value (set with the option -msknodata) will then be set to nodata (set with -nodata). Other operators are less than (–operator '<') and larger than (–operator '>').
-short
or --long
options (both --long=value
and --long value
are supported)-h
shows basic options only, long option --help
shows all options short | long | type | default | description |
---|---|---|---|---|
i | input | std::string | Input image | |
m | mask | std::string | Mask image(s) | |
msknodata | msknodata | int | 1 | Mask value(s) where image has nodata. Use one value for each mask, or multiple values for a single mask. |
o | output | std::string | Output mask file | |
nodata | nodata | int | 0 | nodata value to put in image if not valid |
p | operator | char | = | Operator: < = > !. Use operator for each msknodata option |
ot | otype | std::string | Data type for output image ({Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/CInt16/CInt32/CFloat32/CFloat64}). Empty string: inherit type from input image | |
of | oformat | std::string | Output image format (see also gdal_translate). Empty string: inherit from input image | |
co | co | std::string | Creation option for output file. Multiple options can be specified. | |
ct | ct | std::string | color table (file with 5 columns: id R G B ALFA (0: transparent, 255: solid) |
Some examples how to use pksetmask can be found here
Frequently asked questions on pksetmask can be found here