1r.out.ascii(1) Grass User's Manual r.out.ascii(1)
2
3
4
6 r.out.ascii - Converts a raster map layer into an ASCII text file.
7
9 raster, export
10
12 r.out.ascii
13 r.out.ascii help
14 r.out.ascii [-hsmi] input=string [output=string] [dp=integer]
15 [width=integer] [null=string]
16
17 Flags:
18 -h Suppress printing of header information
19
20 -s Write SURFER (Golden Software) ASCII grid
21
22 -m Write MODFLOW (USGS) ASCII array
23
24 -i Force output of integer values
25
26 Parameters:
27 input=string
28 Name of an existing raster map
29
30 output=string
31 Name for output ASCII grid map (use out=- for stdout)
32
33 dp=integer
34 Number of significant digits (floating point only)
35
36 width=integer
37 Number of values printed before wrapping a line (only SURFER or
38 MODFLOW format)
39
40 null=string
41 String to represent null cell (GRASS grid only) Default: *
42
44 r.out.ascii converts a user-specified raster map layer (input=name)
45 into an ASCII text file (output=name) suitable for export to other com‐
46 puter systems.
47
48 The GRASS program r.in.ascii can be used to perform the reverse func‐
49 tion, converting an ASCII file in suitable format to GRASS raster file
50 format.
51
52 To write a SURFER .grd ASCII GRID file (with reverted row order and
53 different header) use the -s flag:
54 r.out.ascii -s input=inname output=outname.grd [dp=value]
55 NULL data are coded to "1.70141e+038" for SURFER ASCII GRID files
56 (ignoring the null= parameter).
57
59 The output from r.out.ascii may be placed into a file by using the UNIX
60 redirection mechanism; e.g.:
61 r.out.ascii input=soils output=- > out.file
62 The output file out.file can then be printed or copied onto a CDROM or
63 floppy disk for export purposes.
64
66 r.in.ascii, r.in.arc
67
69 Michael Shapiro, U.S. Army Construction Engineering Research Laboratory
70
71 Surfer support by Markus Neteler
72
73 Last changed: $Date: 2005/12/12 14:53:40 $
74
75 Full index
76
77
78
79GRASS 6.2.2 r.out.ascii(1)