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 ifew_resandns_resdiffer, 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.ppmr.in.gdald.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
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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