OnWorks favicon

d.rgbgrass - Online in the Cloud

Run d.rgbgrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command d.rgbgrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



d.rgb - Displays three user-specified raster maps as red, green, and blue overlays in the
active graphics frame.


display, graphics, raster, RGB


d.rgb --help
d.rgb [-n] red=name green=name blue=name [--help] [--verbose] [--quiet] [--ui]

Make null cells opaque

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog

red=name [required]
Name of raster map to be used for <red>

green=name [required]
Name of raster map to be used for <green>

blue=name [required]
Name of raster map to be used for <blue>


RGB stands for red, green, and blue. d.rgb visually combines three raster maps to form a
color image. For each map, the corresponding component from the layer’s color table is
used (e.g. for the red layer, the red component is used, and so on). In general, the input
raster maps should use a grey-scale color table.


d.rgb does not attempt to quantize the combined image into a fixed number of colors. Nor
does it have an option to generate a composite layer (see r.composite for that). The
image and raster maps will not display properly if the graphics device does not have a
reasonable sampling of the RGB color-space.

If color quality of satellite image color composites seems to appear poor, run
i.colors.enhance on the selected satellite channels.

An alternative is the assignment of grey color tables to each band with r.colors:
r.info -r image.1
r.colors map=image.1 color=grey
r.colors map=image.2 rast=image.1
r.colors map=image.3 rast=image.1

To write out the color composite to a combined R/G/B raster maps, use r.composite.


Visual color composite of a LANDSAT scene (North Carolina sample dataset):
g.region raster=lsat7_2002_10 -p
d.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30

Use d.rgbgrass online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    Download Eclipse Tomcat Plugin
  • 2
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 3
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 4
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 5
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • 6
    This is an application that can also be
    fetched from
    It has been hosted in OnWorks in order
    to be run online in an easi...
    Download jtdx
  • 7
    eSpeak: speech synthesis
    eSpeak: speech synthesis
    Text to Speech engine for English and
    many other languages. Compact size with
    clear but artificial pronunciation.
    Available as a command-line program with
    many ...
    Download eSpeak: speech synthesis
  • More »

Linux commands