.TH r3.in.ascii 1grass "" "GRASS 6.4.2" "Grass User's Manual" .SH NAME \fI\fBr3.in.ascii\fR\fR - Converts a 3D ASCII raster text file into a (binary) 3D raster map layer. .SH KEYWORDS raster3d, voxel, import .SH SYNOPSIS \fBr3.in.ascii\fR .br \fBr3.in.ascii help\fR .br \fBr3.in.ascii input\fR=\fIname\fR \fBoutput\fR=\fIname\fR [\fBnv\fR=\fIstring\fR] [\fBtype\fR=\fIstring\fR] [\fBprecision\fR=\fIstring\fR] [\fBcompression\fR=\fIstring\fR] [\fBtiledimension\fR=\fIXxYxZ\fR] [--\fBoverwrite\fR] [--\fBverbose\fR] [--\fBquiet\fR] .SS Flags: .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 map to be imported .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output raster3d map .IP "\fBnv\fR=\fIstring\fR" 4m .br String representing NULL value data cell (use 'none' if no such value) .br Default: \fInone\fR .IP "\fBtype\fR=\fIstring\fR" 4m .br Data type used in the output file .br Options: \fIdefault,double,float\fR .br Default: \fIdefault\fR .IP "\fBprecision\fR=\fIstring\fR" 4m .br Precision used in the output file (default, max, or 0 to 52) .br Default: \fIdefault\fR .IP "\fBcompression\fR=\fIstring\fR" 4m .br The compression method used in the output file .br Options: \fIdefault,rle,none\fR .br Default: \fIdefault\fR .IP "\fBtiledimension\fR=\fIXxYxZ\fR" 4m .br The dimensions of the tiles used in the output file .br Default: \fIdefault\fR .PP .SH DESCRIPTION \fIr3.in.ascii\fR allows a user to create a (binary) GRASS 3D raster map layer from a 3D ASCII raster input file with (optional) TITLE. .PP Note that for compression the \fInone\fR option only specifies that neither LZW nor RLE is used for compression. It does not turn off the compression all together. 3D raster maps do not support non-compressed files. .PP The \fItiledimension\fR parameter defines the dimension of the tiles used in the output file. The format is: XxYxZ .PP The \fInv\fR parameter specifies which value to convert to NULL-value. If the specified value is \fInone\fR, no conversion is performed. Default is \fInone\fR. .SH NOTES The format of the 3D ASCII file: \fC .DS .br north: \fIfloating point\fR .br south: \fIfloating point\fR .br east: \fIfloating point\fR .br west: \fIfloating point\fR .br top: \fIfloating point\fR .br bottom: \fIfloating point\fR .br rows: \fIinteger\fR .br cols: \fIinteger\fR .br levels: \fIinteger\fR .br .DE \fR This header is followed by the cell values in \fIfloating point\fR format organized in rows with constant \fIcol\fR and \fIlevel\fR coordinate. The rows are organized by constant \fIlevel\fR coordinate. Individual cell values are separated by \fIspace\fR or \fICR\fR. .PP NOTE: Currently, after the file has been imported, the stored values are compared with the original data. This feature is used to find bugs in the library at an early stage and will be turned off as soon as confidence has built up. .SH EXAMPLES 4x3x2 sample. Note, that lower-left (SW) corner of the bottom level comes first. This array format, where EW is preserved but NS is flipped, is sometimes known as "ij" coordinates. This is opposite to \fIr.in.ascii\fR's format, which places the SW corner at the beginning of the last row of data. \fC .DS .br north: 3.0 .br south: 0.0 .br east: 4.0 .br west: 0.0 .br top: 2.0 .br bottom: 0.0 .br rows: 3 .br cols: 4 .br levels: 2 .br x1,y1,z1 x2,y1,z1 x3,y1,z1 x4,y1,z1 .br x1,y2,z1 x2,y2,z1 x3,y2,z1 x4,y2,z1 .br x1,y3,z1 x2,y3,z1 x3,y3,z1 x4,y3,z1 .br x1,y1,z2 x2,y1,z2 x3,y1,z2 x4,y1,z2 .br x1,y2,z2 x2,y2,z2 x3,y2,z2 x4,y2,z2 .br x1,y3,z2 x2,y3,z2 x3,y3,z2 x4,y3,z2 .br .DE \fR .PP Sample ASCII voxel map with one layer and several rows and columns (Spearfish area): \fC .DS .br north: 4925010.000000 .br south: 4924890.000000 .br east: 596760.000000 .br west: 596610.000000 .br top: 1.000000 .br bottom: 0.000000 .br rows: 4 .br cols: 5 .br levels: 1 .br 1204.74 1204.48 1204.19 1203.81 1203.39 .br 1203.89 1203.67 1203.34 1202.98 1202.43 .br 1203.05 1202.80 1202.51 1202.11 1201.48 .br 1202.10 1201.92 1201.62 1201.27 1200.68 .br .DE \fR .SH AUTHORS Roman Waupotitsch, Michael Shapiro, Helena Mitasova, Bill Brown, Lubos Mitas, Jaro Hofierka .SH SEE ALSO \fI r.in.ascii, r3.out.ascii, v.to.rast3 \fR .PP \fILast changed: $Date: 2011-09-13 22:13:36 +0200 (Tue, 13 Sep 2011) $\fR .PP Full index .PP © 2003-2011 GRASS Development Team