r.out.ascii(1)
β¨ r.out.ascii β¨
okay bestie, so this is r.out.ascii(1) from the GRASS GIS User's Manual and it's literally the glow-up your raster needs to go from GRASS-flavored to plain-ASCII-text-flavored π
KEYWORDS: raster, export, output, ASCII π
π SYNOPSIS π
r.out.ascii
r.out.ascii --help
r.out.ascii [-hsmi] input=name [output=name] [precision=integer]
[width=integer] [null_value=string] [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
β¨ Flags β¨
-hβ suppress printing of header information π like, no context, just vibes-sβ write SURFER (Golden Software) ASCII grid π-mβ write MODFLOW (USGS) ASCII array π-iβ force output of integer values π’ no decimals, we're being whole about it--overwriteβ allow output files to overwrite existing files π (yes she will eat your old file, that's the deal)--helpβ print usage summary π«Ά--verboseβ verbose module output π£οΈ--quietβ quiet module output π€«--uiβ force launching GUI dialog π₯οΈβ¨
π Parameters π
input=name[required] β name of input raster map π the main characteroutput=nameβ name for output ASCII grid map (useout=-for stdout) π§precision=integerβ number of significant digits (floating point only) π¬width=integerβ number of values printed before wrapping a line (only SURFER or MODFLOW format) πnull_value=stringβ string to represent null cell (GRASS grid only)- Default:
*
- Default:
π DESCRIPTION π
r.out.ascii converts a user-specified raster map layer (input=name) into an ASCII grid in a text file (output=name) suitable for export to other computer systems. it's giving β¨interoperabilityβ¨
the GRASS program r.in.ascii can be used to perform the reverse function, converting an ASCII file in suitable format to GRASS raster map format. so they're like, opposites, a matched set, besties fr fr π«Ά
to write a SURFER .grd ASCII GRID file (with reverted row order and different header) use the -s flag:
r.out.ascii -s input=inname output=outname.grd [dp=value]
NULL data are coded to "1.70141e+038" for SURFER ASCII GRID files (ignoring the null= parameter). no cap, that number is doing the absolute most π₯
π NOTES π
the output from r.out.ascii may be placed into a file by using the UNIX redirection mechanism; e.g.:
r.out.ascii input=soils output=- > out.file
the output file out.file can then be printed or copied onto a CDROM or floppy disk for export purposes. floppy disk. yes. iconic retro tech moment πΎβ¨
to export the raster values as x,y,z values of cell centers (one per line) use the r.out.xyz module. different module, different slay π¦
π SEE ALSO π
r.in.ascii, r.in.gdal, r.out.bin, r.out.gdal, r.out.xyz
πΈ AUTHORS πΈ
- Michael Shapiro, U.S. Army Construction Engineering Research Laboratory
- Surfer support by Markus Neteler
π¦ SOURCE CODE π¦
Available at: r.out.ascii 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 thing bestie, we ate and left no crumbs π β¨ this was GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, accessed Saturday Jan 17 05:40:51 2026, and honestly? iconic behavior from everyone involved π«Άππ
π¦ 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