pkgetmask
program to create mask image based on values in input raster image
- Provided by: pktools (Version: 2.6.7.6+ds-3build3)
- Report a bug
program to create mask image based on values in input raster image
pkgetmask
-i input -o output [options] [advanced
options]
pkgetmask creates a mask raster dataset from an input raster dataset. Values smaller than the minimum value (-min) or larger than the maximum value (-max) will result in a -nodata value in the mask.
Advanced options
create mask, setting all negative values to 0 (rest to 1)
pkgetmask -i input.tif -o output.tif -min 0 -nodata 0 -data 1
create mask. Mask is set to 0 (default value for -nodata) if either band 0 is not between 0 and 10 OR (default operator) band 1 is not between 0 and 250. Else mask is set to 1 (default value for -data)
pkgetmask -i input.tif -o output.tif -min 0 -max 10 -max 0 -max 250 -b 0 -b 1