[GRASS-SVN] r39403 - grass/trunk/imagery/i.rgb.his

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 5 03:38:43 EDT 2009


Author: hamish
Date: 2009-10-05 03:38:41 -0400 (Mon, 05 Oct 2009)
New Revision: 39403

Modified:
   grass/trunk/imagery/i.rgb.his/main.c
Log:
minor clean

Modified: grass/trunk/imagery/i.rgb.his/main.c
===================================================================
--- grass/trunk/imagery/i.rgb.his/main.c	2009-10-05 07:34:54 UTC (rev 39402)
+++ grass/trunk/imagery/i.rgb.his/main.c	2009-10-05 07:38:41 UTC (rev 39403)
@@ -79,6 +79,7 @@
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
+
     /* get dimension of the image */
     rows = G_window_rows();
     cols = G_window_cols();
@@ -93,7 +94,7 @@
 
 	for (band = 0; band < 3; band++)
 	    if (Rast_get_c_row(fd_input[band], rowbuffer[band], i) < 0)
-		G_fatal_error(_("Unable to read raster map row %d"), i);
+		G_fatal_error(_("Unable to read raster map row %ld"), i);
 
 	/* process this row of the map */
 	rgb2his(rowbuffer, cols);
@@ -102,11 +103,13 @@
 	for (band = 0; band < 3; band++)
 	    if (Rast_put_row(fd_output[band], rowbuffer[band], CELL_TYPE)
 		< 0)
-		G_fatal_error(_("Failed writing raster map row %d"), i);
+		G_fatal_error(_("Failed writing raster map row %ld"), i);
     }
+    G_percent(i, rows, 2);
 
     closefiles(opt_hue->answer, opt_inten->answer, opt_sat->answer,
 	       fd_output, rowbuffer);
 
+
     exit(EXIT_SUCCESS);
 }



More information about the grass-commit mailing list