[GRASS-SVN] r44266 - grass/trunk/imagery/i.landsat.acca

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 8 17:56:04 EST 2010


Author: martinl
Date: 2010-11-08 14:56:04 -0800 (Mon, 08 Nov 2010)
New Revision: 44266

Modified:
   grass/trunk/imagery/i.landsat.acca/algorithm.c
   grass/trunk/imagery/i.landsat.acca/tools.c
Log:
i.landsat: be more verbose (cosmetics)


Modified: grass/trunk/imagery/i.landsat.acca/algorithm.c
===================================================================
--- grass/trunk/imagery/i.landsat.acca/algorithm.c	2010-11-08 22:53:16 UTC (rev 44265)
+++ grass/trunk/imagery/i.landsat.acca/algorithm.c	2010-11-08 22:56:04 UTC (rev 44266)
@@ -226,7 +226,7 @@
 	G_fatal_error(_("Unable to create raster map <%s>"), out->name);
 
     /* ----- ----- */
-    G_message(_("Processing first pass..."));
+    G_important_message(_("Processing first pass..."));
 
     stats[SUM_COLD] = 0.;
     stats[SUM_WARM] = 0.;
@@ -380,9 +380,9 @@
 	G_fatal_error(_("Unable to create raster map <%s>"), tmp.name);
 
     if (upper == 0.)
-	G_message(_("Removing ambiguous pixels..."));
+	G_important_message(_("Removing ambiguous pixels..."));
     else
-	G_message(_("Pass two processing..."));
+	G_important_message(_("Pass two processing..."));
 
     nrows = Rast_window_rows();
     ncols = Rast_window_cols();

Modified: grass/trunk/imagery/i.landsat.acca/tools.c
===================================================================
--- grass/trunk/imagery/i.landsat.acca/tools.c	2010-11-08 22:53:16 UTC (rev 44265)
+++ grass/trunk/imagery/i.landsat.acca/tools.c	2010-11-08 22:56:04 UTC (rev 44266)
@@ -135,7 +135,7 @@
     if ((tmp.fd = Rast_open_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
@@ -143,6 +143,7 @@
      */
 
     for (row = 0; row < nrows; row++) {
+      	G_percent(row, nrows, 2);
 	/* Read row values */
 	if (row != 0) {
 	    Rast_get_c_row(out->fd, arast, row - 1);
@@ -276,9 +277,9 @@
 	    }
 	}
 	Rast_put_row(tmp.fd, tmp.rast, CELL_TYPE);
-	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