pktools  2.6.7
Processing Kernel for geospatial data
faq_pkcomposite

Frequently asked questions about pkcomposite

pkcomposite -i input1.tif -i input2.tif -o output.tif -srcnodata 0 -srcnodata 255 -bndnodat 0 -bndnodata 1

will consider 0 in band 0 and 255 in band 1 of input images as no value

pkcomposite -i input1.tif -i input2.tif -o output.tif -srcnodata 0 -bndnodata 0 -bndnodata 1

will consider 0 in both bands 0 and 1 of input images as no value