Note: A new GRASS GIS stable version has been released: GRASS GIS 7.4, available here.
Updated manual page: here
The GRASS ASCII input file has a header section which describes the location and size of the data, followed by the data itself.
The header has 6 lines:
north: xxxxxx.xx south: xxxxxx.xx east: xxxxxx.xx west: xxxxxx.xx rows: r cols: c
Optionally the following parameters can be defined in the header section:
null: nn type: float multiplier: 2.
"null" defines a string or number to be converted to NULL value (no
data).
"type" defines the data type (int, float double) and is not required.
"multiplier" is an optional parameter to multiply each cell value.
The data (which follows the header section) must contain r x 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.
r.in.ascii may import integer, floating point, or double cell types using the -i, -f, and -d flags, respectively.
The header information in ESRI Raster ASCII files differs from GRASS. To convert an Arc/Info (ArcView) ASCII grid file into GRASS, see r.in.gdal.
SURFER (Golden Software) ASCII files may be imported by passing the -s flag.
north: 4299000.00 south: 4247000.00 east: 528000.00 west: 500000.00 rows: 10 cols: 15 null: -9999 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Last changed: $Date: 2016-01-16 11:45:50 -0800 (Sat, 16 Jan 2016) $
Available at: r.in.ascii source code (history)
Note: A new GRASS GIS stable version has been released: GRASS GIS 7.4, available here.
Updated manual page: here
Main index | Raster index | Topics index | Keywords index | Full index
© 2003-2018 GRASS Development Team, GRASS GIS 7.0.7svn Reference Manual