r.out.ppm3(1)
π r.out.ppm3 β the GRASS GIS bestie that turns three rasters into one cute PPM π
okay so bestie, this is r.out.ppm3(1) from the GRASS GIS User's Manual, and it is literally the glow-up your raster data deserves. it takes three raster layers (R, G, B β you know the vibe) and smooshes them into a single PPM image file. periodt. β¨
π NAME π
r.out.ppm3 β converts 3 GRASS raster layers (R,G,B) to a PPM image file. it's giving color theory. it's giving export. it's giving main character. π
π·οΈ KEYWORDS π·οΈ
raster, export, output
iykyk π
β¨ SYNOPSIS β¨
r.out.ppm3
r.out.ppm3 --help
r.out.ppm3 [-c] red=string green=string blue=string output=string
[--help] [--verbose] [--quiet] [--ui]
π© Flags π©
-cβ add comments to describe the region. so the image is self-aware, love that for it π«Ά--helpβ print usage summary. your emotional support documentation π--verboseβ verbose module output. it will tell you everything π£οΈ--quietβ quiet module output. it's giving silent treatment π--uiβ force launching GUI dialog. for when you want the clicky-clicky experience π±οΈβ¨
π Parameters π
red=string[required] β name of raster map to be used for<red>. the rosy one πΉgreen=string[required] β name of raster map to be used for<green>. the fresh one πΏblue=string[required] β name of raster map to be used for<blue>. the dreamy one π¦output=string[required] β name for new PPM file. (use'-'for stdout). yes, a literal dash means "just yeet it to stdout," iconic π―
π DESCRIPTION π
r.out.ppm3 converts 3 GRASS raster layers (R,G,B) to a PPM image file, using the current region. no cap.
this program converts a GRASS raster map to a PPM image file using the the current region settings. (and yes, the original says "the the" β we are leaving that exactly as it is, it's part of the lore now ππ)
to get the full area and resolutin of the raster map, run:
g.region raster=[mapname]
before running r.out.ppm3. do it in that order bestie, don't skip the warm-up π§
π 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. so likeβ¦ the image might look a lil stretched. that's not a bug, that's just the math being math ππ«
lowkey important: if yourew_resandns_resaren't matching, your output is gonna be squished or smeared. set your region thoughtfully before you export. β
π SEE ALSO π
r.out.ppm, r.in.gdal, d.rgb
go read those next, they're all part of the same friend group π
π AUTHOR π
Glynn Clements
Based upon r.out.ppm and d.rgb. building on the classics, we love to see it π₯
π§Ύ SOURCE CODE π§Ύ
Available at: r.out.ppm3 source code (history)
Accessed: Saturday Jan 17 05:40:53 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
okay that's the whole page bestie!! πβ¨ this was all brought to you by the Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual β and this lil doc lives in GRASS 8.4.2 as r.out.ppm3(1). mwah, go export something gorgeous πππ
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms