Geoscience Reference
In-Depth Information
-w|--weight
Weights (type: short) for the composite, use one weight for each input file
in same order as input files are provided). Use value 1 for equal weights
(default: 1).
-c|--class
classes for multi-band output image: each band represents the number of
observations for one specific class. Use value 0 for no multi-band output
image (default: 0).
-ct|--ct
color table file with 5 columns: id R G B ALFA (0: transparent, 255: solid).
-d|--description
Set image description.
The following compositing rules are supported (set with the option -cr|--
crule ):
overwrite
Overwrite overlapping pixels: the latter input image on the command line over-
rules the previous image.
maxndvi
Create a maximum NDVI (normalized difference vegetation index) composite
from multi-band input images. Use option -cb|--cband to set the indexes of
the red and near infrared bands respectively (e.g. -cb 0 -cb 1).
maxband
Select the pixel with a maximum value in the band specified by option -cb .
minband
Select the pixel with a minimum value in the band specified by option -cb .
mean
Calculate the mean (average) of overlapping pixels.
median
Calculate the median of overlapping pixels.
mode
Select the mode of overlapping pixels (maximum voting): use for Byte images
only.
sum
Calculate the arithmetic sum of overlapping pixels.
A simple usage of pkcomposite is to create a mosaic from two or more input
images. The default composite rule is to overwrite the overlapping pixels, similar to
the GDAL utilities gdalwarp and gdal_merge.py .
pkcomposite -i input1.tif -i input2.tif -o mosaic.tif
 
 
Search WWH ::




Custom Search