r.composite1grass
Combines red, green and blue raster maps into a single composite raster map.
Usage
r.composite
r.composite --help
r.composite [-dc]
red=name
green=name
blue=name
[levels=integer]
[level_red=integer]
[level_green=integer]
[level_blue=integer]
output=name
[--overwrite]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
raster, composite, RGB
Overview
This program combines three raster maps to form a composite RGB map. For each input map layer, the corresponding component from the map’s color table is used (e.g. for the red map, the red component is used, and so on). In general, the maps should use a grey-scale color table.
Notes
The default number of intensity levels for each component is 32, resulting in a total of 32768 possible colors (equivalent to 15 bits per pixel). If significantly more levels than this are used, not only will r.composite take longer to run, but displaying the resulting layer with d.rast will also be significantly slower.
Floyd-Steinberg dithering is optionally used with the -d flag.
Examples
RGB composite of three satellite bands
Color composite of a LANDSAT scene (North Carolina sample dataset):
g.region raster=lsat7_2002_10r.composite blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30 \output=lsat7_2002_rgb
RGB composite with dithering
Creating a composite RGB raster using 32 color levels per layer, with dithering:
r.composite -d red=elevation.r green=elevation.g blue=elevation.b \output=elev.composite
Source code
Available at: r.composite source code (history)
Accessed: Monday Feb 24 17:50:34 2025
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.