r3.colors.out - GRASS manual
Author: GRASS Development Team
Description: r3.colors.out: Exports the color table associated with a 3D raster map.
Keywords: raster3d, color table, export

## NAME

r3.colors.out - Exports the color table associated with a 3D raster map.

## KEYWORDS

raster3d, color table, export

## SYNOPSIS

r3.colors.out
r3.colors.out --help
r3.colors.out [-p] map=name [rules=name] format=name color_format=name [--overwrite] [--help] [--verbose] [--quiet] [--ui]

### Flags:

-p
  Output values as percentages
--overwrite
  Allow output files to overwrite existing files
--help
  Print usage summary
--verbose
  Verbose module output
--quiet
  Quiet module output
--ui
  Force launching GUI dialog

### Parameters:

map=name [required]
  Name of 3D raster map
rules=name
  Path to output rules file
  If not given write to standard output
format=name [required]
  Output format
  Options: plain, json
  Default: plain
  plain: Plain text output
  json: JSON (JavaScript Object Notation)
color_format=name [required]
  Color format
  Color format for output values.
  Options: rgb, hex, hsv, triplet
  Default: hex
  rgb: output color in RGB format
  hex: output color in HEX format
  hsv: output color in HSV format (experimental)
  triplet: output color in colon-separated RGB format

## DESCRIPTION

r3.colors.out allows the user to export the color table for a 3D raste map to a file which is suitable as input to r3.colors.

## EXAMPLES

    r3.colors.out map=volume_1 rules=rules.txt
    r3.colors map=volume_2 rules=rules.txt
    r3.colors.out map=volume_1 rules=rules.json format=json

## SEE ALSO

r.colors, r.colors.out, r3.colors v.colors, v.colors.out

## AUTHOR

Glynn Clements

## SOURCE CODE

Available at: r3.colors.out source code (history)

Latest change: Thursday Dec 18 07:11:47 2025 in commit: cf870a5e49fd2643a55de543467edf5c2e61d640

Main index | 3D raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2026 GRASS Development Team, GRASS 8.5.1dev Reference Manual