r.out.ppm3
Converts 3 GRASS raster layers (R,G,B) to a PPM image file.
r.out.ppm3 [-c] red=string green=string blue=string output=string [--verbose] [--quiet] [--qq] [--ui]
Example:
r.out.ppm3 red=string green=string blue=string output=string
grass.script.run_command("r.out.ppm3", red, green, blue, output, flags=None, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("r.out.ppm3", red="string", green="string", blue="string", output="string")
Parameters
red=string [required]
Name of raster map to be used for <red>
green=string [required]
Name of raster map to be used for <green>
blue=string [required]
Name of raster map to be used for <blue>
output=string [required]
Name for new PPM file. (use '-' for stdout)
-c
Add comments to describe the region
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
red : str, required
Name of raster map to be used for <red>
Used as: input, raster
green : str, required
Name of raster map to be used for <green>
Used as: input, raster
blue : str, required
Name of raster map to be used for <blue>
Used as: input, raster
output : str, required
Name for new PPM file. (use '-' for stdout)
flags : str, optional
Allowed values: c
c
Add comments to describe the region
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
DESCRIPTION
r.out.ppm3 converts 3 GRASS raster layers (R,G,B) to a PPM image file, using the current region.
This program converts a GRASS raster map to a PPM image file using the the current region settings.
To get the full area and resolution of the raster map, run:
g.region raster=[mapname]
before running r.out.ppm3.
NOTES
One pixel is written for each cell value, so if ew_res and ns_res differ, the aspect ratio of the resulting image will be off.
SEE ALSO
AUTHOR
Glynn Clements
Based upon r.out.ppm and d.rgb.
SOURCE CODE
Available at: r.out.ppm3 source code
(history)
Latest change: Friday Mar 07 07:39:48 2025 in commit e1e37d8