| pktools 2.6.7 Processing Kernel for geospatial data

examples_pkgetmask

# Examples of pkgetmask

pkgetmask -i input.tif -o output.tif -min 0 -nodata 0 -data 1

create mask, setting all negative values to 0 (rest to 1)

pkgetmask -i input.tif -o output.tif -min 0 -max 10 -min 0 -max 250 -b 0 -b 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)