[GRASS-SVN] r53830 - grass/trunk/raster3d/r3.out.ascii

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 15 00:34:35 PST 2012


Author: huhabla
Date: 2012-11-15 00:34:34 -0800 (Thu, 15 Nov 2012)
New Revision: 53830

Modified:
   grass/trunk/raster3d/r3.out.ascii/r3.out.ascii.html
Log:
Better description of the output ordering.


Modified: grass/trunk/raster3d/r3.out.ascii/r3.out.ascii.html
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/r3.out.ascii.html	2012-11-14 18:37:17 UTC (rev 53829)
+++ grass/trunk/raster3d/r3.out.ascii/r3.out.ascii.html	2012-11-15 08:34:34 UTC (rev 53830)
@@ -40,42 +40,28 @@
 north -> south for rows
 bottom -> top for depths
 </pre></div>
+The header is followed by cell values in <em>floating point</em> format.
+Cell values are exported as a series of horizontal slices in row-major
+order. The data starts with the upper left corner (NW) at the bottom of the data set:
 
-This order is compatible with the <em>r.in.ascii</em> row -> column ordering. The column 
-order can not be changed but the row and depth order. Supported orders are:
+<div class="code"><pre>
+(x, y + rows,     z), (x + 1, y + rows,     z), ... (x + cols, y + rows,     z)
+(x, y + rows,     z), (x + 1, y + rows - 1, z), ... (x + cols, y + rows - 1, z)
+          .                     .                                .
+          .                     .                                .
+          .                     .                                .
+(x, y,   z + depths), (x + 1, y,   z + depths), ... (x + cols, y,   z + depths)
+</pre></div>
 
+This order is compatible with the <em>r.in.ascii</em> row -> column ordering.
+<p>
+Supported orders are:
 <ul>
 <li><b>nsbt</b>: north -> south and bottom -> top ordering which is the default (no flags)</li>
 <li><b>snbt</b>: south -> north and bottom -> top ordering using <em>-r</em> flag</li>
 <li><b>nstb</b>: north -> south and top -> bottom ordering using <em>-d</em> flag</li>
 <li><b>sntb</b>: south -> north and top -> bottom ordering using <em>-rd</em> flag</li>
 </ul>
-
-The header is followed by cell values in <em>floating point</em> format.
-Cell values are output as a series of horizontal slices in row-major
-order. That is in case of the default north -> south and bottom -> top (nsbt) ordering:
-
-<div class="code"><pre>
-  (x, y, z)       (x + 1, y, z)     ...     (x + cols, y, z)
-(x, y + 1, z)   (x + 1, y + 1, z)   ...   (x + cols, y + 1, z)
-      .                 .                           .
-      .                 .                           .
-      .                 .                           .
-(x, y + rows, z) (x + 1, y + rows, z) ... (x + cols, y + rows, z)
-
-
-  (x, y, z + 1)       (x + 1, y, z + 1)     ...     (x + cols, y, z + 1)
-(x, y + 1, z + 1)   (x + 1, y + 1, z + 1)   ...   (x + cols, y + 1, z + 1)
-      .                 .                           .
-      .                 .                           .
-      .                 .                           .
-(x, y + rows, z + 1)   (x + 1, y + rows, z + 1) ... (x + cols, y + rows, z + 1)
-
-and so on.
-</pre></div>
-
-The data starts with the upper left corner (NW) at the bottom of the data set.
-
 <p>One level maps can be imported with <em>r.in.ascii</em> (2D raster) using
 the default <b>nsbt</b> order and removing the header lines "version",
 "order", "top", "bottom" and "levels".



More information about the grass-commit mailing list