.TH r.out.bin 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBr.out.bin\fR\fR - Exports a GRASS raster map to a binary array. .SH KEYWORDS raster, export .SH SYNOPSIS \fBr.out.bin\fR .br \fBr.out.bin help\fR .br \fBr.out.bin\fR [\-\fBifhbs\fR] \fBinput\fR=\fIstring\fR [\fBoutput\fR=\fIstring\fR] [\fBnull\fR=\fIfloat\fR] [\fBbytes\fR=\fIinteger\fR] [\fBorder\fR=\fIstring\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-i\fR" 4m .br Generate integer output .IP "\fB\-f\fR" 4m .br Generate floating-point output .IP "\fB\-h\fR" 4m .br Export array with GMT compatible header .IP "\fB\-b\fR" 4m .br Generate BIL world and header files .IP "\fB\-s\fR" 4m .br Byte swap output .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBinput\fR=\fIstring\fR" 4m .br Name of input raster map .IP "\fBoutput\fR=\fIstring\fR" 4m .br Name for output binary map (use output=- for stdout) .IP "\fBnull\fR=\fIfloat\fR" 4m .br Value to write out for null .br Default: \fI0\fR .IP "\fBbytes\fR=\fIinteger\fR" 4m .br Number of bytes per cell .br Options: \fI1,2,4,8\fR .IP "\fBorder\fR=\fIstring\fR" 4m .br Output byte order .br Options: \fIbig,little,native,swap\fR .br Default: \fInative\fR .PP .SH DESCRIPTION The \fIr.out.bin\fR program exports a GRASS raster map to a binary array file. Optionally, output can be sent to standard output (stdout) for direct input (pipe) into other applications. Data is exported according to the original GRASS raster type (e.g. float). If the "-i" flag is specified, an integer array is output. The region parameters are printed to stderr. .SH NOTES With the \-h flag, data can be directly used by GMT as Grid Format 1 (float) or 2 (short). For example: \fC .DS .br r.out.bin \-h input=grass.raster output=new.grd .br grdinfo new.grd=1 (if float) .br .DE \fR .PP Exported data can be piped directly into the GMT program xyz2grd. \fC .DS .br r.out.bin input=grass.raster output=- | xyz2grd -R.... -ZTLf - .br .DE \fR The example uses the GMT program xyz2grd with the -ZTLf flag indicating that a float array was output. .SH SEE ALSO \fIr.in.bin, r.in.ascii r.out.ascii r.in.arc, r.out.arc\fR .SH AUTHOR This program is derived from \fIr.out.ascii\fR with a few modifications. .br Author: Bob Covill .PP \fILast changed: $Date: 2008-05-16 21:09:06 +0200 (Fri, 16 May 2008) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team