1r.out.bin(1) GRASS GIS User's Manual r.out.bin(1)
2
3
4
6 r.out.bin - Exports a GRASS raster to a binary array.
7
9 raster, export, output
10
12 r.out.bin
13 r.out.bin --help
14 r.out.bin [-ifhbs] input=string [output=string] [null=float]
15 [bytes=integer] [order=string] [--help] [--verbose] [--quiet]
16 [--ui]
17
18 Flags:
19 -i
20 Generate integer output
21
22 -f
23 Generate floating-point output
24
25 -h
26 Export array with GMT compatible header
27
28 -b
29 Generate BIL world and header files
30
31 -s
32 Byte swap output
33
34 --help
35 Print usage summary
36
37 --verbose
38 Verbose module output
39
40 --quiet
41 Quiet module output
42
43 --ui
44 Force launching GUI dialog
45
46 Parameters:
47 input=string [required]
48 Name of input raster map
49
50 output=string
51 Name for output binary map (use output=- for stdout)
52
53 null=float
54 Value to write out for null
55 Default: 0
56
57 bytes=integer
58 Number of bytes per cell
59 Options: 1, 2, 4, 8
60
61 order=string
62 Output byte order
63 Options: big, little, native, swap
64 Default: native
65
67 The r.out.bin program exports a GRASS raster map to a binary array
68 file. Optionally, output can be sent to standard output (stdout) for
69 direct input (pipe) into other applications. Data is exported according
70 to the original GRASS raster type (e.g. float). If the "-i" flag is
71 specified, an integer array is output. The region parameters are
72 printed to stderr.
73
75 With the -h flag, data can be directly used by GMT as Grid Format 1
76 (float) or 2 (short). For example:
77 r.out.bin -h input=grass.raster output=new.grd
78 grdinfo new.grd=1 (if float)
79
80 Exported data can be piped directly into the GMT program xyz2grd.
81 r.out.bin input=grass.raster output=- | xyz2grd -R.... -ZTLf -
82 The example uses the GMT program xyz2grd with the -ZTLf flag indicating
83 that a float array was output.
84
86 r.in.bin, r.in.ascii, r.in.gdal, r.out.ascii
87
89 This program is derived from r.out.ascii with a few modifications.
90 Author: Bob Covill
91
93 Available at: r.out.bin source code (history)
94
95 Main index | Raster index | Topics index | Keywords index | Graphical
96 index | Full index
97
98 © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
99
100
101
102GRASS 7.8.5 r.out.bin(1)