r.out.bin(1grass)
πΎ r.out.bin β the GRASS User's Manual moment
okay bestie, sit down, hydrate, and let me tell you about r.out.bin π
β¨ NAME β¨
r.out.bin β exports a GRASS raster to a binary array. yes. literally that. it takes your raster and yeets it out as raw binary. iconic behavior honestly π¦
π·οΈ KEYWORDS π·οΈ
raster, export, output
πΈ SYNOPSIS πΈ
r.out.bin
r.out.bin --help
r.out.bin [-ifhbs] input=string [output=string] [null=float]
[bytes=integer] [order=string] [--help] [--verbose] [--quiet]
[--ui]
π Flags π
-iβ Generate integer output. you want ints? you get ints π-fβ Generate floating-point output. float girlies rise π-hβ Export array with GMT compatible header. GMT said "let me in" and we said "okay" β¨-bβ Generate BIL world and header files-sβ Byte swap output π--helpβ Print usage summary--verboseβ Verbose module output (it will simply not stop talking, love that for us)--quietβ Quiet module output π€«--uiβ Force launching GUI dialog β¨
π«Ά Parameters π«Ά
input=string[required] β Name of input raster map. required bestie, no skipping πoutput=stringβ Name for output binary map (useoutput=-for stdout) πnull=floatβ Value to write out for null Default:0bytes=integerβ Number of bytes per cell Options:1,2,4,8order=stringβ Output byte order Options:big,little,native,swapDefault:native
π DESCRIPTION π
The r.out.bin program exports a GRASS raster map to a binary array file. periodt.
bestie, you can optionally send the output to standard output (stdout) so it can be piped directly into other applications. it's giving "no middleman" energy π
Data is exported according to the original GRASS raster type (e.g. float). If the -i flag is specified, an integer array is output. The region parameters are printed to stderr. (stderr! not stdout! don't get it twisted π)
π₯ NOTES π₯
With the -h flag, data can be directly used by GMT as Grid Format 1 (float) or 2 (short). for example:
r.out.bin -h input=grass.raster output=new.grd
grdinfo new.grd=1 (if float)
Exported data can be piped directly into the GMT program xyz2grd. chef's kiss π€
r.out.bin input=grass.raster output=- | xyz2grd -R.... -ZTLf -
The example uses the GMT program xyz2grd with the -ZTLf flag indicating that a float array was output. iykyk β
π SEE ALSO π
r.in.bin, r.in.ascii, r.in.gdal, r.out.ascii
π AUTHOR π
This program is derived from r.out.ascii with a few modifications.
Author: Bob Covill π
π§ SOURCE CODE π§
Available at: r.out.bin 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 bestie, every flag, every default, every line, no info lost π
Β© 2003-2026 GRASS Development Team β that's the GRASS 8.5.0 Reference Manual, and this lil manpage lives at r.out.bin in GRASS 8.5.0. 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