[GRASS-SVN] r32949 - grass-addons/gipe/i.eb.deltat

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 20 19:22:21 EDT 2008


Author: ychemin
Date: 2008-08-20 19:22:21 -0400 (Wed, 20 Aug 2008)
New Revision: 32949

Modified:
   grass-addons/gipe/i.eb.deltat/delta_t.c
   grass-addons/gipe/i.eb.deltat/main.c
Log:
Code cleaning + standardization

Modified: grass-addons/gipe/i.eb.deltat/delta_t.c
===================================================================
--- grass-addons/gipe/i.eb.deltat/delta_t.c	2008-08-20 23:21:10 UTC (rev 32948)
+++ grass-addons/gipe/i.eb.deltat/delta_t.c	2008-08-20 23:22:21 UTC (rev 32949)
@@ -1,9 +1,10 @@
 #include<stdio.h>
 #include<stdlib.h>
 
-// Difference of temperature between surface skin and about 2m
-// Initialization parameter of sensible heat flux iteration in SEBAL
-// Found in Pawan (2004)
+/* Difference of temperature between surface skin and about 2m
+ * Initialization parameter of sensible heat flux iteration in SEBAL
+ * Found in Pawan (2004)
+ */
 
 double delta_t(double tempk)
 {

Modified: grass-addons/gipe/i.eb.deltat/main.c
===================================================================
--- grass-addons/gipe/i.eb.deltat/main.c	2008-08-20 23:21:10 UTC (rev 32948)
+++ grass-addons/gipe/i.eb.deltat/main.c	2008-08-20 23:22:21 UTC (rev 32949)
@@ -1,7 +1,7 @@
 /****************************************************************************
  *
  * MODULE:       i.eb.deltat
- * AUTHOR(S):    Yann Chemin - ychemin at gmail.com
+ * AUTHOR(S):    Yann Chemin - yann.chemin at gmail.com
  * PURPOSE:      Calculates the difference of temperature between 2 heights
  *                as seen in Pawan (2004) 
  *                This is a SEBAL initialization parameter for sensible heat. 
@@ -20,13 +20,12 @@
 #include <grass/gis.h>
 #include <grass/glocale.h>
 
-
 double delta_t(double tempk);
 
 int main(int argc, char *argv[])
 {
-	struct Cell_head cellhd; //region+header info
-	char *mapset; // mapset name
+	struct Cell_head cellhd; /*region+header info*/
+	char *mapset; /* mapset name*/
 	int nrows, ncols;
 	int row,col;
 
@@ -35,13 +34,13 @@
 	struct Option *input1, *output1;
 	
 	struct Flag *flag1, *flag2;	
-	struct History history; //metadata
+	struct History history; /*metadata*/
 	
 	/************************************/
 	/* FMEO Declarations*****************/
-	char *name;   // input raster name
-	char *result1; //output raster name
-	//File Descriptors
+	char *name;   /*input raster name*/
+	char *result1; /*output raster name*/
+	/*File Descriptors*/
 	int infd_tempk;
 	int outfd1;
 	
@@ -108,7 +107,6 @@
 		DCELL d;
 		DCELL d_tempk;
 		G_percent(row,nrows,2);
-//		printf("row = %i/%i\n",row,nrows);
 		/* read soil input maps */	
 		if(G_get_raster_row(infd_tempk,inrast_tempk,row,data_type_tempk)<0)
 			G_fatal_error(_("Could not read from <%s>"),tempk);



More information about the grass-commit mailing list