.TH r.in.ascii 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBr.in.ascii\fR\fR - Converts ASCII raster file to binary raster map layer. .SH KEYWORDS raster, import, conversion .SH SYNOPSIS \fBr.in.ascii\fR .br \fBr.in.ascii help\fR .br \fBr.in.ascii\fR [\-\fBifds\fR] [\fBinput\fR=\fIname\fR] \fBoutput\fR=\fIname\fR [\fBtitle\fR=\fI"phrase"\fR] [\fBmult\fR=\fIfloat\fR] [\fBnv\fR=\fIstring\fR] [\-\-\fBoverwrite\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-i\fR" 4m .br Integer values are imported .IP "\fB\-f\fR" 4m .br Floating point values are imported .IP "\fB\-d\fR" 4m .br Double floating point values are imported .IP "\fB\-s\fR" 4m .br SURFER (Golden Software) ASCII file will be imported .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBinput\fR=\fIname\fR" 4m .br ASCII raster file to be imported. If not given reads from standard input .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output raster map .IP "\fBtitle\fR=\fI"phrase"\fR" 4m .br Title for resultant raster map .IP "\fBmult\fR=\fIfloat\fR" 4m .br Multiplier for ASCII data .br Default: \fI1.0 or read from header\fR .IP "\fBnv\fR=\fIstring\fR" 4m .br String representing NULL value data cell .br Default: \fI* or read from header\fR .PP .SH DESCRIPTION \fIr.in.ascii\fR allows a user to create a (binary) GRASS raster map layer from an ASCII raster input file with (optional) TITLE. .PP The GRASS ASCII \fBinput\fR file has a header section which describes the location and size of the data, followed by the data itself. .PP The header has 6 lines: \fC .DS .br north: xxxxxx.xx .br south: xxxxxx.xx .br east: xxxxxx.xx .br west: xxxxxx.xx .br rows: r .br cols: c .br .DE \fR The north, south, east, and west field values entered are the coordinates of the edges of the geographic region. The rows and cols field values entered describe the dimensions of the matrix of data to follow. The data which follows is \fIr\fR rows of \fIc\fR integers. .PP Optionally the following parameters can be defined in the header section: \fC .DS .br null: nn .br type: float .br multiplier: 2. .br .DE \fR .PP \(dqnull" defines a string or number to be converted to NULL value (no data). .br \(dqtype" defines the data type (int, float double) and is not required. .br \(dqmultiplier" is an optional parameter to multiply each cell value. .SH NOTES The geographic coordinates north, south, east, and west describe the outer edges of the geographic region. They run along the edges of the cells at the edge of the geographic region and \fInot\fR through the center of the cells at the edges. The NW value occurs at the beginning of the first line of data, and the SW value occurs at the beginning of the last line of data. .PP The data (which follows the header section) must contain r \fIx\fR c values, but it is not necessary that all the data for a row be on one line. A row may be split over many lines. .PP \fIr.in.ascii\fR may import \fIinteger\fR, \fIfloating point\fR, or \fIdouble\fR cell types using the \fB-i\fR, \fB-f\fR, and \fB-d\fR flags, respectively. .PP The header information in ESRI Raster ASCII files differs from GRASS. To convert an Arc/Info (ArcView) ASCII grid file into GRASS, see \fIr.in.arc\fR. .PP SURFER (Golden Software) ASCII files may be imported by passing the \fB-s\fR flag. .SH EXAMPLE The following is a sample \fBinput\fR file to \fIr.in.ascii\fR: \fC .DS .br north: 4299000.00 .br south: 4247000.00 .br east: 528000.00 .br west: 500000.00 .br rows: 10 .br cols: 15 .br null: -9999 .br .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 .br .DE \fR .SH SEE ALSO \fI r.out.ascii, r.in.arc, r.in.gdal, r.out.arc, r.in.bin, r3.in.ascii\fR, GRASS ASCII formats \fR .SH AUTHOR Michael Shapiro, U.S. Army Construction Engineering Research Laboratory .br Surfer support by Roger Miller .PP \fILast changed: $Date: 2009-02-04 02:43:30 +0100 (Wed, 04 Feb 2009) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team