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 your ew_res and ns_res aren'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