r.out.ppm3(1grass)

πŸ’– NAME πŸ’–

r.out.ppm3 β€” hey bestie, this is the one from the GRASS User's Manual (yeah, the 1grass section, she's famous). She converts 3 GRASS raster layers (R, G, B) into a PPM image file. Three layers in, one adorable little image out. Slay. πŸ‘‘


πŸŽ€ KEYWORDS πŸŽ€

raster, export, output

Fr fr those are the keywords, memorize them, they're the vibe check for finding this page again. 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 β€” adds comments to describe the region. cute little annotations, love that for her πŸ“
  • --help β€” prints the usage summary. when u just need the cliff notes πŸ’…
  • --verbose β€” verbose module output. she tells u EVERYTHING and honestly? we listen πŸ—£οΈ
  • --quiet β€” quiet module output. she's giving ✨mysterious✨
  • --ui β€” forces the GUI dialog to launch. point-and-click girlies rise πŸ–±οΈ

🧸 Parameters

  • red=string [required] β€” name of the raster map to be used for red ❀️ (required, no skipping, bestie)
  • green=string [required] β€” name of the raster map to be used for green πŸ’š (also required!!)
  • blue=string [required] β€” name of the raster map to be used for blue πŸ’™ (yes, required too, all three, that's the whole bit)
  • output=string [required] β€” the name for the new PPM file. (use - for stdout β€” like, pipe it somewhere, very main character energy) πŸ“€

🌈 DESCRIPTION 🌈

r.out.ppm3 converts 3 GRASS raster layers (R, G, B) into a PPM image file, using the current region. Not the map's whole region. The current one. The region u set. Very important, like the whole personality of this module revolves around that. 🫢

So basically: this program converts a GRASS raster map into a PPM image file, and it does it with the current region settings. The region is the mood board. Everything is built off the mood board.

Wanna get the full area and resolution of the raster map instead of whatever region u happen to be standing in? Run this:

g.region raster=[mapname]

and do it before running r.out.ppm3. Then she'll have the whole picture to work with. literally. ✨


🧚 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. πŸ’€

Not me warning u nicely: your pic is gonna look stretched if your resolutions don't match. That's just facts, not a bug, she's doing exactly what she said she'd do.


🌸 SEE ALSO 🌸

  • r.out.ppm
  • r.in.gdal
  • d.rgb

go read those too, the lore is deep πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Glynn Clements

Based upon r.out.ppm and d.rgb. Respect the lineage, bestie, she's built different because she's built on those. πŸŽ€


πŸ“¦ SOURCE CODE πŸ“¦

Available at: r.out.ppm3 source code (history)

Latest change: Thursday May 08 20:58:05 2025 in commit: 4144ba81fa125e1549fc52e1cf5feb4fa004be8b

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index


ok that's the whole page, and here's the cute sign-off: Β© 2003-2026 GRASS Development Team, from the GRASS 8.5.0 Reference Manual β€” straight up GRASS 8.5.0 energy, no cap. drink water, set ur region, and go make a PPM. mwah πŸ’‹πŸ’–πŸ¦‹

πŸ“¦ where this page comes from