[GRASS-SVN] r46529 - grass/branches/develbranch_6/imagery/i.atcorr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 3 02:51:59 EDT 2011


Author: mmetz
Date: 2011-06-02 23:51:59 -0700 (Thu, 02 Jun 2011)
New Revision: 46529

Modified:
   grass/branches/develbranch_6/imagery/i.atcorr/common.h
   grass/branches/develbranch_6/imagery/i.atcorr/main.cpp
Log:
code cleanup

Modified: grass/branches/develbranch_6/imagery/i.atcorr/common.h
===================================================================
--- grass/branches/develbranch_6/imagery/i.atcorr/common.h	2011-06-03 06:51:30 UTC (rev 46528)
+++ grass/branches/develbranch_6/imagery/i.atcorr/common.h	2011-06-03 06:51:59 UTC (rev 46529)
@@ -4,7 +4,7 @@
 /* Includes */
 #include <stdio.h>
 #include <stdlib.h>
-#include <iostream> /* ??? */
+#include <iostream>
 #include <fstream>
 #include <string>
 #include <cmath>

Modified: grass/branches/develbranch_6/imagery/i.atcorr/main.cpp
===================================================================
--- grass/branches/develbranch_6/imagery/i.atcorr/main.cpp	2011-06-03 06:51:30 UTC (rev 46528)
+++ grass/branches/develbranch_6/imagery/i.atcorr/main.cpp	2011-06-03 06:51:59 UTC (rev 46529)
@@ -123,7 +123,7 @@
 /* Rounds a floating point cell value */
 static CELL round_c(FCELL x)
 {
-    if(x >= 0.0)
+    if (x >= 0.0)
 	return (CELL)(x + .5);
 
     return (CELL)(-(-x + .5));
@@ -297,7 +297,7 @@
         /* loop over all the values in the row */
 	for(col = 0; col < ncols; col++)
 	{
-	    if((vis && G_is_f_null_value(&vis[col])) || 
+	    if ((vis && G_is_f_null_value(&vis[col])) || 
 	       (alt && G_is_f_null_value(&alt[col])) || 
 	              G_is_f_null_value(&buf[col]))
 	    {
@@ -579,7 +579,7 @@
 
     /**** Start ****/
     G_gisinit(argv[0]);
-    if(G_parser(argc, argv) < 0)
+    if (G_parser(argc, argv) < 0)
 	exit(EXIT_FAILURE);
 
     /* open input raster */



More information about the grass-commit mailing list