[GRASS-SVN] r32950 - grass-addons/gipe/i.eb.disp
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 20 19:24:52 EDT 2008
Author: ychemin
Date: 2008-08-20 19:24:51 -0400 (Wed, 20 Aug 2008)
New Revision: 32950
Modified:
grass-addons/gipe/i.eb.disp/disp.c
grass-addons/gipe/i.eb.disp/main.c
grass-addons/gipe/i.eb.disp/savi2lai.c
Log:
Code cleaning
Modified: grass-addons/gipe/i.eb.disp/disp.c
===================================================================
--- grass-addons/gipe/i.eb.disp/disp.c 2008-08-20 23:22:21 UTC (rev 32949)
+++ grass-addons/gipe/i.eb.disp/disp.c 2008-08-20 23:24:51 UTC (rev 32950)
@@ -2,7 +2,7 @@
#include<stdlib.h>
#include<math.h>
-// Found in Pawan (2004)
+/* Found in Pawan (2004)*/
double dis_p(double lai)
{
Modified: grass-addons/gipe/i.eb.disp/main.c
===================================================================
--- grass-addons/gipe/i.eb.disp/main.c 2008-08-20 23:22:21 UTC (rev 32949)
+++ grass-addons/gipe/i.eb.disp/main.c 2008-08-20 23:24:51 UTC (rev 32950)
@@ -1,7 +1,7 @@
/****************************************************************************
*
* MODULE: i.eb.disp
- * AUTHOR(S): Yann Chemin - ychemin at gmail.com
+ * AUTHOR(S): Yann Chemin - yann.chemin at gmail.com
* PURPOSE: Calculates the displacement height above skin surface
* as seen in Pawan (2004), a flag makes savi2lai instead of
* direct LAI input.
@@ -26,8 +26,8 @@
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 +35,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_lai;
int outfd1;
@@ -106,7 +106,6 @@
DCELL d;
DCELL d_lai;
G_percent(row,nrows,2);
-// printf("row = %i/%i\n",row,nrows);
/* read soil input maps */
if(G_get_raster_row(infd_lai,inrast_lai,row,data_type_lai)<0)
G_fatal_error(_("Could not read from <%s>"),lai);
Modified: grass-addons/gipe/i.eb.disp/savi2lai.c
===================================================================
--- grass-addons/gipe/i.eb.disp/savi2lai.c 2008-08-20 23:22:21 UTC (rev 32949)
+++ grass-addons/gipe/i.eb.disp/savi2lai.c 2008-08-20 23:24:51 UTC (rev 32950)
@@ -2,7 +2,7 @@
#include<stdlib.h>
#include<math.h>
-// Found in Pawan (2004)
+/* Found in Pawan (2004)*/
double savi_lai(double savi)
{
More information about the grass-commit
mailing list