Jelajahi Sumber

Major G3d libarary update. The G3D library and raster library use now the same coordinate system. Start is the upper left (NW) corner beginning at the bottom of the region. Several tests have been implemented to verify the correct behavior.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46728 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 14 tahun lalu
induk
melakukan
b5fd968c98
72 mengubah file dengan 1661 tambahan dan 1738 penghapusan
  1. 4 6
      include/G3d.h
  2. 2 2
      lib/g3d/g3dgetvalue.c
  3. 63 20
      lib/g3d/g3dregion.c
  4. 4 12
      lib/g3d/g3dresample.c
  5. 0 68
      lib/g3d/g3dwindow.c
  6. 14 49
      lib/g3d/test/test_coordinate_transform.c
  7. 1 1
      lib/g3d/test/test_main.c
  8. 32 37
      lib/g3d/test/test_put_get_value.c
  9. 135 149
      raster/r.to.rast3/main.c
  10. 210 211
      raster/r.to.rast3elev/main.c
  11. 1 1
      raster3d/base/r3.mask.main.c
  12. 5 3
      raster3d/r3.cross.rast/test.r3.cross.rast.sh
  13. 5 5
      raster3d/r3.cross.rast/test_cross_section_result.ref
  14. 5 5
      raster3d/r3.cross.rast/test_cross_section_slice_0.ref
  15. 5 5
      raster3d/r3.cross.rast/test_cross_section_slice_1.ref
  16. 5 5
      raster3d/r3.cross.rast/test_cross_section_slice_2.ref
  17. 5 5
      raster3d/r3.cross.rast/test_cross_section_slice_3.ref
  18. 5 5
      raster3d/r3.cross.rast/test_cross_section_slice_4.ref
  19. 5 5
      raster3d/r3.cross.rast/test_cross_section_slice_5.ref
  20. 2 2
      raster3d/r3.in.ascii/main.c
  21. 8 8
      raster3d/r3.in.ascii/r3.in.ascii.html
  22. 2 2
      raster3d/r3.out.ascii/main.c
  23. 9 10
      raster3d/r3.out.ascii/test.r3.out.ascii.sh
  24. 21 21
      raster3d/r3.out.ascii/test_double_nsbt_null.ref
  25. 21 21
      raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_1.ref
  26. 21 21
      raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_2.ref
  27. 21 21
      raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_3.ref
  28. 21 21
      raster3d/r3.out.ascii/test_double_nsbt_null_no_header.ref
  29. 21 21
      raster3d/r3.out.ascii/test_double_nsbt_null_prec5.ref
  30. 21 21
      raster3d/r3.out.ascii/test_double_nstb_null.ref
  31. 21 21
      raster3d/r3.out.ascii/test_double_snbt_null.ref
  32. 21 21
      raster3d/r3.out.ascii/test_double_sntb_null.ref
  33. 21 21
      raster3d/r3.out.ascii/test_double_sntb_null_prec8.ref
  34. 21 21
      raster3d/r3.out.ascii/test_float_nsbt_null.ref
  35. 21 21
      raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_1.ref
  36. 21 21
      raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_2.ref
  37. 21 21
      raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_3.ref
  38. 21 21
      raster3d/r3.out.ascii/test_float_nsbt_null_no_header.ref
  39. 21 21
      raster3d/r3.out.ascii/test_float_nsbt_null_prec5.ref
  40. 21 21
      raster3d/r3.out.ascii/test_float_nstb_null.ref
  41. 21 21
      raster3d/r3.out.ascii/test_float_snbt_null.ref
  42. 21 21
      raster3d/r3.out.ascii/test_float_sntb_null.ref
  43. 21 21
      raster3d/r3.out.ascii/test_float_sntb_null_prec8.ref
  44. 1 1
      raster3d/r3.out.vtk/main.c
  45. 1 2
      raster3d/r3.out.vtk/test.r3.out.vtk.sh
  46. 23 23
      raster3d/r3.out.vtk/test_volume_null_1_cells.ref
  47. 23 23
      raster3d/r3.out.vtk/test_volume_null_1_cells_elevation.ref
  48. 227 227
      raster3d/r3.out.vtk/test_volume_null_1_cells_rgb_vect.ref
  49. 23 23
      raster3d/r3.out.vtk/test_volume_null_1_points.ref
  50. 23 23
      raster3d/r3.out.vtk/test_volume_null_1_points_elevation.ref
  51. 227 227
      raster3d/r3.out.vtk/test_volume_null_1_points_rgb_vect.ref
  52. 14 11
      raster3d/r3.out.vtk/writeVTKData.c
  53. 2 6
      raster3d/r3.to.rast/main.c
  54. 1 2
      raster3d/r3.to.rast/test.r3.to.rast.sh
  55. 5 5
      raster3d/r3.to.rast/test_raster_slice_1_00001.ref
  56. 5 5
      raster3d/r3.to.rast/test_raster_slice_1_00002.ref
  57. 5 5
      raster3d/r3.to.rast/test_raster_slice_1_00003.ref
  58. 5 5
      raster3d/r3.to.rast/test_raster_slice_1_00004.ref
  59. 5 5
      raster3d/r3.to.rast/test_raster_slice_1_00005.ref
  60. 7 7
      raster3d/r3.to.rast/test_raster_slice_2_00001.ref
  61. 7 7
      raster3d/r3.to.rast/test_raster_slice_2_00002.ref
  62. 7 7
      raster3d/r3.to.rast/test_raster_slice_2_00003.ref
  63. 7 7
      raster3d/r3.to.rast/test_raster_slice_2_00004.ref
  64. 7 7
      raster3d/r3.to.rast/test_raster_slice_2_00005.ref
  65. 10 10
      raster3d/r3.to.rast/test_raster_slice_3_00001.ref
  66. 10 10
      raster3d/r3.to.rast/test_raster_slice_3_00002.ref
  67. 10 10
      raster3d/r3.to.rast/test_raster_slice_3_00003.ref
  68. 10 10
      raster3d/r3.to.rast/test_raster_slice_3_00004.ref
  69. 10 10
      raster3d/r3.to.rast/test_raster_slice_3_00005.ref
  70. 15 0
      raster3d/raster3dintro.html
  71. 3 3
      vector/v.to.rast3/main.c
  72. 21 21
      vector/v.vol.rst/user1.c

+ 4 - 6
include/G3d.h

@@ -448,10 +448,10 @@ void G3d_adjustRegionRes(G3D_Region *);
 void G3d_extract2dRegion(G3D_Region *, struct Cell_head *);
 void G3d_extract2dRegion(G3D_Region *, struct Cell_head *);
 void G3d_regionToCellHead(G3D_Region *, struct Cell_head *);
 void G3d_regionToCellHead(G3D_Region *, struct Cell_head *);
 int G3d_readRegionMap(const char *, const char *, G3D_Region *);
 int G3d_readRegionMap(const char *, const char *, G3D_Region *);
-int G3d_isValidLocation(G3D_Map *, double, double, double);
-void G3d_location2coord(G3D_Map *, double, double, double, int *, int *, int *);
-void G3d_location2coord2(G3D_Map *, double, double, double, int *, int *, int *);
-
+int G3d_isValidLocation(G3D_Region *, double, double, double);
+void G3d_location2coord(G3D_Region *, double, double, double, int *, int *, int *);
+void G3d_location2coord2(G3D_Region *, double, double, double, int *, int *, int *);
+void G3d_coord2location(G3D_Region *, double, double, double, double *, double *, double *);
 /* grass/src/libes/g3d/g3dresample.c */
 /* grass/src/libes/g3d/g3dresample.c */
 void G3d_nearestNeighbor(G3D_Map *, int, int, int, void *, int);
 void G3d_nearestNeighbor(G3D_Map *, int, int, int, void *, int);
 void G3d_setResamplingFun(G3D_Map *, void (*)());
 void G3d_setResamplingFun(G3D_Map *, void (*)());
@@ -478,8 +478,6 @@ G3D_Region *G3d_windowPtr(void);
 void G3d_setWindow(G3D_Region *);
 void G3d_setWindow(G3D_Region *);
 void G3d_setWindowMap(G3D_Map *, G3D_Region *);
 void G3d_setWindowMap(G3D_Map *, G3D_Region *);
 void G3d_getWindow(G3D_Region *);
 void G3d_getWindow(G3D_Region *);
-void G3d_location2WindowCoord(G3D_Map *, double, double, double, int *, int *, int *);
-int G3d_isValidLocationWindow(G3D_Map *, double, double, double);
 
 
 /* grass/src/libes/g3d/g3dwindowio.c */
 /* grass/src/libes/g3d/g3dwindowio.c */
 void G3d_useWindowParams(void);
 void G3d_useWindowParams(void);

+ 2 - 2
lib/g3d/g3dgetvalue.c

@@ -96,7 +96,7 @@ G3d_getWindowValue(G3D_Map * map, double north, double east, double top,
 {
 {
     int col, row, depth;
     int col, row, depth;
 
 
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
+    G3d_location2coord(&(map->window), north, east, top, &col, &row, &depth);
 
 
     /* if (row, col, depth) outside window return NULL value */
     /* if (row, col, depth) outside window return NULL value */
     if ((row < 0) || (row >= map->window.rows) ||
     if ((row < 0) || (row >= map->window.rows) ||
@@ -133,7 +133,7 @@ G3d_getRegionValue(G3D_Map * map, double north, double east, double top,
 {
 {
     int row, col, depth;
     int row, col, depth;
 
 
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);
 
 
     /* if (row, col, depth) outside region return NULL value */
     /* if (row, col, depth) outside region return NULL value */
     if ((row < 0) || (row >= map->region.rows) ||
     if ((row < 0) || (row >= map->region.rows) ||

+ 63 - 20
lib/g3d/g3dregion.c

@@ -238,19 +238,19 @@ G3d_readRegionMap(const char *name, const char *mapset, G3D_Region * region)
  *  Returns 1 if region-coordinates <em>(north, west, bottom)</em> are
  *  Returns 1 if region-coordinates <em>(north, west, bottom)</em> are
  * inside the region of <em>map</em>. Returns 0 otherwise.
  * inside the region of <em>map</em>. Returns 0 otherwise.
  *
  *
- *  \param map
+ *  \param REgion
  *  \param north
  *  \param north
  *  \param east
  *  \param east
  *  \param top
  *  \param top
  *  \return int
  *  \return int
  */
  */
 
 
-int G3d_isValidLocation(G3D_Map * map, double north, double east, double top)
+int G3d_isValidLocation(G3D_Region *region, double north, double east, double top)
 {
 {
-    return ((north >= map->region.south) && (north <= map->region.north) &&
-	    (east >= map->region.west) && (east <= map->region.east) &&
-	    (((top >= map->region.bottom) && (top <= map->region.top)) ||
-	     ((top <= map->region.bottom) && (top >= map->region.top))));
+    return ((north >= region->south) && (north <= region->north) &&
+	    (east >= region->west) && (east <= region->east) &&
+	    (((top >= region->bottom) && (top <= region->top)) ||
+	     ((top <= region->bottom) && (top >= region->top))));
 }
 }
 
 
 /*---------------------------------------------------------------------------*/
 /*---------------------------------------------------------------------------*/
@@ -272,24 +272,24 @@ int G3d_isValidLocation(G3D_Map * map, double north, double east, double top)
  */
  */
 
 
 void
 void
-G3d_location2coord(G3D_Map * map, double north, double east, double top,
+G3d_location2coord(G3D_Region *region, double north, double east, double top,
 		   int *x, int *y, int *z)
 		   int *x, int *y, int *z)
 {
 {
     double col, row, depth;
     double col, row, depth;
     
     
-    col = (east - map->region.west) / (map->region.east -
-				      map->region.west) * (double)(map->region.cols);
-    row = (north - map->region.south) / (map->region.north -
-					map->region.south) * (double)(map->region.rows);
-    depth = (top - map->region.bottom) / (map->region.top -
-				       map->region.bottom) * (double)(map->region.depths);
-    /*
-    printf("G3d_location2coord col %g row %g depth %g\n", col, row, depth);
-    */  
+    col = (east - region->west) / (region->east -
+				      region->west) * (double)(region->cols);
+    row = (north - region->south) / (region->north -
+					region->south) * (double)(region->rows);
+    depth = (top - region->bottom) / (region->top -
+				       region->bottom) * (double)(region->depths);
     
     
     *x = (int)col;
     *x = (int)col;
-    *y = (int)row;
+    /* Adjust row to start at the northern edge*/
+    *y = region->rows - (int)row - 1;
     *z = (int)depth;
     *z = (int)depth;
+        
+    G_debug(4, "G3d_location2coord x %i y %i z %i\n", *x, *y, *z);
 }
 }
 
 
 
 
@@ -311,11 +311,54 @@ G3d_location2coord(G3D_Map * map, double north, double east, double top,
  */
  */
 
 
 void
 void
-G3d_location2coord2(G3D_Map * map, double north, double east, double top,
+G3d_location2coord2(G3D_Region *region, double north, double east, double top,
 		   int *x, int *y, int *z)
 		   int *x, int *y, int *z)
 {
 {
-    if (!G3d_isValidLocation(map, north, east, top))
+    if (!G3d_isValidLocation(region, north, east, top))
 	G3d_fatalError("G3d_location2coord2: location not in region");
 	G3d_fatalError("G3d_location2coord2: location not in region");
 
 
-    G3d_location2coord(map, north, east, top, x, y, z);
+    G3d_location2coord(region, north, east, top, x, y, z);
+}
+
+/*!
+ * \brief 
+ *
+ *  Converts cell-coordinates <em>(x, y, z)</em> into region-coordinates 
+ * <em>(north, east, top)</em>. 
+ *
+ *  * <b>Note:</b> x, y and z is a double:
+ *  - x+0.0 will return the easting for the western edge of the column.
+ *  - x+0.5 will return the easting for the center of the column.
+ *  - x+1.0 will return the easting for the eastern edge of the column.
+ * 
+ *  - y+0.0 will return the northing for the northern edge of the row.
+ *  - y+0.5 will return the northing for the center of the row.
+ *  - y+1.0 will return the northing for the southern edge of the row.
+ * 
+ *  - z+0.0 will return the top for the lower edge of the depth.
+ *  - z+0.5 will return the top for the center of the depth.
+ *  - z+1.0 will return the top for the upper edge of the column.
+ *
+ * <b>Note:</b> The result is a <i>double</i>. Casting it to an
+ * <i>int</i> will give the column, row and depth number.
+ * 
+ * 
+ *  \param map
+ *  \param x
+ *  \param y
+ *  \param z
+ *  \param north
+ *  \param east
+ *  \param top
+ *  \return void
+ */
+
+void
+G3d_coord2location(G3D_Region * region, double x, double y, double z, double *north, double *east, double *top)
+{
+    *north = region->north - y * region->ns_res;
+    *east = region->west + x * region->ew_res;
+    *top = region->bottom + z * region->tb_res; 
+        
+    G_debug(4, "G3d_coord2location north %g east %g top %g\n", *north, *east, *top);
 }
 }

+ 4 - 12
lib/g3d/g3dresample.c

@@ -25,22 +25,14 @@ void
 G3d_nearestNeighbor(G3D_Map * map, int x, int y, int z, void *value,
 G3d_nearestNeighbor(G3D_Map * map, int x, int y, int z, void *value,
 		    int type)
 		    int type)
 {
 {
-
     double north, east, top;
     double north, east, top;
     int row, col, depth;
     int row, col, depth;
 
 
-    /* convert (x, y, z) into (north, east, top) */
-
-	north = ((double)y + 0.5) / (double)map->window.rows *
-	(map->window.north - map->window.south) + map->window.south;
-    east = ((double)x + 0.5) / (double)map->window.cols *
-	(map->window.east - map->window.west) + map->window.west;
-    top = ((double)z + 0.5) / (double)map->window.depths *
-	(map->window.top - map->window.bottom) + map->window.bottom;
-
-    /* convert (north, east, top) into (row, col, depth) */
+    /* convert (x, y, z) window coordinates into (north, east, top) */
+    G3d_coord2location(&(map->window), (double)x + 0.5, (double)y + 0.5, (double)z + 0.5, &north, &east, &top);
 
 
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);
+    /* convert (north, east, top) into map region coordinates (row, col, depth) */
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);
 
 
     /* if (row, col, depth) outside map region return NULL value */
     /* if (row, col, depth) outside map region return NULL value */
     if ((row < 0) || (row >= map->region.rows) ||
     if ((row < 0) || (row >= map->region.rows) ||

+ 0 - 68
lib/g3d/g3dwindow.c

@@ -94,71 +94,3 @@ int G3d_isValidLocationWindow(G3D_Map * map, double north, double east, double t
 	    (((top >= map->window.bottom) && (top <= map->window.top)) ||
 	    (((top >= map->window.bottom) && (top <= map->window.top)) ||
 	     ((top <= map->window.bottom) && (top >= map->window.top))));
 	     ((top <= map->window.bottom) && (top >= map->window.top))));
 }
 }
-
-/*---------------------------------------------------------------------------*/
-
-
-/*!
- * \brief 
- *
- *  Converts window-coordinates <em>(north, east,
- *  top)</em> into cell-coordinates <em>(x, y, z)</em>.
- *
- *  \param map
- *  \param north
- *  \param east
- *  \param top
- *  \param x
- *  \param y
- *  \param z
- *  \return void
- */
-
-void
-G3d_location2WindowCoord(G3D_Map * map, double north, double east, double top,
-		   int *x, int *y, int *z)
-{
-    double col, row, depth;
-    
-    col = (east - map->window.west) / (map->window.east -
-				      map->window.west) * (double)(map->window.cols);
-    row = (north - map->window.south) / (map->window.north -
-					map->window.south) * (double)(map->window.rows);
-    depth = (top - map->window.bottom) / (map->window.top -
-				       map->window.bottom) * (double)(map->window.depths);
-    /*
-    printf("G3d_location2WindowCoord col %g row %g depth %g\n", col, row, depth);
-    */
-    
-    *x = (int)col;
-    *y = (int)row;
-    *z = (int)depth;
-    
-}
-
-/*!
- * \brief 
- *
- *  Converts window-coordinates <em>(north, east,
- *  top)</em> into cell-coordinates <em>(x, y, z)</em>.
- *  This function calls G3d_fatalError in case location is not in window.
- *
- *  \param map
- *  \param north
- *  \param east
- *  \param top
- *  \param x
- *  \param y
- *  \param z
- *  \return void
- */
-
-void
-G3d_location2WindowCoord2(G3D_Map * map, double north, double east, double top,
-		   int *x, int *y, int *z)
-{
-    if (!G3d_isValidLocationWindow(map, north, east, top))
-	G3d_fatalError("G3d_location2WindowCoord2: location not in window");
-    
-    G3d_location2WindowCoord(map, north, east, top, x, y, z);
-}

+ 14 - 49
lib/g3d/test/test_coordinate_transform.c

@@ -61,13 +61,13 @@ int test_coordinate_transform(void)
     /* The window is the same as the map region ... of course */
     /* The window is the same as the map region ... of course */
     G3d_setWindowMap(map, &region);
     G3d_setWindowMap(map, &region);
     
     
-    G_message("Test the upper right corner, coordinates must be col = 9, row = 14, depth = 4");
+    G_message("Test the upper right corner, coordinates must be col = 9, row = 0, depth = 4");
     
     
     /*
     /*
      ROWS
      ROWS
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
-    0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15
+   15   14   13   12   11   10    9    8    7    6    5    4    3    2    1    0
           
           
     COLS
     COLS
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000
@@ -83,40 +83,26 @@ int test_coordinate_transform(void)
     east=  9999.9;
     east=  9999.9;
     top =  999.9;
     top =  999.9;
         
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
-    if(region.cols - 1 != col || region.rows - 1 != row || region.depths - 1 != depth) {
+    if(region.cols - 1 != col || 0 != row || region.depths - 1 != depth) {
         G_message("Error in G3d_location2coord");
         G_message("Error in G3d_location2coord");
         sum++;
         sum++;
     }
     }
     
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if(region.cols - 1 != col || region.rows - 1 != row || region.depths - 1 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
-    
-    G_message("Test the lower left corner, coordinates must be col = row = depth = 0");
+    G_message("Test the lower left corner, coordinates must be col = 0 row = 14 depth = 0");
     
     
     north = 1000.0;
     north = 1000.0;
     east= 5000.0;
     east= 5000.0;
     top = 0.0;
     top = 0.0;
         
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
-    if(0 != col || 0 != row || 0 != depth) {
+    if(0 != col || 14 != row || 0 != depth) {
         G_message("Error in G3d_location2coord");
         G_message("Error in G3d_location2coord");
         sum++;
         sum++;
     }
     }
     
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if(0 != col || 0 != row || 0 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
-    
     G_message("Test the center, coordinates must be col = 4 row = 7 depth = 2");
     G_message("Test the center, coordinates must be col = 4 row = 7 depth = 2");
     
     
     
     
@@ -124,60 +110,39 @@ int test_coordinate_transform(void)
     east= 7499.9;
     east= 7499.9;
     top = 500.0;
     top = 500.0;
         
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
     if((region.cols - 1)/2 != col || (region.rows - 1)/2 != row || (region.depths - 1)/2 != depth) {
     if((region.cols - 1)/2 != col || (region.rows - 1)/2 != row || (region.depths - 1)/2 != depth) {
         G_message("Error in G3d_location2coord");
         G_message("Error in G3d_location2coord");
         sum++;
         sum++;
     }
     }
     
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if((region.cols - 1)/2 != col || (region.rows - 1)/2 != row || (region.depths - 1)/2 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
-    
-    G_message("Test the n=3000.1, e=7000.1 and t=800.1, coordinates must be col = row = depth = 4");
+    G_message("Test the n=3000.1, e=7000.1 and t=800.1, coordinates must be col = 4 row = 10 depth = 4");
     
     
     north = 3000.1;
     north = 3000.1;
     east= 7000.1;
     east= 7000.1;
     top = 800.1;
     top = 800.1;
         
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
-    if(4 != col || 4 != row || 4 != depth) {
+    if(4 != col || map->region.rows - 5 != row || 4 != depth) {
         G_message("Error in G3d_location2coord");
         G_message("Error in G3d_location2coord");
         sum++;
         sum++;
     }
     }
     
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if(4 != col || 4 != row || 4 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
-    
-    G_message("Test the n=2999.9, e=6999.9 and t=799.9, coordinates must be col = row = depth = 3");
+    G_message("Test the n=2999.9, e=6999.9 and t=799.9, coordinates must be col = 3 row = 11 depth = 3");
     
     
     north = 2999.9;
     north = 2999.9;
     east= 6999.9;
     east= 6999.9;
     top = 799.9;
     top = 799.9;
         
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
-    if(3 != col || 3 != row || 3 != depth) {
+    if(3 != col || map->region.rows - 4 != row || 3 != depth) {
         G_message("Error in G3d_location2coord");
         G_message("Error in G3d_location2coord");
         sum++;
         sum++;
     }
     }
     
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if(3 != col || 3 != row || 3 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
-    
     G3d_closeCell(map);
     G3d_closeCell(map);
     
     
     G_remove("grid3", "test_coordinate_transform");
     G_remove("grid3", "test_coordinate_transform");

+ 1 - 1
lib/g3d/test/test_main.c

@@ -105,7 +105,7 @@ int main(int argc, char *argv[]) {
             i = 0;
             i = 0;
             if (param.unit->answers)
             if (param.unit->answers)
                 while (param.unit->answers[i]) {
                 while (param.unit->answers[i]) {
-                    if (strcmp(param.unit->answers[i], "coor") == 0)
+                    if (strcmp(param.unit->answers[i], "coord") == 0)
                         returnstat += unit_test_coordinate_transform();
                         returnstat += unit_test_coordinate_transform();
                     if (strcmp(param.unit->answers[i], "putget") == 0)
                     if (strcmp(param.unit->answers[i], "putget") == 0)
                         returnstat += unit_test_put_get_value();
                         returnstat += unit_test_put_get_value();

+ 32 - 37
lib/g3d/test/test_put_get_value.c

@@ -40,6 +40,7 @@ int unit_test_put_get_value(void)
     sum += test_put_get_value_fcell();
     sum += test_put_get_value_fcell();
     sum += test_put_get_value_resampling();
     sum += test_put_get_value_resampling();
 
 
+
     if (sum > 0)
     if (sum > 0)
 	G_warning(_("\n-- g3d put/get value unit tests failure --"));
 	G_warning(_("\n-- g3d put/get value unit tests failure --"));
     else
     else
@@ -89,7 +90,7 @@ int test_put_get_value_dcell(void)
      ROWS
      ROWS
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000 north
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000 north
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
-    0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15 region
+   15   14   13   12   11   10    9    8    7    6    5    4    3    2    1    0 region
           
           
     COLS
     COLS
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000 east
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000 east
@@ -103,7 +104,7 @@ int test_put_get_value_dcell(void)
     */
     */
     
     
     for(z = 0; z < region.depths; z++) {
     for(z = 0; z < region.depths; z++) {
-        for(y = 0; y < region.rows; y++) {
+        for(y = 0; y < region.rows; y++) { /* From the north to the south */
             for(x = 0; x < region.cols; x++) {
             for(x = 0; x < region.cols; x++) {
                 /* Add cols, rows and depths and put this in the map */
                 /* Add cols, rows and depths and put this in the map */
                 value = x + y + z;
                 value = x + y + z;
@@ -116,23 +117,21 @@ int test_put_get_value_dcell(void)
     
     
     /* Reread the map and compare the expected results */
     /* Reread the map and compare the expected results */
     
     
-    G_message("Get the value of the lower left corner -> 0");
+    G_message("Get the value of the upper left corner -> 0");
     
     
-    north = region.south;
-    east = region.west;
-    top = region.bottom;
     
     
     col = row = depth = 0;
     col = row = depth = 0;
-    north = region.south + region.ns_res * row;
+    north = region.north - 0.1; /* north would be out of bounds therefor -0.1 */
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
     sum += test_resampling_dcell(map, north, east, top, col, row, depth, 1);
     sum += test_resampling_dcell(map, north, east, top, col, row, depth, 1);
     
     
+    
     G_message("Get the value of x == y == z == 1 -> x + y + z == 3");
     G_message("Get the value of x == y == z == 1 -> x + y + z == 3");
     
     
     col = row = depth = 1;
     col = row = depth = 1;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -143,7 +142,7 @@ int test_put_get_value_dcell(void)
     col = 4;
     col = 4;
     row = 3;
     row = 3;
     depth = 2;
     depth = 2;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -154,7 +153,7 @@ int test_put_get_value_dcell(void)
     col = 9;
     col = 9;
     row = 14;
     row = 14;
     depth = 4;
     depth = 4;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -165,9 +164,9 @@ int test_put_get_value_dcell(void)
     col = 10;
     col = 10;
     row = 15;
     row = 15;
     depth = 5;
     depth = 5;
-    north = region.south + region.ns_res * 15;
-    east = region.west + region.ew_res * 10;
-    top = region.bottom + region.tb_res * 5;
+    north = region.north - region.ns_res * (row + 1);
+    east = region.west + region.ew_res * col;
+    top = region.bottom + region.tb_res * depth;
     
     
     G3d_getRegionValue(map, north, east, top, &value, DCELL_TYPE);
     G3d_getRegionValue(map, north, east, top, &value, DCELL_TYPE);
     G3d_getValue(map, col, row, depth, &value_ref, DCELL_TYPE);
     G3d_getValue(map, col, row, depth, &value_ref, DCELL_TYPE);
@@ -244,12 +243,8 @@ int test_put_get_value_fcell(void)
     
     
     G_message("Get the value of the lower left corner -> 0");
     G_message("Get the value of the lower left corner -> 0");
     
     
-    north = region.south;
-    east = region.west;
-    top = region.bottom;
-    
     col = row = depth = 0;
     col = row = depth = 0;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -258,7 +253,7 @@ int test_put_get_value_fcell(void)
     G_message("Get the value of x == y == z == 1 -> x + y + z == 3");
     G_message("Get the value of x == y == z == 1 -> x + y + z == 3");
     
     
     col = row = depth = 1;
     col = row = depth = 1;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -269,7 +264,7 @@ int test_put_get_value_fcell(void)
     col = 4;
     col = 4;
     row = 3;
     row = 3;
     depth = 2;
     depth = 2;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -280,7 +275,7 @@ int test_put_get_value_fcell(void)
     col = 9;
     col = 9;
     row = 14;
     row = 14;
     depth = 4;
     depth = 4;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -288,9 +283,12 @@ int test_put_get_value_fcell(void)
         
         
     G_message("Get the value of x == 10 y == 15 z == 5 -> x + y + z = NAN");
     G_message("Get the value of x == 10 y == 15 z == 5 -> x + y + z = NAN");
     
     
-    north = region.south + region.ns_res * 15;
-    east = region.west + region.ew_res * 10;
-    top = region.bottom + region.tb_res * 5;
+    col = 10;
+    row = 15;
+    depth = 5;
+    north = region.north - region.ns_res * (row + 1);
+    east = region.west + region.ew_res * col;
+    top = region.bottom + region.tb_res * depth;
     
     
     G3d_getRegionValue(map, north, east, top, &value, FCELL_TYPE);
     G3d_getRegionValue(map, north, east, top, &value, FCELL_TYPE);
     G3d_getValue(map, 10, 15, 5, &value_ref, FCELL_TYPE);
     G3d_getValue(map, 10, 15, 5, &value_ref, FCELL_TYPE);
@@ -364,9 +362,9 @@ int test_put_get_value_resampling(void)
      ROWS
      ROWS
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000 north
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000 north
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
-    0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15 region
+   15   14   13   12   11   10    9    8    7    6    5    4    3    2    1    0 region
     |    |    |    |    |    |    |    |    |    |    |    |    |    |    |    |
     |    |    |    |    |    |    |    |    |    |    |    |    |    |    |    |
-    0    2    4    6    8   10   12   14   16   18   20   22   24   26   28   30 window
+   30   28   26   24   22   20   18   16   14   12   10    8    6    4    2    0 window
           
           
     COLS
     COLS
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000 east
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000 east
@@ -383,7 +381,7 @@ int test_put_get_value_resampling(void)
     */
     */
     
     
     for(z = 0; z < region.depths; z++) {
     for(z = 0; z < region.depths; z++) {
-        for(y = 0; y < region.rows; y++) {
+        for(y = 0; y < region.rows; y++) {  /* North to south */
             for(x = 0; x < region.cols; x++) {
             for(x = 0; x < region.cols; x++) {
                 /* Add cols, rows and depths and put this in the map */
                 /* Add cols, rows and depths and put this in the map */
                 value = x + y + z;
                 value = x + y + z;
@@ -396,13 +394,12 @@ int test_put_get_value_resampling(void)
     
     
     /* Reread the map and compare the expected results */
     /* Reread the map and compare the expected results */
     
     
-    G_message("Get the value of the lower left corner -> 0");
-    
-    north = region.south;
-    east = region.west;
-    top = region.bottom;
+    G_message("Get the value of the upper left corner -> 0");
     
     
     col = row = depth = 0;
     col = row = depth = 0;
+    north = region.north - region.ns_res * (row + 1);
+    east = region.west + region.ew_res * col;
+    top = region.bottom + region.tb_res * depth;
     
     
     sum += test_resampling_dcell(map, north, east, top, col, row, depth, 2);
     sum += test_resampling_dcell(map, north, east, top, col, row, depth, 2);
     
     
@@ -410,7 +407,7 @@ int test_put_get_value_resampling(void)
     
     
     
     
     col = row = depth = 1;
     col = row = depth = 1;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -421,8 +418,7 @@ int test_put_get_value_resampling(void)
     col = 7;
     col = 7;
     row = 9;
     row = 9;
     depth = 3;
     depth = 3;
-    
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     
@@ -433,8 +429,7 @@ int test_put_get_value_resampling(void)
     col = 9;
     col = 9;
     row = 14;
     row = 14;
     depth = 4;
     depth = 4;
-    
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     top = region.bottom + region.tb_res * depth;
     
     

+ 135 - 149
raster/r.to.rast3/main.c

@@ -1,20 +1,20 @@
 
 
 /****************************************************************************
 /****************************************************************************
-*
-* MODULE:       r.to.rast3 
-*   	    	
-* AUTHOR(S):    Original author 
-*               Soeren Gebbert soerengebbert@gmx.de
-* 		08 01 2005 Berlin
-* PURPOSE:      Converts 2D raster map slices to one 3D volume map  
-*
-* COPYRIGHT:    (C) 2005 by the GRASS Development Team
-*
-*               This program is free software under the GNU General Public
-*   	    	License (>=v2). Read the file COPYING that comes with GRASS
-*   	    	for details.
-*
-*****************************************************************************/
+ *
+ * MODULE:       r.to.rast3 
+ *   	    	
+ * AUTHOR(S):    Original author 
+ *               Soeren Gebbert soerengebbert@gmx.de
+ * 		08 01 2005 Berlin
+ * PURPOSE:      Converts 2D raster map slices to one 3D volume map  
+ *
+ * COPYRIGHT:    (C) 2005 by the GRASS Development Team
+ *
+ *               This program is free software under the GNU General Public
+ *   	    	License (>=v2). Read the file COPYING that comes with GRASS
+ *   	    	for details.
+ *
+ *****************************************************************************/
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
@@ -25,28 +25,28 @@
 #include <grass/config.h>
 #include <grass/config.h>
 
 
 /*- params and global variables -----------------------------------------*/
 /*- params and global variables -----------------------------------------*/
-typedef struct
-{
+typedef struct {
     struct Option *input, *output, *tilesize;
     struct Option *input, *output, *tilesize;
     struct Flag *mask;
     struct Flag *mask;
 } paramType;
 } paramType;
 
 
-paramType param;		/*params */
+paramType param; /*params */
 int globalRastMapType;
 int globalRastMapType;
 int globalG3dMapType;
 int globalG3dMapType;
 
 
 
 
 /*- prototypes --------------------------------------------------------------*/
 /*- prototypes --------------------------------------------------------------*/
-void fatal_error(void *map, int *fd, int depths, char *errorMsg);	/*Simple Error message */
-void set_params();		/*Fill the paramType structure */
-void raster_to_g3d(void *map, G3D_Region region, int *fd);	/*Write the raster */
-int open_input_raster_map(const char *name);	/*opens the outputmap */
-void close_input_raster_map(int fd);	/*close the map */
+void fatal_error(void *map, int *fd, int depths, char *errorMsg); /*Simple Error message */
+void set_params(); /*Fill the paramType structure */
+void raster_to_g3d(void *map, G3D_Region region, int *fd); /*Write the raster */
+int open_input_raster_map(const char *name); /*opens the outputmap */
+void close_input_raster_map(int fd); /*close the map */
 
 
 
 
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Error handling ********************************************************** */
 /* Error handling ********************************************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void fatal_error(void *map, int *fd, int depths, char *errorMsg)
 void fatal_error(void *map, int *fd, int depths, char *errorMsg)
 {
 {
@@ -54,14 +54,14 @@ void fatal_error(void *map, int *fd, int depths, char *errorMsg)
 
 
     /* Close files and exit */
     /* Close files and exit */
     if (map != NULL) {
     if (map != NULL) {
-	/* should unopen map here! but this functionality is not jet implemented */
-	if (!G3d_closeCell(map))
-	    G3d_fatalError(_("Could not close the map"));
+        /* should unopen map here! but this functionality is not jet implemented */
+        if (!G3d_closeCell(map))
+            G3d_fatalError(_("Could not close the map"));
     }
     }
 
 
     if (fd != NULL) {
     if (fd != NULL) {
-	for (i = 0; i < depths; i++)
-	    close_input_raster_map(fd[i]);
+        for (i = 0; i < depths; i++)
+            close_input_raster_map(fd[i]);
     }
     }
 
 
     G3d_fatalError(errorMsg);
     G3d_fatalError(errorMsg);
@@ -71,6 +71,7 @@ void fatal_error(void *map, int *fd, int depths, char *errorMsg)
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Setg up the arguments we are expecting ********************************** */
 /* Setg up the arguments we are expecting ********************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void set_params()
 void set_params()
 {
 {
@@ -97,6 +98,7 @@ void set_params()
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Write the raster maps into one G3D map ********************************** */
 /* Write the raster maps into one G3D map ********************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void raster_to_g3d(void *map, G3D_Region region, int *fd)
 void raster_to_g3d(void *map, G3D_Region region, int *fd)
 {
 {
@@ -114,92 +116,74 @@ void raster_to_g3d(void *map, G3D_Region region, int *fd)
     rast = Rast_allocate_buf(globalRastMapType);
     rast = Rast_allocate_buf(globalRastMapType);
 
 
     G_debug(3, "raster_to_g3d: Writing %i raster maps with %i rows %i cols.",
     G_debug(3, "raster_to_g3d: Writing %i raster maps with %i rows %i cols.",
-	    depths, rows, cols);
+            depths, rows, cols);
 
 
     /*Every Rastermap */
     /*Every Rastermap */
-    for (z = 0; z < depths; z++) {	/*From the bottom to the top */
-	G_debug(4, "Writing g3d slice %i", z + 1);
-	for (y = 0; y < rows; y++) {
-	    G_percent(y, rows - 1, 10);
-
-	    Rast_get_row(fd[z], rast, y, globalRastMapType);
-
-	    for (x = 0, ptr = rast; x < cols; x++,
-		 ptr =
-		 G_incr_void_ptr(ptr, Rast_cell_size(globalRastMapType))) {
-		if (globalRastMapType == CELL_TYPE) {
-		    if (Rast_is_null_value(ptr, globalRastMapType)) {
-			G3d_setNullValue(&dvalue, 1, DCELL_TYPE);
-		    }
-		    else {
-			dvalue = *(CELL *) ptr;
-		    }           
-            /* Because we read raster rows from north to south, but the coordinate system
-             of the g3d cube read from south to north we need to adjust the
-             Cube coordinates row = rows - y - 1.
-             */
-		    if (G3d_putValue
-			(map, x, rows - y - 1, z, (char *)&dvalue, DCELL_TYPE) < 0)
-			fatal_error(map, fd, depths,
-				    "Error writing double data");
-		}
-		else if (globalRastMapType == FCELL_TYPE) {
-		    if (Rast_is_null_value(ptr, globalRastMapType)) {
-			G3d_setNullValue(&fvalue, 1, FCELL_TYPE);
-		    }
-		    else {
-			fvalue = *(FCELL *) ptr;
-		    }
-            /* Because we read raster rows from north to south, but the coordinate system
-             of the g3d cube read from south to north we need to adjust the
-             Cube coordinates row = rows - y - 1.
-             */
-		    if (G3d_putValue
-			(map, x, rows - y - 1, z,(char *)&fvalue, FCELL_TYPE) < 0)
-			fatal_error(map, fd, depths,
-				    "Error writing float data");
-		}
-		else if (globalRastMapType == DCELL_TYPE) {
-		    if (Rast_is_null_value(ptr, globalRastMapType)) {
-			G3d_setNullValue(&dvalue, 1, DCELL_TYPE);
-		    }
-		    else {
-			dvalue = *(DCELL *) ptr;
-		    }
-            /* Because we read raster rows from north to south, but the coordinate system
-             of the g3d cube read from south to north we need to adjust the
-             Cube coordinates row = rows - y - 1.
-             */
-		    if (G3d_putValue
-			(map, x, rows - y - 1, z,(char *)&dvalue, DCELL_TYPE) < 0)
-			fatal_error(map, fd, depths,
-				    "Error writing double data");
-
-		}
-
-	    }
-	}
-	G_debug(2, "\nDone\n");
+    for (z = 0; z < depths; z++) { /*From the bottom to the top */
+        G_percent(z, depths, 1);
+        G_debug(4, "Writing g3d slice %i", z + 1);
+        for (y = 0; y < rows; y++) { /* From north to south */
+
+            Rast_get_row(fd[z], rast, y, globalRastMapType);
+
+            for (x = 0, ptr = rast; x < cols; x++,
+                ptr =
+                G_incr_void_ptr(ptr, Rast_cell_size(globalRastMapType))) {
+                if (globalRastMapType == CELL_TYPE) {
+                    if (Rast_is_null_value(ptr, globalRastMapType)) {
+                        G3d_setNullValue(&dvalue, 1, DCELL_TYPE);
+                    } else {
+                        dvalue = *(CELL *) ptr;
+                    }
+                    if (G3d_putValue
+                        (map, x, y, z, (char *) &dvalue, DCELL_TYPE) < 0)
+                        fatal_error(map, fd, depths,
+                                    "Error writing double data");
+                } else if (globalRastMapType == FCELL_TYPE) {
+                    if (Rast_is_null_value(ptr, globalRastMapType)) {
+                        G3d_setNullValue(&fvalue, 1, FCELL_TYPE);
+                    } else {
+                        fvalue = *(FCELL *) ptr;
+                    }
+                    if (G3d_putValue
+                        (map, x, y, z, (char *) &fvalue, FCELL_TYPE) < 0)
+                        fatal_error(map, fd, depths,
+                                    "Error writing float data");
+                } else if (globalRastMapType == DCELL_TYPE) {
+                    if (Rast_is_null_value(ptr, globalRastMapType)) {
+                        G3d_setNullValue(&dvalue, 1, DCELL_TYPE);
+                    } else {
+                        dvalue = *(DCELL *) ptr;
+                    }
+                    if (G3d_putValue
+                        (map, x, y, z, (char *) &dvalue, DCELL_TYPE) < 0)
+                        fatal_error(map, fd, depths,
+                                    "Error writing double data");
+                }
+            }
+        }
     }
     }
 
 
+	G_percent(1, 1, 1);
 
 
     if (rast)
     if (rast)
-	G_free(rast);
+        G_free(rast);
 
 
 }
 }
 
 
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Main function, open the raster maps and create the G3D raster map ******* */
 /* Main function, open the raster maps and create the G3D raster map ******* */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 int main(int argc, char *argv[])
 int main(int argc, char *argv[])
 {
 {
     G3D_Region region;
     G3D_Region region;
     struct Cell_head window2d;
     struct Cell_head window2d;
     struct GModule *module;
     struct GModule *module;
-    void *map = NULL;		/*The 3D Rastermap */
+    void *map = NULL; /*The 3D Rastermap */
     int i = 0;
     int i = 0;
-    int *fd = NULL;		/*The filehandler array for the 2D inputmaps */
+    int *fd = NULL; /*The filehandler array for the 2D inputmaps */
     int cols, rows, opencells;
     int cols, rows, opencells;
     char *name;
     char *name;
     int changemask = 0;
     int changemask = 0;
@@ -214,19 +198,19 @@ int main(int argc, char *argv[])
     G_add_keyword(_("volume"));
     G_add_keyword(_("volume"));
     G_add_keyword(_("conversion"));
     G_add_keyword(_("conversion"));
     module->description =
     module->description =
-	_("Converts 2D raster map slices to one 3D raster volume map.");
+        _("Converts 2D raster map slices to one 3D raster volume map.");
 
 
     /* Get parameters from user */
     /* Get parameters from user */
     set_params();
     set_params();
 
 
     /* Have GRASS get inputs */
     /* Have GRASS get inputs */
     if (G_parser(argc, argv))
     if (G_parser(argc, argv))
-	exit(EXIT_FAILURE);
+        exit(EXIT_FAILURE);
 
 
 
 
     /*Check for output */
     /*Check for output */
     if (param.output->answer == NULL)
     if (param.output->answer == NULL)
-	G3d_fatalError(_("No output map"));
+        G3d_fatalError(_("No output map"));
 
 
     /* Get the tile size */
     /* Get the tile size */
     maxSize = atoi(param.tilesize->answer);
     maxSize = atoi(param.tilesize->answer);
@@ -243,21 +227,21 @@ int main(int argc, char *argv[])
 
 
     /*If not equal, set the 2D windows correct */
     /*If not equal, set the 2D windows correct */
     if (rows != region.rows || cols != region.cols) {
     if (rows != region.rows || cols != region.cols) {
-	G_message(_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
-	G_get_set_window(&window2d);
-	window2d.ns_res = region.ns_res;
-	window2d.ew_res = region.ew_res;
-	window2d.rows = region.rows;
-	window2d.cols = region.cols;
-	Rast_set_window(&window2d);
+        G_message(_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
+        G_get_set_window(&window2d);
+        window2d.ns_res = region.ns_res;
+        window2d.ew_res = region.ew_res;
+        window2d.rows = region.rows;
+        window2d.cols = region.cols;
+        Rast_set_window(&window2d);
     }
     }
 
 
 
 
     /*prepare the filehandler */
     /*prepare the filehandler */
-    fd = (int *)G_malloc(region.depths * sizeof(int));
+    fd = (int *) G_malloc(region.depths * sizeof (int));
 
 
     if (fd == NULL)
     if (fd == NULL)
-	fatal_error(map, NULL, 0, _("Out of memory"));
+        fatal_error(map, NULL, 0, _("Out of memory"));
 
 
     name = NULL;
     name = NULL;
 
 
@@ -265,56 +249,56 @@ int main(int argc, char *argv[])
     globalG3dMapType = DCELL_TYPE;
     globalG3dMapType = DCELL_TYPE;
     maptype_tmp = DCELL_TYPE;
     maptype_tmp = DCELL_TYPE;
 
 
-    opencells = 0;		/*Number of opened maps */
+    opencells = 0; /*Number of opened maps */
     /*Loop over all output maps! open */
     /*Loop over all output maps! open */
     for (i = 0; i < region.depths; i++) {
     for (i = 0; i < region.depths; i++) {
-	/*Open only existing maps */
-	if (nofile == 0 && param.input->answers[i])
-	    name = param.input->answers[i];
-	else
-	    nofile = 1;
-
-	/*if only one map is given, open it depths - times */
-	G_verbose_message(_("Open raster map %s - one time for each depth (%d/%d)"),
-		  name, i + 1, region.depths);
-	fd[i] = open_input_raster_map(name);
-	opencells++;
-
-	maptype_tmp = Rast_get_map_type(fd[i]);
-
-	/*maptype */
-	if (i == 0)
-	    globalRastMapType = maptype_tmp;
-
-	if (maptype_tmp != globalRastMapType) {
-	    fatal_error(map, fd, opencells,
-			_("Input maps have to be from the same type. CELL, FCELL or DCELL!"));
-	}
+        /*Open only existing maps */
+        if (nofile == 0 && param.input->answers[i])
+            name = param.input->answers[i];
+        else
+            nofile = 1;
+
+        /*if only one map is given, open it depths - times */
+        G_verbose_message(_("Open raster map %s - one time for each depth (%d/%d)"),
+                          name, i + 1, region.depths);
+        fd[i] = open_input_raster_map(name);
+        opencells++;
+
+        maptype_tmp = Rast_get_map_type(fd[i]);
+
+        /*maptype */
+        if (i == 0)
+            globalRastMapType = maptype_tmp;
+
+        if (maptype_tmp != globalRastMapType) {
+            fatal_error(map, fd, opencells,
+                        _("Input maps have to be from the same type. CELL, FCELL or DCELL!"));
+        }
     }
     }
 
 
     G_message(_("Creating 3D raster map"));
     G_message(_("Creating 3D raster map"));
     map = NULL;
     map = NULL;
 
 
     /* Set the map type depending from the arster maps type */
     /* Set the map type depending from the arster maps type */
-    if (globalRastMapType == CELL_TYPE) 
-	globalG3dMapType = DCELL_TYPE;
-    else 
-	globalG3dMapType = FCELL_TYPE;
+    if (globalRastMapType == CELL_TYPE)
+        globalG3dMapType = DCELL_TYPE;
+    else
+        globalG3dMapType = FCELL_TYPE;
 
 
     map = G3d_openNewOptTileSize(param.output->answer, G3D_USE_CACHE_XY, &region, globalG3dMapType, maxSize);
     map = G3d_openNewOptTileSize(param.output->answer, G3D_USE_CACHE_XY, &region, globalG3dMapType, maxSize);
 
 
     if (map == NULL)
     if (map == NULL)
-	fatal_error(map, fd, opencells, _("Error opening 3d raster map"));
+        fatal_error(map, fd, opencells, _("Error opening 3d raster map"));
 
 
     /*if requested set the Mask on */
     /*if requested set the Mask on */
     if (param.mask->answer) {
     if (param.mask->answer) {
-	if (G3d_maskFileExists()) {
-	    changemask = 0;
-	    if (G3d_maskIsOff(map)) {
-		G3d_maskOn(map);
-		changemask = 1;
-	    }
-	}
+        if (G3d_maskFileExists()) {
+            changemask = 0;
+            if (G3d_maskIsOff(map)) {
+                G3d_maskOn(map);
+                changemask = 1;
+            }
+        }
     }
     }
 
 
     /*Create the G3D Rastermap */
     /*Create the G3D Rastermap */
@@ -322,24 +306,24 @@ int main(int argc, char *argv[])
 
 
     /*We set the Mask off, if it was off before */
     /*We set the Mask off, if it was off before */
     if (param.mask->answer) {
     if (param.mask->answer) {
-	if (G3d_maskFileExists())
-	    if (G3d_maskIsOn(map) && changemask)
-		G3d_maskOff(map);
+        if (G3d_maskFileExists())
+            if (G3d_maskIsOn(map) && changemask)
+                G3d_maskOff(map);
     }
     }
 
 
     /*Loop over all output maps! close */
     /*Loop over all output maps! close */
     for (i = 0; i < region.depths; i++)
     for (i = 0; i < region.depths; i++)
-	close_input_raster_map(fd[i]);
+        close_input_raster_map(fd[i]);
 
 
     if (fd)
     if (fd)
-	G_free(fd);
+        G_free(fd);
 
 
     /* Flush all tile */
     /* Flush all tile */
     if (!G3d_flushAllTiles(map))
     if (!G3d_flushAllTiles(map))
-	G3d_fatalError("Error flushing tiles with G3d_flushAllTiles");
+        G3d_fatalError("Error flushing tiles with G3d_flushAllTiles");
     /* Close files and exit */
     /* Close files and exit */
     if (!G3d_closeCell(map))
     if (!G3d_closeCell(map))
-	G3d_fatalError(_("Error closing 3d raster map"));
+        G3d_fatalError(_("Error closing 3d raster map"));
 
 
     map = NULL;
     map = NULL;
 
 
@@ -352,6 +336,7 @@ int main(int argc, char *argv[])
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Open the raster input map *********************************************** */
 /* Open the raster input map *********************************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 int open_input_raster_map(const char *name)
 int open_input_raster_map(const char *name)
 {
 {
@@ -362,6 +347,7 @@ int open_input_raster_map(const char *name)
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Close the raster input map ********************************************** */
 /* Close the raster input map ********************************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void close_input_raster_map(int fd)
 void close_input_raster_map(int fd)
 {
 {

+ 210 - 211
raster/r.to.rast3elev/main.c

@@ -1,20 +1,20 @@
 
 
 /****************************************************************************
 /****************************************************************************
-*
-* MODULE:       r.to.rast3elev 
-*   	    	
-* AUTHOR(S):    Original author 
-*               Soeren Gebbert soerengebbert@gmx.de
-* 		07 08 2006 Berlin
-* PURPOSE:      Creates a 3D volume map based on 2D elevation and value raster maps
-*
-* COPYRIGHT:    (C) 2006 by the GRASS Development Team
-*
-*               This program is free software under the GNU General Public
-*   	    	License (>=v2). Read the file COPYING that comes with GRASS
-*   	    	for details.
-*
-*****************************************************************************/
+ *
+ * MODULE:       r.to.rast3elev 
+ *   	    	
+ * AUTHOR(S):    Original author 
+ *               Soeren Gebbert soerengebbert@gmx.de
+ * 		07 08 2006 Berlin
+ * PURPOSE:      Creates a 3D volume map based on 2D elevation and value raster maps
+ *
+ * COPYRIGHT:    (C) 2006 by the GRASS Development Team
+ *
+ *               This program is free software under the GNU General Public
+ *   	    	License (>=v2). Read the file COPYING that comes with GRASS
+ *   	    	for details.
+ *
+ *****************************************************************************/
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
@@ -25,58 +25,58 @@
 #include <grass/config.h>
 #include <grass/config.h>
 
 
 /*- params and global variables -----------------------------------------*/
 /*- params and global variables -----------------------------------------*/
-typedef struct
-{
+typedef struct {
     struct Option *input, *elev, *output, *upper, *lower, *tilesize;
     struct Option *input, *elev, *output, *upper, *lower, *tilesize;
     struct Flag *fillup, *filllow, *mask;
     struct Flag *fillup, *filllow, *mask;
 } paramType;
 } paramType;
 
 
 /*Data to be used */
 /*Data to be used */
-typedef struct
-{
-    int mapnum;			/*The umber of input maps */
-    int count;			/*3d raster map access counter */
-    void *map;			/*The 3d voxel output map */
-    int input;			/*The current raster value map pointer */
-    int elev;			/*The current raster elevation map pointer */
+typedef struct {
+    int mapnum; /*The umber of input maps */
+    int count; /*3d raster map access counter */
+    void *map; /*The 3d voxel output map */
+    int input; /*The current raster value map pointer */
+    int elev; /*The current raster elevation map pointer */
     int inputmaptype;
     int inputmaptype;
     int elevmaptype;
     int elevmaptype;
-    double upper;		/*The upper value */
-    double lower;		/*The lower value */
-    int useUpperVal;		/*0 = use upper value, 1 = use map value to fill upper cells */
-    int useLowerVal;		/*0 = use lower value, 1 = use map value to fill lower cells */
+    double upper; /*The upper value */
+    double lower; /*The lower value */
+    int useUpperVal; /*0 = use upper value, 1 = use map value to fill upper cells */
+    int useLowerVal; /*0 = use lower value, 1 = use map value to fill lower cells */
 } Database;
 } Database;
 
 
-paramType param;		/*params */
+paramType param; /*params */
 
 
 /*- prototypes --------------------------------------------------------------*/
 /*- prototypes --------------------------------------------------------------*/
-void fatal_error(Database db, char *errorMsg);	/*Simple Error message */
-void set_params();		/*Fill the paramType structure */
-void elev_raster_to_g3d(Database db, G3D_Region region);	/*Write the raster */
-int open_input_raster_map(const char *name);	/*opens the outputmap */
-void close_input_raster_map(int fd);	/*close the map */
+void fatal_error(Database db, char *errorMsg); /*Simple Error message */
+void set_params(); /*Fill the paramType structure */
+void elev_raster_to_g3d(Database db, G3D_Region region); /*Write the raster */
+int open_input_raster_map(const char *name); /*opens the outputmap */
+void close_input_raster_map(int fd); /*close the map */
 double get_raster_value_as_double(int maptype, void *ptr, double nullval);
 double get_raster_value_as_double(int maptype, void *ptr, double nullval);
-void check_input_maps(Database * db);	/*Check input maps */
+void check_input_maps(Database * db); /*Check input maps */
 
 
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Get the value of the current raster pointer as double ******************* */
 /* Get the value of the current raster pointer as double ******************* */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 double get_raster_value_as_double(int MapType, void *ptr, double nullval)
 double get_raster_value_as_double(int MapType, void *ptr, double nullval)
 {
 {
     if (Rast_is_null_value(ptr, MapType))
     if (Rast_is_null_value(ptr, MapType))
-	return nullval;
+        return nullval;
 
 
     switch (MapType) {
     switch (MapType) {
-    case CELL_TYPE:	return *(CELL *) ptr;
-    case FCELL_TYPE:	return *(FCELL *) ptr;
-    case DCELL_TYPE:	return *(DCELL *) ptr;
-    default:		return nullval;
+        case CELL_TYPE: return *(CELL *) ptr;
+        case FCELL_TYPE: return *(FCELL *) ptr;
+        case DCELL_TYPE: return *(DCELL *) ptr;
+        default: return nullval;
     }
     }
 }
 }
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Check the input maps **************************************************** */
 /* Check the input maps **************************************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void check_input_maps(Database * db)
 void check_input_maps(Database * db)
 {
 {
@@ -87,16 +87,16 @@ void check_input_maps(Database * db)
 
 
     /*Check elev maps */
     /*Check elev maps */
     if (param.elev->answers != NULL)
     if (param.elev->answers != NULL)
-	for (i = 0; param.elev->answers[i] != NULL; i++)
-	    elevcount++;
+        for (i = 0; param.elev->answers[i] != NULL; i++)
+            elevcount++;
 
 
     /*Check input maps */
     /*Check input maps */
     if (param.input->answers != NULL)
     if (param.input->answers != NULL)
-	for (i = 0; param.input->answers[i] != NULL; i++)
-	    inputcount++;
+        for (i = 0; param.input->answers[i] != NULL; i++)
+            inputcount++;
 
 
     if (elevcount != inputcount)
     if (elevcount != inputcount)
-	G_fatal_error(_("The number of input and elevation maps is not equal"));
+        G_fatal_error(_("The number of input and elevation maps is not equal"));
 
 
     db->mapnum = inputcount;
     db->mapnum = inputcount;
 
 
@@ -105,6 +105,7 @@ void check_input_maps(Database * db)
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Open the raster input map *********************************************** */
 /* Open the raster input map *********************************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 int open_input_raster_map(const char *name)
 int open_input_raster_map(const char *name)
 {
 {
@@ -115,6 +116,7 @@ int open_input_raster_map(const char *name)
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Close the raster input map ********************************************** */
 /* Close the raster input map ********************************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void close_input_raster_map(int fd)
 void close_input_raster_map(int fd)
 {
 {
@@ -123,21 +125,22 @@ void close_input_raster_map(int fd)
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Error handling ********************************************************** */
 /* Error handling ********************************************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void fatal_error(Database db, char *errorMsg)
 void fatal_error(Database db, char *errorMsg)
 {
 {
     /* Close files and exit */
     /* Close files and exit */
     if (db.map != NULL) {
     if (db.map != NULL) {
-	/* should unopen map here! but this functionality is not jet implemented */
-	if (!G3d_closeCell(db.map))
-	    G3d_fatalError(_("Could not close the map"));
+        /* should unopen map here! but this functionality is not jet implemented */
+        if (!G3d_closeCell(db.map))
+            G3d_fatalError(_("Could not close the map"));
     }
     }
 
 
     if (db.input)
     if (db.input)
-	close_input_raster_map(db.input);
+        close_input_raster_map(db.input);
 
 
     if (db.elev)
     if (db.elev)
-	close_input_raster_map(db.elev);
+        close_input_raster_map(db.elev);
 
 
     G3d_fatalError(errorMsg);
     G3d_fatalError(errorMsg);
     exit(EXIT_FAILURE);
     exit(EXIT_FAILURE);
@@ -145,6 +148,7 @@ void fatal_error(Database db, char *errorMsg)
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Set up the arguments **************************************************** */
 /* Set up the arguments **************************************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void set_params()
 void set_params()
 {
 {
@@ -158,14 +162,14 @@ void set_params()
     param.upper->type = TYPE_DOUBLE;
     param.upper->type = TYPE_DOUBLE;
     param.upper->required = NO;
     param.upper->required = NO;
     param.upper->description =
     param.upper->description =
-	_("The value to fill the upper cells, default is null");
+        _("The value to fill the upper cells, default is null");
 
 
     param.lower = G_define_option();
     param.lower = G_define_option();
     param.lower->key = "lower";
     param.lower->key = "lower";
     param.lower->type = TYPE_DOUBLE;
     param.lower->type = TYPE_DOUBLE;
     param.lower->required = NO;
     param.lower->required = NO;
     param.lower->description =
     param.lower->description =
-	_("The value to fill the lower cells, default is null");
+        _("The value to fill the lower cells, default is null");
 
 
     param.tilesize = G_define_option();
     param.tilesize = G_define_option();
     param.tilesize->description = _("The maximum tile size in kilo bytes. Default is 32KB.");
     param.tilesize->description = _("The maximum tile size in kilo bytes. Default is 32KB.");
@@ -178,12 +182,12 @@ void set_params()
     param.fillup = G_define_flag();
     param.fillup = G_define_flag();
     param.fillup->key = 'u';
     param.fillup->key = 'u';
     param.fillup->description =
     param.fillup->description =
-	_("Use the input map values to fill the upper cells");
+        _("Use the input map values to fill the upper cells");
 
 
     param.filllow = G_define_flag();
     param.filllow = G_define_flag();
     param.filllow->key = 'l';
     param.filllow->key = 'l';
     param.filllow->description =
     param.filllow->description =
-	_("Use the input map values to fill the lower cells");
+        _("Use the input map values to fill the lower cells");
 
 
     param.mask = G_define_flag();
     param.mask = G_define_flag();
     param.mask->key = 'm';
     param.mask->key = 'm';
@@ -194,6 +198,7 @@ void set_params()
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Write the raster maps into the G3D map *********************************** */
 /* Write the raster maps into the G3D map *********************************** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 void elev_raster_to_g3d(Database db, G3D_Region region)
 void elev_raster_to_g3d(Database db, G3D_Region region)
 {
 {
@@ -223,117 +228,113 @@ void elev_raster_to_g3d(Database db, G3D_Region region)
 
 
 
 
     G_debug(3,
     G_debug(3,
-	    "elev_raster_to_g3d: Writing 3D raster map with depths %i rows %i cols %i and count %i.",
-	    depths, rows, cols, db.count);
-
-    /*The mainloop */        
-    /* Because we read raster rows from north to south, but the coordinate system
-     of the g3d cube read from south to north we need to adjust the
-     Cube coordinates row = rows - y - 1.
-     */
-    for (y = 0; y < rows; y++) {
-	G_percent(y, rows - 1, 10);
-
-	Rast_get_row(db.input, input_rast, y, db.inputmaptype);
-	Rast_get_row(db.elev, elev_rast, y, db.elevmaptype);
-
-	for (x = 0, input_ptr = input_rast, elev_ptr = elev_rast; x < cols;
-	     x++, input_ptr =
-	     G_incr_void_ptr(input_ptr, Rast_cell_size(db.inputmaptype)),
-	     elev_ptr =
-	     G_incr_void_ptr(elev_ptr, Rast_cell_size(db.elevmaptype))) {
-
-	    /*Get the elevation and the input map value */
-	    inval =
-		get_raster_value_as_double(db.inputmaptype, input_ptr, null);
-	    height =
-		get_raster_value_as_double(db.elevmaptype, elev_ptr, null);
-
-	    G_debug(4,
-		    "Caluclating position in 3d region -> height %g with value %g",
-		    height, inval);
-
-	    /* Calculate if the G3D cell is lower or upper the elevation map
-	     *  and set the value.*/
-	    if (db.count == 0) {
-		/*Use this method if the 3d raster map was not touched befor */
-		for (z = 0; z < depths; z++) {
-
-		    /*Upper cells */
-		    if (height < (z * tbres + bottom)) {
-			if (db.useUpperVal == 1)
-			    value = inval;	/*Input map value */
-			else
-			    value = db.upper;
-		    }
-		    /*lower cells */
-		    if (height > ((z + 1) * tbres + bottom)) {
-			if (db.useLowerVal == 1)
-			    value = inval;	/*Input map value */
-			else
-			    value = db.lower;
-		    }
-		    /*If exactly at the border, fill upper AND lower cell */
-		    if (height >= (z * tbres + bottom) &&
-			height <= ((z + 1) * tbres + bottom))
-			value = inval;
-		    /*If the elevation is null, set the G3D value null */
-		    if (G3d_isNullValueNum(&height, DCELL_TYPE))
-			value = null;
-
-		    /*Write the value to the 3D map */
-		    if (G3d_putDouble(db.map, x, rows - y - 1, z, value) < 0)
-			fatal_error(db, _("Error writing G3D double data"));
-		}
-	    }
-	    else {
-		/*Use this method for every following 3d raster maps access */
-		for (z = 0; z < depths; z++) {
-		    /*Upper cells */
-		    if (height < (z * tbres + bottom)) {
-			if (db.useUpperVal == 1)
-			    value = inval;	/*Input map value */
-			else if (db.useUpperVal == 2)
-			    value = db.upper;
-			else
-			    value = G3d_getDouble(db.map, x, rows - y - 1, z);
-		    }
-		    /*lower cells */
-		    if (height > ((z + 1) * tbres + bottom)) {
-			if (db.useLowerVal == 1)
-			    value = inval;	/*Input map value */
-			else if (db.useLowerVal == 2)
-			    value = db.lower;
-			else
-			    value = G3d_getDouble(db.map, x, rows - y - 1, z);
-		    }
-		    /*If exactly at the border, fill upper AND lower cell */
-		    if (height >= (z * tbres + bottom) &&
-			height <= ((z + 1) * tbres + bottom))
-			value = inval;
-		    /*If the elevation is null, set the G3D value null */
-		    if (G3d_isNullValueNum(&height, DCELL_TYPE))
-			value = G3d_getDouble(db.map, x, rows - y - 1, z);
-
-		    /*Write the value to the 3D map */
-		    if (G3d_putDouble(db.map, x, rows - y - 1, z, value) < 0)
-			fatal_error(db, _("Error writing G3D double data"));
-
-		}
-	    }
-	}
+            "elev_raster_to_g3d: Writing 3D raster map with depths %i rows %i cols %i and count %i.",
+            depths, rows, cols, db.count);
+
+    /*The mainloop */
+    for (y = 0; y < rows; y++) { /* From north to south */
+        G_percent(y, rows - 1, 10);
+
+        Rast_get_row(db.input, input_rast, y, db.inputmaptype);
+        Rast_get_row(db.elev, elev_rast, y, db.elevmaptype);
+
+        for (x = 0, input_ptr = input_rast, elev_ptr = elev_rast; x < cols;
+            x++, input_ptr =
+            G_incr_void_ptr(input_ptr, Rast_cell_size(db.inputmaptype)),
+            elev_ptr =
+            G_incr_void_ptr(elev_ptr, Rast_cell_size(db.elevmaptype))) {
+
+            /*Get the elevation and the input map value */
+            inval =
+                get_raster_value_as_double(db.inputmaptype, input_ptr, null);
+            height =
+                get_raster_value_as_double(db.elevmaptype, elev_ptr, null);
+
+            G_debug(4,
+                    "Caluclating position in 3d region -> height %g with value %g",
+                    height, inval);
+
+            /* Calculate if the G3D cell is lower or upper the elevation map
+             *  and set the value.*/
+            if (db.count == 0) {
+                /*Use this method if the 3d raster map was not touched befor */
+                for (z = 0; z < depths; z++) {
+
+                    /*Upper cells */
+                    if (height < (z * tbres + bottom)) {
+                        if (db.useUpperVal == 1)
+                            value = inval; /*Input map value */
+                        else
+                            value = db.upper;
+                    }
+                    /*lower cells */
+                    if (height > ((z + 1) * tbres + bottom)) {
+                        if (db.useLowerVal == 1)
+                            value = inval; /*Input map value */
+                        else
+                            value = db.lower;
+                    }
+                    /*If exactly at the border, fill upper AND lower cell */
+                    if (height >= (z * tbres + bottom) &&
+                        height <= ((z + 1) * tbres + bottom))
+                        value = inval;
+                    /*If the elevation is null, set the G3D value null */
+                    if (G3d_isNullValueNum(&height, DCELL_TYPE))
+                        value = null;
+
+                    /*Write the value to the 3D map */
+                    if (G3d_putDouble(db.map, x, y, z, value) < 0)
+                        fatal_error(db, _("Error writing G3D double data"));
+                }
+            } else {
+                /*Use this method for every following 3d raster maps access */
+                for (z = 0; z < depths; z++) {
+                    /*Upper cells */
+                    if (height < (z * tbres + bottom)) {
+                        if (db.useUpperVal == 1)
+                            value = inval; /*Input map value */
+                        else if (db.useUpperVal == 2)
+                            value = db.upper;
+                        else
+                            value = G3d_getDouble(db.map, x, y, z);
+                    }
+                    /*lower cells */
+                    if (height > ((z + 1) * tbres + bottom)) {
+                        if (db.useLowerVal == 1)
+                            value = inval; /*Input map value */
+                        else if (db.useLowerVal == 2)
+                            value = db.lower;
+                        else
+                            value = G3d_getDouble(db.map, x, y, z);
+                    }
+                    /*If exactly at the border, fill upper AND lower cell */
+                    if (height >= (z * tbres + bottom) &&
+                        height <= ((z + 1) * tbres + bottom))
+                        value = inval;
+                    /*If the elevation is null, set the G3D value null */
+                    if (G3d_isNullValueNum(&height, DCELL_TYPE))
+                        value = G3d_getDouble(db.map, x, y, z);
+
+                    /*Write the value to the 3D map */
+                    if (G3d_putDouble(db.map, x, y, z, value) < 0)
+                        fatal_error(db, _("Error writing G3D double data"));
+
+                }
+            }
+        }
     }
     }
 
 
     if (input_rast)
     if (input_rast)
-	G_free(input_rast);
+        G_free(input_rast);
     if (elev_rast)
     if (elev_rast)
-	G_free(elev_rast);
+        G_free(elev_rast);
 
 
     return;
     return;
 }
 }
 
 
 /* ************************************************************************* */
 /* ************************************************************************* */
 /* Main function, open the raster maps and create the G3D raster maps ****** */
 /* Main function, open the raster maps and create the G3D raster maps ****** */
+
 /* ************************************************************************* */
 /* ************************************************************************* */
 int main(int argc, char *argv[])
 int main(int argc, char *argv[])
 {
 {
@@ -362,14 +363,14 @@ int main(int argc, char *argv[])
     G_add_keyword(_("voxel"));
     G_add_keyword(_("voxel"));
     G_add_keyword(_("conversion"));
     G_add_keyword(_("conversion"));
     module->description =
     module->description =
-	_("Creates a 3D volume map based on 2D elevation and value raster maps.");
+        _("Creates a 3D volume map based on 2D elevation and value raster maps.");
 
 
     /* Get parameters from user */
     /* Get parameters from user */
     set_params();
     set_params();
 
 
     /* Have GRASS get inputs */
     /* Have GRASS get inputs */
     if (G_parser(argc, argv))
     if (G_parser(argc, argv))
-	exit(EXIT_FAILURE);
+        exit(EXIT_FAILURE);
 
 
     /*Check if maps exist */
     /*Check if maps exist */
     check_input_maps(&db);
     check_input_maps(&db);
@@ -383,34 +384,32 @@ int main(int argc, char *argv[])
 
 
     /*Use the input map value to fill the upper cells */
     /*Use the input map value to fill the upper cells */
     if (param.fillup->answer) {
     if (param.fillup->answer) {
-	db.useUpperVal = 1;
+        db.useUpperVal = 1;
     }
     }
 
 
     /*Use the input map value to fill the lower cells */
     /*Use the input map value to fill the lower cells */
     if (param.filllow->answer) {
     if (param.filllow->answer) {
-	db.useLowerVal = 1;
+        db.useLowerVal = 1;
     }
     }
 
 
     /*Set the upper value */
     /*Set the upper value */
     if (param.upper->answer) {
     if (param.upper->answer) {
-	if (sscanf(param.upper->answer, "%lf", &db.upper))
-	    db.useUpperVal = 2;
-	else
-	    G_fatal_error(_("The upper value is not valid"));
-    }
-    else {
-	G3d_setNullValue(&db.upper, 1, DCELL_TYPE);
+        if (sscanf(param.upper->answer, "%lf", &db.upper))
+            db.useUpperVal = 2;
+        else
+            G_fatal_error(_("The upper value is not valid"));
+    } else {
+        G3d_setNullValue(&db.upper, 1, DCELL_TYPE);
     }
     }
 
 
     /*Set the lower value */
     /*Set the lower value */
     if (param.lower->answer) {
     if (param.lower->answer) {
-	if (sscanf(param.lower->answer, "%lf", &db.lower))
-	    db.useLowerVal = 2;
-	else
-	    G_fatal_error(_("The lower value is not valid"));
-    }
-    else {
-	G3d_setNullValue(&db.lower, 1, DCELL_TYPE);
+        if (sscanf(param.lower->answer, "%lf", &db.lower))
+            db.useLowerVal = 2;
+        else
+            G_fatal_error(_("The lower value is not valid"));
+    } else {
+        G3d_setNullValue(&db.lower, 1, DCELL_TYPE);
     }
     }
 
 
     /* Figure out the current g3d region */
     /* Figure out the current g3d region */
@@ -425,13 +424,13 @@ int main(int argc, char *argv[])
 
 
     /*If not equal, set the 2D windows correct */
     /*If not equal, set the 2D windows correct */
     if (rows != region.rows || cols != region.cols) {
     if (rows != region.rows || cols != region.cols) {
-	G_message(_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
-	G_get_set_window(&window2d);
-	window2d.ns_res = region.ns_res;
-	window2d.ew_res = region.ew_res;
-	window2d.rows = region.rows;
-	window2d.cols = region.cols;
-	Rast_set_window(&window2d);
+        G_message(_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
+        G_get_set_window(&window2d);
+        window2d.ns_res = region.ns_res;
+        window2d.ew_res = region.ew_res;
+        window2d.rows = region.rows;
+        window2d.cols = region.cols;
+        Rast_set_window(&window2d);
     }
     }
 
 
     G_debug(2, "Open 3d raster map %s", param.output->answer);
     G_debug(2, "Open 3d raster map %s", param.output->answer);
@@ -441,18 +440,18 @@ int main(int argc, char *argv[])
     db.map = G3d_openNewOptTileSize(param.output->answer, G3D_USE_CACHE_XY, &region, DCELL_TYPE, maxSize);
     db.map = G3d_openNewOptTileSize(param.output->answer, G3D_USE_CACHE_XY, &region, DCELL_TYPE, maxSize);
 
 
     if (db.map == NULL)
     if (db.map == NULL)
-	fatal_error(db, _("Error opening 3d raster map"));
+        fatal_error(db, _("Error opening 3d raster map"));
 
 
 
 
     /*if requested set the Mask on */
     /*if requested set the Mask on */
     if (param.mask->answer) {
     if (param.mask->answer) {
-	if (G3d_maskFileExists()) {
-	    changemask = 0;
-	    if (G3d_maskIsOff(db.map)) {
-		G3d_maskOn(db.map);
-		changemask = 1;
-	    }
-	}
+        if (G3d_maskFileExists()) {
+            changemask = 0;
+            if (G3d_maskIsOff(db.map)) {
+                G3d_maskOn(db.map);
+                changemask = 1;
+            }
+        }
     }
     }
 
 
     G_message(_("Creating 3D raster map"));
     G_message(_("Creating 3D raster map"));
@@ -460,46 +459,46 @@ int main(int argc, char *argv[])
     /*For each elevation - input map couple */
     /*For each elevation - input map couple */
     for (i = 0; i < db.mapnum; i++) {
     for (i = 0; i < db.mapnum; i++) {
 
 
-	G_debug(2, "Open input raster map %s", param.input->answers[i]);
+        G_debug(2, "Open input raster map %s", param.input->answers[i]);
 
 
-	db.count = i;
-	/*Open input map */
-	name = param.input->answers[i];
-	db.input = open_input_raster_map(name);
-	db.inputmaptype = Rast_map_type(name, "");
+        db.count = i;
+        /*Open input map */
+        name = param.input->answers[i];
+        db.input = open_input_raster_map(name);
+        db.inputmaptype = Rast_map_type(name, "");
 
 
-	G_debug(2, "Open elev raster map %s", param.elev->answers[i]);
+        G_debug(2, "Open elev raster map %s", param.elev->answers[i]);
 
 
-	/*Open elev map */
-	name = param.elev->answers[i];
-	db.elev = open_input_raster_map(name);
-	db.elevmaptype = Rast_map_type(name, "");
+        /*Open elev map */
+        name = param.elev->answers[i];
+        db.elev = open_input_raster_map(name);
+        db.elevmaptype = Rast_map_type(name, "");
 
 
-	/****************************************/
-	/*Write the data into the G3D Rastermap */
-	elev_raster_to_g3d(db, region);
+        /****************************************/
+        /*Write the data into the G3D Rastermap */
+        elev_raster_to_g3d(db, region);
 
 
-       /*****************************************/
+        /*****************************************/
 
 
-	/* Close files */
-	close_input_raster_map(db.input);
-	close_input_raster_map(db.elev);
+        /* Close files */
+        close_input_raster_map(db.input);
+        close_input_raster_map(db.elev);
     }
     }
 
 
     /*We set the Mask off, if it was off before */
     /*We set the Mask off, if it was off before */
     if (param.mask->answer) {
     if (param.mask->answer) {
-	if (G3d_maskFileExists())
-	    if (G3d_maskIsOn(db.map) && changemask)
-		G3d_maskOff(db.map);
+        if (G3d_maskFileExists())
+            if (G3d_maskIsOn(db.map) && changemask)
+                G3d_maskOff(db.map);
     }
     }
 
 
     G_debug(2, "Close 3d raster map");
     G_debug(2, "Close 3d raster map");
 
 
     /* Flush all tile */
     /* Flush all tile */
     if (!G3d_flushAllTiles(db.map))
     if (!G3d_flushAllTiles(db.map))
-	G3d_fatalError("Error flushing tiles with G3d_flushAllTiles");
+        G3d_fatalError("Error flushing tiles with G3d_flushAllTiles");
     if (!G3d_closeCell(db.map))
     if (!G3d_closeCell(db.map))
-	G3d_fatalError(_("Error closing 3d raster map"));
+        G3d_fatalError(_("Error closing 3d raster map"));
 
 
     G_debug(2, "\nDone\n");
     G_debug(2, "\nDone\n");
 
 

+ 1 - 1
raster3d/base/r3.mask.main.c

@@ -89,7 +89,7 @@ static void makeMask(char *name, d_Mask * maskRules)
 	    G3d_unlockAll(mask);
 	    G3d_unlockAll(mask);
 	}
 	}
     
     
-	for (y = 0; y < region.rows; y++)	/* We count from south to north in the cube coordinate system */
+	for (y = 0; y < region.rows; y++)	/* We count from north to south in the cube coordinate system */
 	    for (x = 0; x < region.cols; x++) {
 	    for (x = 0; x < region.cols; x++) {
 		value = G3d_getDoubleRegion(map, x, y, z);
 		value = G3d_getDoubleRegion(map, x, y, z);
 		if (mask_d_select((DCELL *) & value, maskRules))
 		if (mask_d_select((DCELL *) & value, maskRules))

+ 5 - 3
raster3d/r3.cross.rast/test.r3.cross.rast.sh

@@ -16,8 +16,7 @@ r.mapcalc --o expr="elev_4 = 35"
 r.mapcalc --o expr="elev_5 = 45"
 r.mapcalc --o expr="elev_5 = 45"
 r.mapcalc --o expr="elev_NAN = 50"
 r.mapcalc --o expr="elev_NAN = 50"
 r.mapcalc --o expr="elev_cross = float(col()* 5)"
 r.mapcalc --o expr="elev_cross = float(col()* 5)"
-# Now create a voxel map with value = col + row + depth. Beware the 
-# raster3d module count from south to north.
+# Now create a voxel map with value = col + row + depth. 
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 # Add null value information
 # Add null value information
 r3.mapcalc --o expr="volume_null = if(row() == 1 || row() == 5, null(), volume)"
 r3.mapcalc --o expr="volume_null = if(row() == 1 || row() == 5, null(), volume)"
@@ -32,4 +31,7 @@ r3.cross.rast --o input=volume_null elevation=elev_3 output=test_cross_section_s
 r3.cross.rast --o input=volume_null elevation=elev_4 output=test_cross_section_slice_4
 r3.cross.rast --o input=volume_null elevation=elev_4 output=test_cross_section_slice_4
 r3.cross.rast --o input=volume_null elevation=elev_5 output=test_cross_section_slice_5
 r3.cross.rast --o input=volume_null elevation=elev_5 output=test_cross_section_slice_5
 r3.cross.rast --o input=volume_null elevation=elev_NAN output=test_cross_section_slice_NAN
 r3.cross.rast --o input=volume_null elevation=elev_NAN output=test_cross_section_slice_NAN
-r3.cross.rast --o input=volume_null elevation=elev_cross output=test_cross_section_result
+r3.cross.rast --o input=volume_null elevation=elev_cross output=test_cross_section_result
+
+# Export of the references
+for i in `g.mlist type=rast pattern=test_cross_section_*` ; do r.out.ascii input=$i output=${i}.ref; done

+ 5 - 5
raster3d/r3.cross.rast/test_cross_section_result.ref

@@ -4,11 +4,11 @@ east: 100
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 10
 cols: 10
-10 12 13 15 16 18 19 21 22 * 
-9 11 12 14 15 17 18 20 21 * 
-8 10 11 13 14 16 17 19 20 * 
 * * * * * * * * * * 
 * * * * * * * * * * 
-6 8 9 11 12 14 15 17 18 * 
-5 7 8 10 11 13 14 16 17 * 
 4 6 7 9 10 12 13 15 16 * 
 4 6 7 9 10 12 13 15 16 * 
+5 7 8 10 11 13 14 16 17 * 
+6 8 9 11 12 14 15 17 18 * 
 * * * * * * * * * * 
 * * * * * * * * * * 
+8 10 11 13 14 16 17 19 20 * 
+9 11 12 14 15 17 18 20 21 * 
+10 12 13 15 16 18 19 21 22 * 

+ 5 - 5
raster3d/r3.cross.rast/test_cross_section_slice_0.ref

@@ -4,11 +4,11 @@ east: 100
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 10
 cols: 10
-10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * 
 * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 
 4 5 6 7 8 9 10 11 12 13 
 4 5 6 7 8 9 10 11 12 13 
+5 6 7 8 9 10 11 12 13 14 
+6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * 
 * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 
+9 10 11 12 13 14 15 16 17 18 
+10 11 12 13 14 15 16 17 18 19 

+ 5 - 5
raster3d/r3.cross.rast/test_cross_section_slice_1.ref

@@ -4,11 +4,11 @@ east: 100
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 10
 cols: 10
-10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * 
 * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 
 4 5 6 7 8 9 10 11 12 13 
 4 5 6 7 8 9 10 11 12 13 
+5 6 7 8 9 10 11 12 13 14 
+6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * 
 * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 
+9 10 11 12 13 14 15 16 17 18 
+10 11 12 13 14 15 16 17 18 19 

+ 5 - 5
raster3d/r3.cross.rast/test_cross_section_slice_2.ref

@@ -4,11 +4,11 @@ east: 100
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 10
 cols: 10
-11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * 
 * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 
 5 6 7 8 9 10 11 12 13 14 
 5 6 7 8 9 10 11 12 13 14 
+6 7 8 9 10 11 12 13 14 15 
+7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * 
 * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 
+10 11 12 13 14 15 16 17 18 19 
+11 12 13 14 15 16 17 18 19 20 

+ 5 - 5
raster3d/r3.cross.rast/test_cross_section_slice_3.ref

@@ -4,11 +4,11 @@ east: 100
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 10
 cols: 10
-12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * 
 * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 
 6 7 8 9 10 11 12 13 14 15 
+7 8 9 10 11 12 13 14 15 16 
+8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * 
 * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 
+11 12 13 14 15 16 17 18 19 20 
+12 13 14 15 16 17 18 19 20 21 

+ 5 - 5
raster3d/r3.cross.rast/test_cross_section_slice_4.ref

@@ -4,11 +4,11 @@ east: 100
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 10
 cols: 10
-13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * 
 * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 
 7 8 9 10 11 12 13 14 15 16 
+8 9 10 11 12 13 14 15 16 17 
+9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * 
 * * * * * * * * * * 
+11 12 13 14 15 16 17 18 19 20 
+12 13 14 15 16 17 18 19 20 21 
+13 14 15 16 17 18 19 20 21 22 

+ 5 - 5
raster3d/r3.cross.rast/test_cross_section_slice_5.ref

@@ -4,11 +4,11 @@ east: 100
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 10
 cols: 10
-14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * 
 * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 
 8 9 10 11 12 13 14 15 16 17 
+9 10 11 12 13 14 15 16 17 18 
+10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * 
 * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 
+13 14 15 16 17 18 19 20 21 22 
+14 15 16 17 18 19 20 21 22 23 

+ 2 - 2
raster3d/r3.in.ascii/main.c

@@ -244,13 +244,13 @@ asciiToG3d(FILE * fp, G3D_Region * region, int convertNull, char *nullValue)
                 /* From west to east */
                 /* From west to east */
                 col = x;
                 col = x;
                 /* The default is to read rows from north to south */
                 /* The default is to read rows from north to south */
-                row = region->rows - y - 1;
+                row = y;
                 /* From bottom to the top */
                 /* From bottom to the top */
                 depth = z;
                 depth = z;
 
 
                 /* Read rows as from south to north */
                 /* Read rows as from south to north */
                 if (rowOrder == ROW_ORDER_SOUTH_TO_NORTH)
                 if (rowOrder == ROW_ORDER_SOUTH_TO_NORTH)
-                    row = y;
+                    row = region->rows - y - 1;
 
 
                 /* Read XY layer from top to bottom */
                 /* Read XY layer from top to bottom */
                 if (depthOrder == DEPTH_ORDER_TOP_TO_BOTTOM)
                 if (depthOrder == DEPTH_ORDER_TOP_TO_BOTTOM)

+ 8 - 8
raster3d/r3.in.ascii/r3.in.ascii.html

@@ -52,8 +52,8 @@ The version and order option are introduced in grass7 June 2011. The version opt
 is self explaining. The order option specifies the row and depth order of the data in the input file.
 is self explaining. The order option specifies the row and depth order of the data in the input file.
 The supported row/depth ordering is documented in the <A HREF="r3.out.ascii.html">r3.out.ascii</A> 
 The supported row/depth ordering is documented in the <A HREF="r3.out.ascii.html">r3.out.ascii</A> 
 manpage. The order of the data in the input file does not specifiy the data order in the 
 manpage. The order of the data in the input file does not specifiy the data order in the 
-generated output raster3d map which is in any case <em>south -> north, bottom -> top</em> ordering. 
-So dependent on the order information the data is automatically imported into the correct internal ordering.
+generated output raster3d map which is in any case <em>north -> south, west -> east, bottom -> top</em> ordering. 
+So dependent on the order information the data is automatically imported into the correct internal coordinate system.
 <P>
 <P>
 The version and order options are not mandatory. In case no version and order option is specified, 
 The version and order options are not mandatory. In case no version and order option is specified, 
 the default grass6 ascii format is assumed.
 the default grass6 ascii format is assumed.
@@ -68,8 +68,8 @@ values are separated by <EM>space</EM> or <EM>CR</EM>.
 
 
 4x3x2 sample. Note in case no specific ordering is specified in the input file the
 4x3x2 sample. Note in case no specific ordering is specified in the input file the
 upper-left (NW) corner of the bottom level comes first. The according order option is: nsbt for
 upper-left (NW) corner of the bottom level comes first. The according order option is: nsbt for
-north -> south, bottom -> top ordering. This is compatible with <em>r.in.ascii</em>
-for single level data.
+north -> south, bottom -> top ordering. This is identical with <em>r.in.ascii</em>
+for single level data. So the y coordinate is 0 at the northern edge.
 
 
 <div class="code"><pre>
 <div class="code"><pre>
 north: 3.0
 north: 3.0
@@ -81,12 +81,12 @@ bottom: 0.0
 rows: 3
 rows: 3
 cols: 4
 cols: 4
 levels: 2
 levels: 2
-x1,y3,z1  x2,y3,z1  x3,y3,z1  x4,y3,z1
-x1,y2,z1  x2,y2,z1  x3,y2,z1  x4,y2,z1
 x1,y1,z1  x2,y1,z1  x3,y1,z1  x4,y1,z1
 x1,y1,z1  x2,y1,z1  x3,y1,z1  x4,y1,z1
-x1,y3,z2  x2,y3,z2  x3,y3,z2  x4,y3,z2
-x1,y2,z2  x2,y2,z2  x3,y2,z2  x4,y2,z2
+x1,y2,z1  x2,y2,z1  x3,y2,z1  x4,y2,z1
+x1,y3,z1  x2,y3,z1  x3,y3,z1  x4,y3,z1
 x1,y1,z2  x2,y1,z2  x3,y1,z2  x4,y1,z2
 x1,y1,z2  x2,y1,z2  x3,y1,z2  x4,y1,z2
+x1,y2,z2  x2,y2,z2  x3,y2,z2  x4,y2,z2
+x1,y3,z2  x2,y3,z2  x3,y3,z2  x4,y3,z2
 </pre></div>
 </pre></div>
 
 
 Note that unit tests for r3.in.ascii are implemented in the <em>test.r3.out.ascii.sh</em> script located in 
 Note that unit tests for r3.in.ascii are implemented in the <em>test.r3.out.ascii.sh</em> script located in 

+ 2 - 2
raster3d/r3.out.ascii/main.c

@@ -249,13 +249,13 @@ void G3dToascii(FILE * fp, G3D_Region region, int decim)
                 /* The default is to write rows from north to south
                 /* The default is to write rows from north to south
                    to be r.in.ascii compatible 
                    to be r.in.ascii compatible 
                  */
                  */
-                row = rows - y - 1;
+                row = y;
                 /* From bottom to the top */
                 /* From bottom to the top */
                 depth = z;
                 depth = z;
 
 
                 /* Write rows from south to north */
                 /* Write rows from south to north */
                 if (param.row->answer)
                 if (param.row->answer)
-                    row = y;
+                    row = rows - y - 1;
 
 
                 /* write XY layer from top to bottom */
                 /* write XY layer from top to bottom */
                 if (param.depth->answer)
                 if (param.depth->answer)

+ 9 - 10
raster3d/r3.out.ascii/test.r3.out.ascii.sh

@@ -1,6 +1,6 @@
 # Tests for r3.out.ascii and r3.in.ascii
 # Tests for r3.out.ascii and r3.in.ascii
 # This script tests the export of voxel data using r3.out.ascii
 # This script tests the export of voxel data using r3.out.ascii
-# as well as the inport of the generated data with r3.in.ascii 
+# as well as the import of the generated data with r3.in.ascii 
 # using different row and depth ordering options.
 # using different row and depth ordering options.
 
 
 # We set up a specific region in the
 # We set up a specific region in the
@@ -9,8 +9,7 @@
 # should work for UTM and LL test locations
 # should work for UTM and LL test locations
 g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
 g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
 # Now create several (float, double, null value) voxel map 
 # Now create several (float, double, null value) voxel map 
-# with value = col + row + depth. Beware the 
-# raster3d module count from south to north.
+# with value = col + row + depth. 
 r3.mapcalc --o expr="volume_float = float(col() + row() + depth())"
 r3.mapcalc --o expr="volume_float = float(col() + row() + depth())"
 r3.mapcalc --o expr="volume_double = double(col() + row() + depth())"
 r3.mapcalc --o expr="volume_double = double(col() + row() + depth())"
 # Add null value information
 # Add null value information
@@ -56,15 +55,15 @@ r3.out.ascii --o -crd input=volume_double_null output=test_double_nsbt_null_gras
 # The created @raster maps should be identical to the map "volume_double_null"
 # The created @raster maps should be identical to the map "volume_double_null"
 # The export of the created g3d map should use as @precision=0 for data validation
 # The export of the created g3d map should use as @precision=0 for data validation
 # The same raster name is used for all the imported data and so for the validation reference file
 # The same raster name is used for all the imported data and so for the validation reference file
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null.ref nv=*
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_snbt_null.ref nv=*
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_nstb_null.ref nv=*
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_sntb_null.ref nv=*
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null.txt nv=*
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_snbt_null.txt nv=*
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_nstb_null.txt nv=*
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_sntb_null.txt nv=*
 # Different precision and null values than default
 # Different precision and null values than default
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null_prec5.ref nv=-1000
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_sntb_null_prec8.ref nv=-2000
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null_prec5.txt nv=-1000
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_sntb_null_prec8.txt nv=-2000
 # Any row or depth order should be ignored in case grass6 compatibility is enabled
 # Any row or depth order should be ignored in case grass6 compatibility is enabled
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null_grass6_comp_1.ref
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null_grass6_comp_1.txt
 
 
 # In this @preprocess step for the last test we create a large region and 
 # In this @preprocess step for the last test we create a large region and 
 # generate large input data to test the handling of large files
 # generate large input data to test the handling of large files

+ 21 - 21
raster3d/r3.out.ascii/test_double_nsbt_null.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
 4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
+8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
 9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
 5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
+10 11 12 13 14 15 16 17 18 19 20 21 
 11 12 13 14 15 16 17 18 19 20 21 22 
 11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14 15 16 17 18 19 20 21 22 23 24 25 
-13 14 15 16 17 18 19 20 21 22 23 24 
+11 12 13 14 15 16 17 18 19 20 21 22 
 12 13 14 15 16 17 18 19 20 21 22 23 
 12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
+14 15 16 17 18 19 20 21 22 23 24 25 

+ 21 - 21
raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_1.ref

@@ -7,43 +7,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 21 - 21
raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_2.ref

@@ -7,43 +7,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 21 - 21
raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_3.ref

@@ -7,43 +7,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 21 - 21
raster3d/r3.out.ascii/test_double_nsbt_null_no_header.ref

@@ -1,40 +1,40 @@
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 21 - 21
raster3d/r3.out.ascii/test_double_nsbt_null_prec5.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
-5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
 4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 
 4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 
+5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
+6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
-6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
+6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
+7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
-11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
+11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
-7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
+7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
-12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
+12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 
-13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
+11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
+14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 

+ 21 - 21
raster3d/r3.out.ascii/test_double_nstb_null.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-14 15 16 17 18 19 20 21 22 23 24 25 
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13 14 15 16 17 18 19 20 21 22 23 24 
 12 13 14 15 16 17 18 19 20 21 22 23 
 12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
+13 14 15 16 17 18 19 20 21 22 23 24 
+14 15 16 17 18 19 20 21 22 23 24 25 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
 11 12 13 14 15 16 17 18 19 20 21 22 
 11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
+11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
 5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
 9 10 11 12 13 14 15 16 17 18 19 20 
 9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
+10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
 4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 

+ 21 - 21
raster3d/r3.out.ascii/test_double_snbt_null.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-4 5 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
+4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
+11 12 13 14 15 16 17 18 19 20 21 22 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
+12 13 14 15 16 17 18 19 20 21 22 23 
 11 12 13 14 15 16 17 18 19 20 21 22 
 11 12 13 14 15 16 17 18 19 20 21 22 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
+13 14 15 16 17 18 19 20 21 22 23 24 
 12 13 14 15 16 17 18 19 20 21 22 23 
 12 13 14 15 16 17 18 19 20 21 22 23 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
 9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
+14 15 16 17 18 19 20 21 22 23 24 25 
 13 14 15 16 17 18 19 20 21 22 23 24 
 13 14 15 16 17 18 19 20 21 22 23 24 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
-14 15 16 17 18 19 20 21 22 23 24 25 

+ 21 - 21
raster3d/r3.out.ascii/test_double_sntb_null.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
+14 15 16 17 18 19 20 21 22 23 24 25 
+13 14 15 16 17 18 19 20 21 22 23 24 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
 13 14 15 16 17 18 19 20 21 22 23 24 
 13 14 15 16 17 18 19 20 21 22 23 24 
-14 15 16 17 18 19 20 21 22 23 24 25 
+12 13 14 15 16 17 18 19 20 21 22 23 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
 9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
 12 13 14 15 16 17 18 19 20 21 22 23 
 12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
+11 12 13 14 15 16 17 18 19 20 21 22 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
 11 12 13 14 15 16 17 18 19 20 21 22 
 11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-4 5 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
+4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 

+ 21 - 21
raster3d/r3.out.ascii/test_double_sntb_null_prec8.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
+14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 25.00000000 
+13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
+12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
-14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 25.00000000 
+12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
+11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
+7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
-13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
+11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
-7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
+7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
+6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
-12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
-6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
+6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
+5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
-11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-4.00000000 5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 
-5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
+5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
+4.00000000 5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 

+ 21 - 21
raster3d/r3.out.ascii/test_float_nsbt_null.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
 4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
+8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
 9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
 5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
+10 11 12 13 14 15 16 17 18 19 20 21 
 11 12 13 14 15 16 17 18 19 20 21 22 
 11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14 15 16 17 18 19 20 21 22 23 24 25 
-13 14 15 16 17 18 19 20 21 22 23 24 
+11 12 13 14 15 16 17 18 19 20 21 22 
 12 13 14 15 16 17 18 19 20 21 22 23 
 12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
+14 15 16 17 18 19 20 21 22 23 24 25 

+ 21 - 21
raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_1.ref

@@ -7,43 +7,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 21 - 21
raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_2.ref

@@ -7,43 +7,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 21 - 21
raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_3.ref

@@ -7,43 +7,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 21 - 21
raster3d/r3.out.ascii/test_float_nsbt_null_no_header.ref

@@ -1,40 +1,40 @@
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 21 - 21
raster3d/r3.out.ascii/test_float_nsbt_null_prec5.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
-5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
 4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 
 4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 
+5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
+6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
-6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
+6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
+7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
-11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
+11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
-7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
+7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
-12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
+12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 
-13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
+11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
+14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 

+ 21 - 21
raster3d/r3.out.ascii/test_float_nstb_null.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
-14 15 16 17 18 19 20 21 22 23 24 25 
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-13 14 15 16 17 18 19 20 21 22 23 24 
 12 13 14 15 16 17 18 19 20 21 22 23 
 12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
+13 14 15 16 17 18 19 20 21 22 23 24 
+14 15 16 17 18 19 20 21 22 23 24 25 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
 11 12 13 14 15 16 17 18 19 20 21 22 
 11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
+11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
 5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
 9 10 11 12 13 14 15 16 17 18 19 20 
 9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
+10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
 4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 

+ 21 - 21
raster3d/r3.out.ascii/test_float_snbt_null.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-4 5 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
+4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
+11 12 13 14 15 16 17 18 19 20 21 22 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
+12 13 14 15 16 17 18 19 20 21 22 23 
 11 12 13 14 15 16 17 18 19 20 21 22 
 11 12 13 14 15 16 17 18 19 20 21 22 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
+13 14 15 16 17 18 19 20 21 22 23 24 
 12 13 14 15 16 17 18 19 20 21 22 23 
 12 13 14 15 16 17 18 19 20 21 22 23 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
 9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
+14 15 16 17 18 19 20 21 22 23 24 25 
 13 14 15 16 17 18 19 20 21 22 23 24 
 13 14 15 16 17 18 19 20 21 22 23 24 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
-14 15 16 17 18 19 20 21 22 23 24 25 

+ 21 - 21
raster3d/r3.out.ascii/test_float_sntb_null.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
+14 15 16 17 18 19 20 21 22 23 24 25 
+13 14 15 16 17 18 19 20 21 22 23 24 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
 13 14 15 16 17 18 19 20 21 22 23 24 
 13 14 15 16 17 18 19 20 21 22 23 24 
-14 15 16 17 18 19 20 21 22 23 24 25 
+12 13 14 15 16 17 18 19 20 21 22 23 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
 9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
 12 13 14 15 16 17 18 19 20 21 22 23 
 12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
+11 12 13 14 15 16 17 18 19 20 21 22 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
 11 12 13 14 15 16 17 18 19 20 21 22 
 11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
 10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-4 5 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
+4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 

+ 21 - 21
raster3d/r3.out.ascii/test_float_sntb_null_prec8.ref

@@ -9,43 +9,43 @@ bottom: 0.000000
 rows: 8
 rows: 8
 cols: 12
 cols: 12
 levels: 5
 levels: 5
+14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 25.00000000 
+13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
+12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
-14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 25.00000000 
+12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
+11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
+7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
-13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
+11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
-7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
+7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
+6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
-12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
-6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
+6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
+5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
-11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-4.00000000 5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 
-5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
+5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
+4.00000000 5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 

+ 1 - 1
raster3d/r3.out.vtk/main.c

@@ -337,7 +337,7 @@ void open_write_vector_maps(input_maps * in, G3D_Region region, FILE * fp,
             if (!G3d_closeCell(mapvect)) {
             if (!G3d_closeCell(mapvect)) {
                 fatal_error(_("Error closing g3d vector map."), in);
                 fatal_error(_("Error closing g3d vector map."), in);
             }
             }
-            /*Set the pointer to null so we noe later that these files are already closed */
+            /*Set the pointer to null so we know later that these files are already closed */
             if (i == 0)
             if (i == 0)
                 in->map_x = NULL;
                 in->map_x = NULL;
             if (i == 1)
             if (i == 1)

+ 1 - 2
raster3d/r3.out.vtk/test.r3.out.vtk.sh

@@ -13,8 +13,7 @@ g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
 # to south. So in the south the elevation must have a maximum.
 # to south. So in the south the elevation must have a maximum.
 r.mapcalc --o expr="elev_bottom = row()"
 r.mapcalc --o expr="elev_bottom = row()"
 r.mapcalc --o expr="elev_top = row() + 50"
 r.mapcalc --o expr="elev_top = row() + 50"
-# Now create a voxel map with value = col + row + depth. Beware the 
-# raster3d module count from south to north.
+# Now create a voxel map with value = col + row + depth. 
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 # Add null value information
 # Add null value information
 r3.mapcalc --o expr="volume_null = if(row() == 2 || row() == 7, null(), volume)"
 r3.mapcalc --o expr="volume_null = if(row() == 2 || row() == 7, null(), volume)"

+ 23 - 23
raster3d/r3.out.vtk/test_volume_null_1_cells.ref

@@ -8,43 +8,43 @@ ORIGIN 0.000 0.000 0.000
 CELL_DATA 480
 CELL_DATA 480
 SCALARS volume_null float 1
 SCALARS volume_null float 1
 LOOKUP_TABLE default
 LOOKUP_TABLE default
-3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 

+ 23 - 23
raster3d/r3.out.vtk/test_volume_null_1_cells_elevation.ref

@@ -4808,43 +4808,43 @@ CELL_TYPES 480
 CELL_DATA 480
 CELL_DATA 480
 SCALARS volume_null float 1
 SCALARS volume_null float 1
 LOOKUP_TABLE default
 LOOKUP_TABLE default
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 227 - 227
raster3d/r3.out.vtk/test_volume_null_1_cells_rgb_vect.ref

@@ -8,59 +8,59 @@ ORIGIN 0.000 0.000 0.000
 CELL_DATA 480
 CELL_DATA 480
 SCALARS volume_null float 1
 SCALARS volume_null float 1
 LOOKUP_TABLE default
 LOOKUP_TABLE default
-3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
--1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
--1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+-1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+-1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 COLOR_SCALARS RGB_Voxel 3
 COLOR_SCALARS RGB_Voxel 3
-0.059 0.059 0.059 
-0.078 0.078 0.078 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -73,9 +73,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
@@ -85,7 +82,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
-0.118 0.118 0.118 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
@@ -97,6 +96,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
@@ -108,7 +109,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
-0.353 0.353 0.353 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
@@ -118,9 +121,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -133,18 +133,7 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
+0.059 0.059 0.059 
 0.078 0.078 0.078 
 0.078 0.078 0.078 
 0.098 0.098 0.098 
 0.098 0.098 0.098 
 0.118 0.118 0.118 
 0.118 0.118 0.118 
@@ -156,7 +145,18 @@ COLOR_SCALARS RGB_Voxel 3
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -169,9 +169,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
@@ -181,7 +178,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
-0.137 0.137 0.137 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
@@ -193,6 +192,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
@@ -204,7 +205,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
@@ -214,9 +217,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -229,18 +229,7 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
+0.078 0.078 0.078 
 0.098 0.098 0.098 
 0.098 0.098 0.098 
 0.118 0.118 0.118 
 0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
@@ -252,7 +241,18 @@ COLOR_SCALARS RGB_Voxel 3
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -265,9 +265,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
@@ -277,7 +274,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
-0.157 0.157 0.157 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
@@ -289,6 +288,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
@@ -300,7 +301,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
-0.392 0.392 0.392 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
@@ -310,9 +313,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -325,18 +325,7 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
+0.098 0.098 0.098 
 0.118 0.118 0.118 
 0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
@@ -348,7 +337,18 @@ COLOR_SCALARS RGB_Voxel 3
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
+0.471 0.471 0.471 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -361,9 +361,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
@@ -373,7 +370,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
-0.176 0.176 0.176 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
@@ -385,6 +384,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
@@ -396,7 +397,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
-0.412 0.412 0.412 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
@@ -406,9 +409,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -421,18 +421,7 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
-0.471 0.471 0.471 
+0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
@@ -444,7 +433,18 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
+0.471 0.471 0.471 
+0.490 0.490 0.490 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -457,9 +457,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
@@ -469,7 +466,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
-0.196 0.196 0.196 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
@@ -481,6 +480,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
 0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
@@ -492,7 +493,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
 0.412 0.412 0.412 
-0.431 0.431 0.431 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
@@ -502,9 +505,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -517,31 +517,31 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
-0.471 0.471 0.471 
-0.490 0.490 0.490 
 VECTORS Vector_Data float
 VECTORS Vector_Data float
-3.000 3.000 3.000 
-4.000 4.000 4.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -554,9 +554,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
@@ -566,7 +563,9 @@ VECTORS Vector_Data float
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
-6.000 6.000 6.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
@@ -578,6 +577,8 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
+18.000 18.000 18.000 
+6.000 6.000 6.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
@@ -589,7 +590,9 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
-18.000 18.000 18.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
@@ -599,9 +602,6 @@ VECTORS Vector_Data float
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -614,18 +614,7 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
+3.000 3.000 3.000 
 4.000 4.000 4.000 
 4.000 4.000 4.000 
 5.000 5.000 5.000 
 5.000 5.000 5.000 
 6.000 6.000 6.000 
 6.000 6.000 6.000 
@@ -637,7 +626,18 @@ VECTORS Vector_Data float
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -650,9 +650,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
@@ -662,7 +659,9 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
-7.000 7.000 7.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
@@ -674,6 +673,8 @@ VECTORS Vector_Data float
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
+19.000 19.000 19.000 
+7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
@@ -685,7 +686,9 @@ VECTORS Vector_Data float
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
@@ -695,9 +698,6 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -710,18 +710,7 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
+4.000 4.000 4.000 
 5.000 5.000 5.000 
 5.000 5.000 5.000 
 6.000 6.000 6.000 
 6.000 6.000 6.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
@@ -733,7 +722,18 @@ VECTORS Vector_Data float
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -746,9 +746,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
@@ -758,7 +755,9 @@ VECTORS Vector_Data float
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
-8.000 8.000 8.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
@@ -770,6 +769,8 @@ VECTORS Vector_Data float
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
+20.000 20.000 20.000 
+8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
@@ -781,7 +782,9 @@ VECTORS Vector_Data float
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
-20.000 20.000 20.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
@@ -791,9 +794,6 @@ VECTORS Vector_Data float
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -806,18 +806,7 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
+5.000 5.000 5.000 
 6.000 6.000 6.000 
 6.000 6.000 6.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
@@ -829,7 +818,18 @@ VECTORS Vector_Data float
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
+24.000 24.000 24.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -842,9 +842,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
@@ -854,7 +851,9 @@ VECTORS Vector_Data float
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
-9.000 9.000 9.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
@@ -866,6 +865,8 @@ VECTORS Vector_Data float
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
+21.000 21.000 21.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
@@ -877,7 +878,9 @@ VECTORS Vector_Data float
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
-21.000 21.000 21.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
@@ -887,9 +890,6 @@ VECTORS Vector_Data float
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -902,18 +902,7 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
-24.000 24.000 24.000 
+6.000 6.000 6.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
@@ -925,7 +914,18 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
+24.000 24.000 24.000 
+25.000 25.000 25.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -938,9 +938,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
@@ -950,7 +947,9 @@ VECTORS Vector_Data float
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
-10.000 10.000 10.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
@@ -962,6 +961,8 @@ VECTORS Vector_Data float
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
 21.000 21.000 21.000 
+22.000 22.000 22.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
@@ -973,7 +974,9 @@ VECTORS Vector_Data float
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
 21.000 21.000 21.000 
-22.000 22.000 22.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
@@ -983,9 +986,6 @@ VECTORS Vector_Data float
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -998,15 +998,15 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
-24.000 24.000 24.000 
-25.000 25.000 25.000 

+ 23 - 23
raster3d/r3.out.vtk/test_volume_null_1_points.ref

@@ -8,43 +8,43 @@ ORIGIN 5.000 5.000 5.000
 POINT_DATA 480
 POINT_DATA 480
 SCALARS volume_null float 1
 SCALARS volume_null float 1
 LOOKUP_TABLE default
 LOOKUP_TABLE default
-3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 

+ 23 - 23
raster3d/r3.out.vtk/test_volume_null_1_points_elevation.ref

@@ -487,43 +487,43 @@ POINTS 480 float
 POINT_DATA 480
 POINT_DATA 480
 SCALARS volume_null float 1
 SCALARS volume_null float 1
 LOOKUP_TABLE default
 LOOKUP_TABLE default
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

+ 227 - 227
raster3d/r3.out.vtk/test_volume_null_1_points_rgb_vect.ref

@@ -8,59 +8,59 @@ ORIGIN 5.000 5.000 5.000
 POINT_DATA 480
 POINT_DATA 480
 SCALARS volume_null float 1
 SCALARS volume_null float 1
 LOOKUP_TABLE default
 LOOKUP_TABLE default
-3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
--1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
--1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+-1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+-1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 COLOR_SCALARS RGB_Voxel 3
 COLOR_SCALARS RGB_Voxel 3
-0.059 0.059 0.059 
-0.078 0.078 0.078 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -73,9 +73,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
@@ -85,7 +82,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
-0.118 0.118 0.118 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
@@ -97,6 +96,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
@@ -108,7 +109,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
-0.353 0.353 0.353 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
@@ -118,9 +121,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -133,18 +133,7 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
+0.059 0.059 0.059 
 0.078 0.078 0.078 
 0.078 0.078 0.078 
 0.098 0.098 0.098 
 0.098 0.098 0.098 
 0.118 0.118 0.118 
 0.118 0.118 0.118 
@@ -156,7 +145,18 @@ COLOR_SCALARS RGB_Voxel 3
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -169,9 +169,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
@@ -181,7 +178,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
-0.137 0.137 0.137 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
@@ -193,6 +192,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
@@ -204,7 +205,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
@@ -214,9 +217,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -229,18 +229,7 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
+0.078 0.078 0.078 
 0.098 0.098 0.098 
 0.098 0.098 0.098 
 0.118 0.118 0.118 
 0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
@@ -252,7 +241,18 @@ COLOR_SCALARS RGB_Voxel 3
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -265,9 +265,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
@@ -277,7 +274,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
-0.157 0.157 0.157 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
@@ -289,6 +288,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
@@ -300,7 +301,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
-0.392 0.392 0.392 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
@@ -310,9 +313,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -325,18 +325,7 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
+0.098 0.098 0.098 
 0.118 0.118 0.118 
 0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
@@ -348,7 +337,18 @@ COLOR_SCALARS RGB_Voxel 3
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
+0.471 0.471 0.471 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -361,9 +361,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
@@ -373,7 +370,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
-0.176 0.176 0.176 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
@@ -385,6 +384,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
@@ -396,7 +397,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
-0.412 0.412 0.412 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
@@ -406,9 +409,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -421,18 +421,7 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
-0.471 0.471 0.471 
+0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.176 0.176 0.176 
@@ -444,7 +433,18 @@ COLOR_SCALARS RGB_Voxel 3
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
+0.471 0.471 0.471 
+0.490 0.490 0.490 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -457,9 +457,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
@@ -469,7 +466,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
-0.196 0.196 0.196 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
@@ -481,6 +480,8 @@ COLOR_SCALARS RGB_Voxel 3
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
 0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
@@ -492,7 +493,9 @@ COLOR_SCALARS RGB_Voxel 3
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
 0.412 0.412 0.412 
-0.431 0.431 0.431 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
@@ -502,9 +505,6 @@ COLOR_SCALARS RGB_Voxel 3
 0.353 0.353 0.353 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -517,31 +517,31 @@ COLOR_SCALARS RGB_Voxel 3
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
-0.471 0.471 0.471 
-0.490 0.490 0.490 
 VECTORS Vector_Data float
 VECTORS Vector_Data float
-3.000 3.000 3.000 
-4.000 4.000 4.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -554,9 +554,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
@@ -566,7 +563,9 @@ VECTORS Vector_Data float
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
-6.000 6.000 6.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
@@ -578,6 +577,8 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
+18.000 18.000 18.000 
+6.000 6.000 6.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
@@ -589,7 +590,9 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
-18.000 18.000 18.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
@@ -599,9 +602,6 @@ VECTORS Vector_Data float
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -614,18 +614,7 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
+3.000 3.000 3.000 
 4.000 4.000 4.000 
 4.000 4.000 4.000 
 5.000 5.000 5.000 
 5.000 5.000 5.000 
 6.000 6.000 6.000 
 6.000 6.000 6.000 
@@ -637,7 +626,18 @@ VECTORS Vector_Data float
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -650,9 +650,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
@@ -662,7 +659,9 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
-7.000 7.000 7.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
@@ -674,6 +673,8 @@ VECTORS Vector_Data float
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
+19.000 19.000 19.000 
+7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
@@ -685,7 +686,9 @@ VECTORS Vector_Data float
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
@@ -695,9 +698,6 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -710,18 +710,7 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
+4.000 4.000 4.000 
 5.000 5.000 5.000 
 5.000 5.000 5.000 
 6.000 6.000 6.000 
 6.000 6.000 6.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
@@ -733,7 +722,18 @@ VECTORS Vector_Data float
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -746,9 +746,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
@@ -758,7 +755,9 @@ VECTORS Vector_Data float
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
-8.000 8.000 8.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
@@ -770,6 +769,8 @@ VECTORS Vector_Data float
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
+20.000 20.000 20.000 
+8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
@@ -781,7 +782,9 @@ VECTORS Vector_Data float
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
-20.000 20.000 20.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
@@ -791,9 +794,6 @@ VECTORS Vector_Data float
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -806,18 +806,7 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
+5.000 5.000 5.000 
 6.000 6.000 6.000 
 6.000 6.000 6.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
@@ -829,7 +818,18 @@ VECTORS Vector_Data float
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
+24.000 24.000 24.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -842,9 +842,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
@@ -854,7 +851,9 @@ VECTORS Vector_Data float
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
-9.000 9.000 9.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
@@ -866,6 +865,8 @@ VECTORS Vector_Data float
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
+21.000 21.000 21.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
@@ -877,7 +878,9 @@ VECTORS Vector_Data float
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
-21.000 21.000 21.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
@@ -887,9 +890,6 @@ VECTORS Vector_Data float
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -902,18 +902,7 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
-24.000 24.000 24.000 
+6.000 6.000 6.000 
 7.000 7.000 7.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 9.000 9.000 9.000 
@@ -925,7 +914,18 @@ VECTORS Vector_Data float
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
+24.000 24.000 24.000 
+25.000 25.000 25.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -938,9 +938,6 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
@@ -950,7 +947,9 @@ VECTORS Vector_Data float
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
-10.000 10.000 10.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
@@ -962,6 +961,8 @@ VECTORS Vector_Data float
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
 21.000 21.000 21.000 
+22.000 22.000 22.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
@@ -973,7 +974,9 @@ VECTORS Vector_Data float
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
 21.000 21.000 21.000 
-22.000 22.000 22.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
 12.000 12.000 12.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
@@ -983,9 +986,6 @@ VECTORS Vector_Data float
 18.000 18.000 18.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -998,15 +998,15 @@ VECTORS Vector_Data float
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
 14.000 14.000 14.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
-24.000 24.000 24.000 
-25.000 25.000 25.000 

+ 14 - 11
raster3d/r3.out.vtk/writeVTKData.c

@@ -151,7 +151,7 @@ void write_vtk_points(input_maps * in, FILE * fp, G3D_Region region, int dp,
                     xcoor =
                     xcoor =
                         region.west + (region.ew_res / 2 +
                         region.west + (region.ew_res / 2 +
                         region.ew_res * (x));
                         region.ew_res * (x));
-                    /* Here the raster north->south coordinate system is used */
+                    /* Here the raster3d north->south coordinate system is used */
                     ycoor =
                     ycoor =
                         region.north - (region.ns_res / 2 +
                         region.north - (region.ns_res / 2 +
                         region.ns_res * (y));
                         region.ns_res * (y));
@@ -180,12 +180,12 @@ void write_vtk_points(input_maps * in, FILE * fp, G3D_Region region, int dp,
 
 
                      */
                      */
                     xcoor = region.west + (region.ew_res * (x)); /*0, 3, 4, 7 */
                     xcoor = region.west + (region.ew_res * (x)); /*0, 3, 4, 7 */
-                    /* Here the raster north->south coordinate system is used */
+                    /* Here the raster3d north->south coordinate system is used */
                     ycoor = region.north - (region.ns_res * (y)); /*2, 3, 6, 7 */
                     ycoor = region.north - (region.ns_res * (y)); /*2, 3, 6, 7 */
                     zcoor = (bottomval + z * (topval - bottomval) / (depths)) * scale; /*0, 1, 2, 3 */
                     zcoor = (bottomval + z * (topval - bottomval) / (depths)) * scale; /*0, 1, 2, 3 */
 
 
                     xcoor1 = region.west + (region.ew_res + region.ew_res * (x)); /*1, 2, 5, 6 */
                     xcoor1 = region.west + (region.ew_res + region.ew_res * (x)); /*1, 2, 5, 6 */
-                    /* Here the raster north->south coordinate system is used */
+                    /* Here the raster3d north->south coordinate system is used */
                     ycoor1 = region.north - (region.ns_res + region.ns_res * (y)); /*0, 1, 4, 5 */
                     ycoor1 = region.north - (region.ns_res + region.ns_res * (y)); /*0, 1, 4, 5 */
                     zcoor1 = (bottomval + z * (topval - bottomval) / (depths) + (topval - bottomval) / (depths)) * scale; /*4, 5, ,6 ,7 */
                     zcoor1 = (bottomval + z * (topval - bottomval) / (depths) + (topval - bottomval) / (depths)) * scale; /*4, 5, ,6 ,7 */
 
 
@@ -343,10 +343,11 @@ void write_vtk_data(FILE * fp, void *map, G3D_Region region, char *varname,
     percentage = 0;
     percentage = 0;
 
 
     for (z = 0; z < depths; z++) {
     for (z = 0; z < depths; z++) {
-        if (param.structgrid->answer) {
-            /* In case of structured grid data, the point/cell coordinates
-               are computed based on the north->south raster coordinate system 
-             */
+        /* In case of structured grid data, the point/cell coordinates
+           are computed based on the default north->south raster3d coordinate system.
+           We need to compute south -> north ordering for image data.
+         */
+        if (!param.structgrid->answer) {
             for (y = rows - 1; y >= 0; y--) {
             for (y = rows - 1; y >= 0; y--) {
                 G_percent(percentage, (rows * depths - 1), 10);
                 G_percent(percentage, (rows * depths - 1), 10);
                 percentage++;
                 percentage++;
@@ -422,9 +423,10 @@ void write_vtk_rgb_data(void *map_r, void *map_g, void *map_b,
                         maprgb = map_b;
                         maprgb = map_b;
 
 
                     /* In case of structured grid data, the point/cell coordinates
                     /* In case of structured grid data, the point/cell coordinates
-                       are computed based on the north->south raster coordinate system 
+                       are computed based on the default north->south raster3d coordinate system.
+                       We need to compute south -> north ordering for image data.
                      */
                      */
-                    if (param.structgrid->answer)
+                    if (!param.structgrid->answer)
                         value =
                         value =
                         get_g3d_raster_value_as_double(maprgb, x, rows - y - 1, z,
                         get_g3d_raster_value_as_double(maprgb, x, rows - y - 1, z,
                                                        typeIntern[k],
                                                        typeIntern[k],
@@ -496,9 +498,10 @@ void write_vtk_vector_data(void *map_x, void *map_y, void *map_z,
                         mapvect = map_z;
                         mapvect = map_z;
 
 
                     /* In case of structured grid data, the point/cell coordinates
                     /* In case of structured grid data, the point/cell coordinates
-                       are computed based on the north->south raster coordinate system 
+                       are computed based on the default north->south raster3d coordinate system.
+                       We need to compute south -> north ordering for image data.
                      */
                      */
-                    if (param.structgrid->answer)
+                    if (!param.structgrid->answer)
                         value =
                         value =
                         get_g3d_raster_value_as_double(mapvect, x, rows - y - 1, z,
                         get_g3d_raster_value_as_double(mapvect, x, rows - y - 1, z,
                                                        typeIntern[k],
                                                        typeIntern[k],

+ 2 - 6
raster3d/r3.to.rast/main.c

@@ -132,18 +132,14 @@ void g3d_to_raster(void *map, G3D_Region region, int *fd)
             G_percent(y, rows - 1, 10);
             G_percent(y, rows - 1, 10);
 
 
             for (x = 0; x < cols; x++) {
             for (x = 0; x < cols; x++) {
-                /* Because we write raster rows from north to south, but the coordinate system
-                 of the g3d cube read from south to north we need to adjust the
-                 Cube coordinates row = rows - y - 1.
-                 */
                 if (typeIntern == FCELL_TYPE) {
                 if (typeIntern == FCELL_TYPE) {
-                    G3d_getValue(map, x, rows - y - 1, z, &f1, typeIntern);
+                    G3d_getValue(map, x, y, z, &f1, typeIntern);
                     if (G3d_isNullValueNum(&f1, FCELL_TYPE))
                     if (G3d_isNullValueNum(&f1, FCELL_TYPE))
                         Rast_set_null_value(&fcell[x], 1, FCELL_TYPE);
                         Rast_set_null_value(&fcell[x], 1, FCELL_TYPE);
                     else
                     else
                         fcell[x] = (FCELL) f1;
                         fcell[x] = (FCELL) f1;
                 } else {
                 } else {
-                    G3d_getValue(map, x, rows - y - 1, z, &d1, typeIntern);
+                    G3d_getValue(map, x, y, z, &d1, typeIntern);
                     if (G3d_isNullValueNum(&d1, DCELL_TYPE))
                     if (G3d_isNullValueNum(&d1, DCELL_TYPE))
                         Rast_set_null_value(&dcell[x], 1, DCELL_TYPE);
                         Rast_set_null_value(&dcell[x], 1, DCELL_TYPE);
                     else
                     else

+ 1 - 2
raster3d/r3.to.rast/test.r3.to.rast.sh

@@ -7,8 +7,7 @@
 # voxel data with r3.mapcalc. The region setting 
 # voxel data with r3.mapcalc. The region setting 
 # should work for UTM and LL test locations
 # should work for UTM and LL test locations
 g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
 g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
-# Now create a voxel map with value = col + row + depth. Beware the 
-# raster3d module count from south to north.
+# Now create a voxel map with value = col + row + depth. 
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 # Add null value information
 # Add null value information
 r3.mapcalc --o expr="volume_null = if(row() == 1 || row() == 5, null(), volume)"
 r3.mapcalc --o expr="volume_null = if(row() == 1 || row() == 5, null(), volume)"

+ 5 - 5
raster3d/r3.to.rast/test_raster_slice_1_00001.ref

@@ -4,11 +4,11 @@ east: 120
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 12
 cols: 12
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
 4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 

+ 5 - 5
raster3d/r3.to.rast/test_raster_slice_1_00002.ref

@@ -4,11 +4,11 @@ east: 120
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 12
 cols: 12
-11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
 5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 

+ 5 - 5
raster3d/r3.to.rast/test_raster_slice_1_00003.ref

@@ -4,11 +4,11 @@ east: 120
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 12
 cols: 12
-12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
 6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 

+ 5 - 5
raster3d/r3.to.rast/test_raster_slice_1_00004.ref

@@ -4,11 +4,11 @@ east: 120
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 12
 cols: 12
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
 7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 

+ 5 - 5
raster3d/r3.to.rast/test_raster_slice_1_00005.ref

@@ -4,11 +4,11 @@ east: 120
 west: 0
 west: 0
 rows: 8
 rows: 8
 cols: 12
 cols: 12
-14 15 16 17 18 19 20 21 22 23 24 25 
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
 8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
+14 15 16 17 18 19 20 21 22 23 24 25 

+ 7 - 7
raster3d/r3.to.rast/test_raster_slice_2_00001.ref

@@ -4,14 +4,14 @@ east: 120
 west: 0
 west: 0
 rows: 11
 rows: 11
 cols: 16
 cols: 16
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
-8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
-5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
 4 5 5 6 7 8 8 9 10 11 11 12 13 14 14 15 
 4 5 5 6 7 8 8 9 10 11 11 12 13 14 14 15 
 4 5 5 6 7 8 8 9 10 11 11 12 13 14 14 15 
 4 5 5 6 7 8 8 9 10 11 11 12 13 14 14 15 
+5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
+6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
+6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
+8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 

+ 7 - 7
raster3d/r3.to.rast/test_raster_slice_2_00002.ref

@@ -4,14 +4,14 @@ east: 120
 west: 0
 west: 0
 rows: 11
 rows: 11
 cols: 16
 cols: 16
-11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
-6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
 5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
 5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
 5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
 5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
+6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
+7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
+7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
+11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 

+ 7 - 7
raster3d/r3.to.rast/test_raster_slice_2_00003.ref

@@ -4,14 +4,14 @@ east: 120
 west: 0
 west: 0
 rows: 11
 rows: 11
 cols: 16
 cols: 16
-12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
-11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
-11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
-7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
 6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
 6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
 6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
 6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
+7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
+8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
+8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
+11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
+11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
+12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 

+ 7 - 7
raster3d/r3.to.rast/test_raster_slice_2_00004.ref

@@ -4,14 +4,14 @@ east: 120
 west: 0
 west: 0
 rows: 11
 rows: 11
 cols: 16
 cols: 16
-13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
-12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
-12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
-11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
-8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
 7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
 7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
 7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
+8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
+11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
+12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
+12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
+13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 

+ 7 - 7
raster3d/r3.to.rast/test_raster_slice_2_00005.ref

@@ -4,14 +4,14 @@ east: 120
 west: 0
 west: 0
 rows: 11
 rows: 11
 cols: 16
 cols: 16
-14 15 15 16 17 18 18 19 20 21 21 22 23 24 24 25 
-13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
-13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
-12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
 8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
 * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * 
+12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
+13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
+13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
+14 15 15 16 17 18 18 19 20 21 21 22 23 24 24 25 

+ 10 - 10
raster3d/r3.to.rast/test_raster_slice_3_00001.ref

@@ -4,19 +4,19 @@ east: 120
 west: 0
 west: 0
 rows: 16
 rows: 16
 cols: 24
 cols: 24
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
-6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
-6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
-5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
-5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 
 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 
 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 
 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 
+5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
+5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
+6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
+6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 

+ 10 - 10
raster3d/r3.to.rast/test_raster_slice_3_00002.ref

@@ -4,19 +4,19 @@ east: 120
 west: 0
 west: 0
 rows: 16
 rows: 16
 cols: 24
 cols: 24
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
-7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
-7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
-6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
-6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
+6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
+6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
+7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
+7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 

+ 10 - 10
raster3d/r3.to.rast/test_raster_slice_3_00003.ref

@@ -4,19 +4,19 @@ east: 120
 west: 0
 west: 0
 rows: 16
 rows: 16
 cols: 24
 cols: 24
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
-7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
+7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
+7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 

+ 10 - 10
raster3d/r3.to.rast/test_raster_slice_3_00004.ref

@@ -4,19 +4,19 @@ east: 120
 west: 0
 west: 0
 rows: 16
 rows: 16
 cols: 24
 cols: 24
-13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
-13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
+13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 

+ 10 - 10
raster3d/r3.to.rast/test_raster_slice_3_00005.ref

@@ -4,19 +4,19 @@ east: 120
 west: 0
 west: 0
 rows: 16
 rows: 16
 cols: 24
 cols: 24
-14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 
-14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 
-13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
-13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
+13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
+14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 
+14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 

+ 15 - 0
raster3d/raster3dintro.html

@@ -13,6 +13,21 @@
 <!-- meta page description: 3D Raster data (voxel) introduction -->
 <!-- meta page description: 3D Raster data (voxel) introduction -->
 <h2>3D Raster data (voxel) in GRASS GIS</h2>
 <h2>3D Raster data (voxel) in GRASS GIS</h2>
 
 
+The 3d raster data implementation in GRASS GIS uses the same coordinate system as
+raster data (row count from north to south) with an additional z dimension (depth)
+coutning from bottom to top.
+
+<pre>
+      Top (z)
+       |
+       |     North
+ West  | _ _ _ _ _ _ East (x)
+      / Bottom
+     /
+    /
+ South (y)
+</pre>
+
 <h3>3D Raster (voxel) import</h3>
 <h3>3D Raster (voxel) import</h3>
 
 
 The module <a href="r3.in.ascii.html">r3.in.ascii</a> supports
 The module <a href="r3.in.ascii.html">r3.in.ascii</a> supports

+ 3 - 3
vector/v.to.rast3/main.c

@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
     struct Map_info Map;
     struct Map_info Map;
     struct line_pnts *Points;
     struct line_pnts *Points;
     struct line_cats *Cats;
     struct line_cats *Cats;
-    void *map = NULL;
+    G3D_Map *map = NULL;
 
 
     int nlines, line, nrec, ctype;
     int nlines, line, nrec, ctype;
 
 
@@ -122,11 +122,11 @@ int main(int argc, char *argv[])
 	    continue;
 	    continue;
 	}
 	}
     /* Check if the coordinates are located in the cube */
     /* Check if the coordinates are located in the cube */
-	if (!G3d_isValidLocation(map, Points->y[0], Points->x[0], Points->z[0])) {
+	if (!G3d_isValidLocation(&(map->region), Points->y[0], Points->x[0], Points->z[0])) {
 	    continue;
 	    continue;
 	}
 	}
     /* Convert the north, east and top coorindate into row, col and depth*/
     /* Convert the north, east and top coorindate into row, col and depth*/
-    G3d_location2coord2(map, Points->y[0], Points->x[0], Points->z[0], &col, &row, &depth);
+    G3d_location2coord2(&(map->region), Points->y[0], Points->x[0], Points->z[0], &col, &row, &depth);
 
 
 	if (ctype == DB_C_TYPE_INT) {
 	if (ctype == DB_C_TYPE_INT) {
 	    int ivalue;
 	    int ivalue;

+ 21 - 21
vector/v.vol.rst/user1.c

@@ -423,8 +423,8 @@ int OUTGR()
   /*** Write elevation results ***/
   /*** Write elevation results ***/
     if (outz != NULL) {
     if (outz != NULL) {
 
 
-	cf1 = G3d_openNewOptTileSize(outz, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf1 = G3d_openCellNew(outz, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf1 == NULL) {
 	if (cf1 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", outz);
 	    sprintf(buff, "Can't open %s for writing ", outz);
 	    clean_fatal_error(buff);
 	    clean_fatal_error(buff);
@@ -442,7 +442,7 @@ int OUTGR()
 	cnt = 0;
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
 			bmask = BM_get(bitmask, x, y);
@@ -474,8 +474,8 @@ int OUTGR()
   /*** Write out the gradient results ***/
   /*** Write out the gradient results ***/
     if (gradient != NULL) {
     if (gradient != NULL) {
 
 
-	cf2 = G3d_openNewOptTileSize(gradient, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf2 = G3d_openCellNew(gradient, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf2 == NULL) {
 	if (cf2 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", gradient);
 	    sprintf(buff, "Can't open %s for writing ", gradient);
 	    clean_fatal_error(buff);
 	    clean_fatal_error(buff);
@@ -493,7 +493,7 @@ int OUTGR()
 	cnt = 0;
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
 			bmask = BM_get(bitmask, x, y);
@@ -525,8 +525,8 @@ int OUTGR()
   /*** Write out aspect1 results ***/
   /*** Write out aspect1 results ***/
     if (aspect1 != NULL) {
     if (aspect1 != NULL) {
 
 
-	cf3 = G3d_openNewOptTileSize(aspect1, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf3 = G3d_openCellNew(aspect1, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf3 == NULL) {
 	if (cf3 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", aspect1);
 	    sprintf(buff, "Can't open %s for writing ", aspect1);
 	    clean_fatal_error(buff);
 	    clean_fatal_error(buff);
@@ -544,7 +544,7 @@ int OUTGR()
 	cnt = 0;
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
 			bmask = BM_get(bitmask, x, y);
@@ -576,8 +576,8 @@ int OUTGR()
   /*** Write out aspect2 results ***/
   /*** Write out aspect2 results ***/
     if (aspect2 != NULL) {
     if (aspect2 != NULL) {
 
 
-	cf4 = G3d_openNewOptTileSize(aspect2, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf4 = G3d_openCellNew(aspect2, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf4 == NULL) {
 	if (cf4 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", aspect2);
 	    sprintf(buff, "Can't open %s for writing ", aspect2);
 	    clean_fatal_error(buff);
 	    clean_fatal_error(buff);
@@ -595,7 +595,7 @@ int OUTGR()
 	cnt = 0;
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
 			bmask = BM_get(bitmask, x, y);
@@ -627,8 +627,8 @@ int OUTGR()
   /*** Write out ncurv results ***/
   /*** Write out ncurv results ***/
     if (ncurv != NULL) {
     if (ncurv != NULL) {
 
 
-	cf5 = G3d_openNewOptTileSize(ncurv, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf5 = G3d_openCellNew(ncurv, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf5 == NULL) {
 	if (cf5 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", ncurv);
 	    sprintf(buff, "Can't open %s for writing ", ncurv);
 	    clean_fatal_error(buff);
 	    clean_fatal_error(buff);
@@ -646,7 +646,7 @@ int OUTGR()
 	cnt = 0;
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
 			bmask = BM_get(bitmask, x, y);
@@ -678,8 +678,8 @@ int OUTGR()
   /*** Write out gcurv results ***/
   /*** Write out gcurv results ***/
     if (gcurv != NULL) {
     if (gcurv != NULL) {
 
 
-	cf6 = G3d_openNewOptTileSize(gcurv, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf6 = G3d_openCellNew(gcurv, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf6 == NULL) {
 	if (cf6 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", gcurv);
 	    sprintf(buff, "Can't open %s for writing ", gcurv);
 	    clean_fatal_error(buff);
 	    clean_fatal_error(buff);
@@ -697,7 +697,7 @@ int OUTGR()
 	cnt = 0;
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
 			bmask = BM_get(bitmask, x, y);
@@ -729,8 +729,8 @@ int OUTGR()
   /*** Write mcurv results ***/
   /*** Write mcurv results ***/
     if (mcurv != NULL) {
     if (mcurv != NULL) {
 
 
-	cf7 = G3d_openNewOptTileSize(mcurv,
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf7 = G3d_openCellNew(mcurv, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf7 == NULL) {
 	if (cf7 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", mcurv);
 	    sprintf(buff, "Can't open %s for writing ", mcurv);
 	    clean_fatal_error(buff);
 	    clean_fatal_error(buff);
@@ -748,7 +748,7 @@ int OUTGR()
 	cnt = 0;
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
 			bmask = BM_get(bitmask, x, y);