1r.out.bin(1) Grass 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
10
12 r.out.bin
13 r.out.bin help
14 r.out.bin [-ihbs] input=string [output=string] [null=integer]
15
16 Flags:
17 -i Output integer category values, not cell values
18
19 -h Export Array with GMT compatible header
20
21 -b Generate BIL world and header files
22
23 -s Byte Swap output
24
25 Parameters:
26 input=string
27 Name of an existing raster map
28
29 output=string
30 Name for output binary map (use output=- for stdout)
31
32 null=integer
33 Value to write out for null Default: 0
34
36 The r.out.bin program exports a GRASS raster map to a binary array
37 file. Optionally, output can be sent to standard output (stdout) for
38 direct input (pipe) into other applications. Data is exported according
39 to the original GRASS raster type (e.g. float). If the "-i" flag is
40 specified, an integer array is output. The region parameters are
41 printed to stderr.
42
44 With the -h flag, data can be directly used by GMT as Grid Format 1
45 (float) or 2 (short). For example:
46 r.out.bin -h input=grass.raster output=new.grd
47 grdinfo new.grd=1 (if float)
48
49
50 Exported data can be piped directly into the GMT program xyz2grd.
51 r.out.bin input=grass.raster output=- | xyz2grd -R.... -ZTLf -
52 The example uses the GMT program xyz2grd with the -ZTLf flag indicatā
53 ing that a float array was output.
54
56 r.in.bin, r.in.ascii r.out.ascii r.in.arc, r.out.arc
57
59 This program is derived from r.out.ascii with a few modifications.
60 Author: Bob Covill
61
62 Last changed: $Date: 2005/12/12 14:53:40 $
63
64 Full index
65
66
67
68GRASS 6.2.2 r.out.bin(1)