[GRASS-SVN] r44264 - grass-addons/imagery/i.landsat.acca

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 8 17:51:44 EST 2010


Author: martinl
Date: 2010-11-08 14:51:44 -0800 (Mon, 08 Nov 2010)
New Revision: 44264

Modified:
   grass-addons/imagery/i.landsat.acca/algorithm.c
   grass-addons/imagery/i.landsat.acca/tools.c
Log:
i.landsat: some cosmetics in progress messages


Modified: grass-addons/imagery/i.landsat.acca/algorithm.c
===================================================================
--- grass-addons/imagery/i.landsat.acca/algorithm.c	2010-11-08 22:04:33 UTC (rev 44263)
+++ grass-addons/imagery/i.landsat.acca/algorithm.c	2010-11-08 22:51:44 UTC (rev 44264)
@@ -227,7 +227,7 @@
 
     out->rast = G_allocate_raster_buf(CELL_TYPE);
     /* ----- ----- */
-    G_message(_("Processing first pass..."));
+    G_important_message(_("Processing first pass..."));
 
     stats[SUM_COLD] = 0.;
     stats[SUM_WARM] = 0.;

Modified: grass-addons/imagery/i.landsat.acca/tools.c
===================================================================
--- grass-addons/imagery/i.landsat.acca/tools.c	2010-11-08 22:04:33 UTC (rev 44263)
+++ grass-addons/imagery/i.landsat.acca/tools.c	2010-11-08 22:51:44 UTC (rev 44264)
@@ -139,7 +139,7 @@
     if ((tmp.fd = G_open_raster_new(tmp.name, CELL_TYPE)) < 0)
 	G_fatal_error(_("Unable to create raster map <%s>"), tmp.name);
 
-    G_message(_("Filling small holes in clouds ..."));
+    G_important_message(_("Filling small holes in clouds..."));
 
     /* Se puede acelerar creandolos nulos y luego arast = brast
        brast = crast y cargando crast solamente
@@ -148,6 +148,8 @@
 
     for (row = 0; row < nrows; row++) {
 	/* Read row values */
+	G_percent(row, nrows, 2);
+	
 	if (row != 0) {
 	    if (G_get_c_raster_row(out->fd, arast, row - 1) < 0)
 		G_fatal_error(_("Unable to read raster map <%s> row %d"),
@@ -288,9 +290,9 @@
 	if (G_put_raster_row(tmp.fd, tmp.rast, CELL_TYPE) < 0)
 	    G_fatal_error(_("Failed writing raster map <%s> row %d"),
 			  tmp.name, row);
-	G_percent(row, nrows, 2);
     }
-
+    G_percent(1, 1, 1);
+    
     G_free(arast);
     G_free(brast);
     G_free(crast);



More information about the grass-commit mailing list