1r.out.ascii(1) GRASS GIS User's Manual r.out.ascii(1)
2
3
4
6 r.out.ascii - Converts a raster map layer into a GRASS ASCII text
7 file.
8
10 raster, export, output, ASCII
11
13 r.out.ascii
14 r.out.ascii --help
15 r.out.ascii [-hsmi] input=name [output=name] [precision=integer]
16 [width=integer] [null_value=string] [--overwrite] [--help]
17 [--verbose] [--quiet] [--ui]
18
19 Flags:
20 -h
21 Suppress printing of header information
22
23 -s
24 Write SURFER (Golden Software) ASCII grid
25
26 -m
27 Write MODFLOW (USGS) ASCII array
28
29 -i
30 Force output of integer values
31
32 --overwrite
33 Allow output files to overwrite existing files
34
35 --help
36 Print usage summary
37
38 --verbose
39 Verbose module output
40
41 --quiet
42 Quiet module output
43
44 --ui
45 Force launching GUI dialog
46
47 Parameters:
48 input=name [required]
49 Name of input raster map
50
51 output=name
52 Name for output ASCII grid map (use out=- for stdout)
53
54 precision=integer
55 Number of significant digits (floating point only)
56
57 width=integer
58 Number of values printed before wrapping a line (only SURFER or
59 MODFLOW format)
60
61 null_value=string
62 String to represent null cell (GRASS grid only)
63 Default: *
64
66 r.out.ascii converts a user-specified raster map layer (input=name)
67 into an ASCII grid in a text file (output=name) suitable for export to
68 other computer systems.
69
70 The GRASS program r.in.ascii can be used to perform the reverse func‐
71 tion, converting an ASCII file in suitable format to GRASS raster map
72 format.
73
74 To write a SURFER .grd ASCII GRID file (with reverted row order and
75 different header) use the -s flag:
76 r.out.ascii -s input=inname output=outname.grd [dp=value]
77 NULL data are coded to "1.70141e+038" for SURFER ASCII GRID files
78 (ignoring the null= parameter).
79
81 The output from r.out.ascii may be placed into a file by using the UNIX
82 redirection mechanism; e.g.:
83 r.out.ascii input=soils output=- > out.file
84 The output file out.file can then be printed or copied onto a CDROM or
85 floppy disk for export purposes.
86
87 To export the raster values as x,y,z values of cell centers (one per
88 line) use the r.out.xyz module.
89
91 r.in.ascii, r.in.gdal, r.out.bin, r.out.gdal, r.out.xyz
92
94 Michael Shapiro, U.S. Army Construction Engineering Research Laboratory
95
96 Surfer support by Markus Neteler
97
99 Available at: r.out.ascii source code (history)
100
101 Main index | Raster index | Topics index | Keywords index | Graphical
102 index | Full index
103
104 © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
105
106
107
108GRASS 7.8.5 r.out.ascii(1)