[GRASS-SVN] r32046 - grass-addons/gipe/i.eb.h_SEBAL95

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 8 07:45:28 EDT 2008


Author: ychemin
Date: 2008-07-08 07:45:28 -0400 (Tue, 08 Jul 2008)
New Revision: 32046

Modified:
   grass-addons/gipe/i.eb.h_SEBAL95/main.c
Log:
Debugging -c flag input atoi() instead of atof()

Modified: grass-addons/gipe/i.eb.h_SEBAL95/main.c
===================================================================
--- grass-addons/gipe/i.eb.h_SEBAL95/main.c	2008-07-08 11:40:39 UTC (rev 32045)
+++ grass-addons/gipe/i.eb.h_SEBAL95/main.c	2008-07-08 11:45:28 UTC (rev 32046)
@@ -194,15 +194,19 @@
 	}
 	if(input_row_wet->answer&&input_row_dry&&
 	input_col_wet->answer&&input_col_dry){
-		row_wet = atoi(input_row_wet->answer);
-		col_wet = atoi(input_col_wet->answer);
-		row_dry = atoi(input_row_dry->answer);
-		col_dry = atoi(input_col_dry->answer);
 		if(flag3->answer){
+			row_wet = atof(input_row_wet->answer);
+			col_wet = atof(input_col_wet->answer);
+			row_dry = atof(input_row_dry->answer);
+			col_dry = atof(input_col_dry->answer);
 			G_message("Manual wet/dry pixels in image coordinates");
 			G_message("Wet Pixel=> x:%i y:%i",col_wet,row_wet);
 			G_message("Dry Pixel=> x:%i y:%i",col_dry,row_dry);
 		} else {
+			row_wet = atoi(input_row_wet->answer);
+			col_wet = atoi(input_col_wet->answer);
+			row_dry = atoi(input_row_dry->answer);
+			col_dry = atoi(input_col_dry->answer);
 			G_message("Wet Pixel=> row:%i col:%i",row_wet,col_wet);
 			G_message("Dry Pixel=> row:%i col:%i",row_dry,col_dry);
 		}



More information about the grass-commit mailing list