r.out.bin(1)
πΎ r.out.bin β the GRASS GIS User's Manual era πΎ
okay bestie, gather round, because we're talking about r.out.bin from the GRASS GIS User's Manual and she is that girl π
β¨ NAME β¨
r.out.bin β exports a GRASS raster to a binary array. literally what it says on the tin, no cap π«Ά
π·οΈ 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 (int era, we love her)-fβ generate floating-point output (float girlie, also iconic)-hβ export array with GMT compatible header π-bβ generate BIL world and header files-sβ byte swap output π--helpβ print usage summary--verboseβ verbose module output (she talks a LOT, respect)--quietβ quiet module output (shhh era π€«)--uiβ force launching GUI dialog
π Parameters π
input=string[required] β name of input raster map. yes bestie, you HAVE to give her this one, it's not optional fr froutput=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,swap. default:native
π DESCRIPTION π
so the r.out.bin program exports a GRASS raster map to a binary array file. yes. an actual binary array file. she's giving data conversion main character energy β¨
optionally, the output can be sent to standard output (stdout) so you can pipe it directly into other applications β like, she's flexible, she's accommodating, she's a team player π«Ά
data is exported according to the original GRASS raster type (e.g. float). but if you specify the -i flag, an integer array is output instead. glow-up moment.
oh and heads up: the region parameters are printed to stderr. not stdout. stderr. don't get it twisted π
π NOTES π
with the -h flag, the 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 also be piped directly into the GMT program xyz2grd. the way that pipes just WORK π
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. see, details matter, always read the flags bestie π
π SEE ALSO π
r.in.binr.in.asciir.in.gdalr.out.ascii
go read those too, they're all in the same friend group fr fr π¦
π§ 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)
accessed: Saturday Jan 17 05:40:51 2026
main index | raster index | topics index | keywords index | graphical index | full index
and that's the whole vibe check, bestie π the GRASS Development Team has been holding it down with the Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual β this page lives in the GRASS 8.4.2 era, r.out.bin(1), and honestly? she ate. periodt. π
β¨π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· 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