[GRASS-SVN] r52339 - grass/trunk/raster/r.watershed/seg
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 7 11:30:24 PDT 2012
Author: mmetz
Date: 2012-07-07 11:30:24 -0700 (Sat, 07 Jul 2012)
New Revision: 52339
Modified:
grass/trunk/raster/r.watershed/seg/close_maps.c
grass/trunk/raster/r.watershed/seg/init_vars.c
Log:
r.watershed seg: close output raster
Modified: grass/trunk/raster/r.watershed/seg/close_maps.c
===================================================================
--- grass/trunk/raster/r.watershed/seg/close_maps.c 2012-07-07 09:39:48 UTC (rev 52338)
+++ grass/trunk/raster/r.watershed/seg/close_maps.c 2012-07-07 18:30:24 UTC (rev 52339)
@@ -229,6 +229,9 @@
}
Rast_put_row(fd, cbuf, CELL_TYPE);
}
+
+ Rast_close(fd);
+
Rast_init_colors(&colors);
Rast_make_grey_scale_colors(&colors, 1, 8);
Rast_write_colors(asp_name, this_mapset, &colors);
Modified: grass/trunk/raster/r.watershed/seg/init_vars.c
===================================================================
--- grass/trunk/raster/r.watershed/seg/init_vars.c 2012-07-07 09:39:48 UTC (rev 52338)
+++ grass/trunk/raster/r.watershed/seg/init_vars.c 2012-07-07 18:30:24 UTC (rev 52339)
@@ -286,7 +286,6 @@
alt_value_buf = Rast_allocate_buf(CELL_TYPE);
/* read elevation input and mark NULL/masked cells */
- G_message("New version");
G_message("SECTION 1a: Mark masked and NULL cells");
MASK_flag = 0;
do_points = (GW_LARGE_INT) nrows * ncols;
More information about the grass-commit
mailing list