r3.out.bin(1grass)

πŸ’– r3.out.bin β€” the "get ur 3D raster outta here in binary" page πŸ’–

okay bestie, so this is r3.out.bin, a lil member of the GRASS User's Manual family (that's the manual name, she's fancy). She takes a 3D raster map and yeets it into a binary array. That's it. That's the gig. πŸ¦‹

KEYWORDS: raster3d, export, voxel β€” that's the vibe tag, iykyk.


✨ SYNOPSIS ✨

no cap, here's exactly how u call her:

r3.out.bin
r3.out.bin --help
r3.out.bin [-rdi] input=name output=name  [null=float]  bytes=integer
[order=string]   [--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

πŸŽ€ Flags πŸŽ€

  • -r β€” flips the row order in the output, going from north->south to south->north. she's reversing it, your honor πŸ’…
  • -d β€” flips the depth order in the output from bottom->top to top->bottom. yes queen, depth direction matters πŸ”₯
  • -i β€” write the data as integer. whole numbers only babe 🧚
  • --overwrite β€” lets output files straight up overwrite existing files. permission granted πŸ’€
  • --help β€” prints the usage summary, the lil "how do I work this" moment πŸ™ˆ
  • --verbose β€” verbose module output, she's gonna talk more
  • --quiet β€” quiet module output, she's gonna talk less
  • --ui β€” force launches the GUI dialog. pop-up era ✨

🌸 Parameters 🌸

  • input=name [required] β€” Name of input 3D raster map. mandatory bestie, no input no export πŸ’–
  • output=name [required] β€” Name for output file. also mandatory. where's it going? u tell me 🫢
  • null=float β€” Value to write out for null. Default: 0
  • bytes=integer [required] β€” Number of bytes per cell in binary file. Options: 1, 2, 4, 8. required, so pick ur size, no skipping ⭐
  • order=string β€” Output byte order. Options: big, little, native, swap. Default: native. endianness is a lifestyle choice fr fr 🌈

πŸ’œ DESCRIPTION πŸ’œ

So the r3.out.bin program exports a GRASS 3D raster map to a binary array file. Optionally, the output can be send to standard output (stdout) so u can pipe it directly into other applications β€” hello, main character energy πŸŽ€. Data is exported according to the original GRASS 3D raster type (float, double). it's giving "faithful to the source."


πŸ‘‘ NOTES πŸ‘‘

The write order of the rows (north->south to south->north) and the write order of the depths (bottom->top to top->bottom) can be switched. fyi.

The region parameters are printed to stderr when setting the verbose flag. Export of little and big endian byte order is supported. slay πŸ’…

Have a look at the r3.out.ascii manual page, because she describes the internal layout of the 3D raster maps and the supported row and depth switch options. she's the lore-keeper, go read her πŸ“–

ok real talk: if u need the actual structural deets, r3.out.ascii is where it's at. don't be out here guessing.

πŸ“ EXAMPLES πŸ“

Have a look at the examples in r3.in.bin. yes bestie, the examples live over there. go visit 🧚


🌈 SEE ALSO 🌈

  • r3.in.bin
  • r3.in.ascii

πŸ’– AUTHOR πŸ’–

SΓΆren Gebbert, based on r.out.bin from Bob Covill and Glynn Clements. shoutout to the trio, icons only πŸ‘‘


⭐ SOURCE CODE ⭐

Available at: r3.out.bin source code (history)

Latest change: Friday Feb 07 19:16:09 2025 in commit: a82a39f673b97fafcfce1604dc3e6015cb96487a

Main index | 3D raster index | Topics index | Keywords index | Graphical index | Full index

Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual


k bye ily, this was GRASS 8.5.0 showing u r3.out.bin(1grass) β€” go export something cute 🫢✨

πŸ“¦ where this page comes from