[GRASS-SVN] r58991 - grass/branches/develbranch_6/raster/r.li/r.li.simpson
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 11 06:03:41 PST 2014
Author: neteler
Date: 2014-02-11 06:03:40 -0800 (Tue, 11 Feb 2014)
New Revision: 58991
Modified:
grass/branches/develbranch_6/raster/r.li/r.li.simpson/simpson.c
Log:
r.li.simpson: trivial white space
Modified: grass/branches/develbranch_6/raster/r.li/r.li.simpson/simpson.c
===================================================================
--- grass/branches/develbranch_6/raster/r.li/r.li.simpson/simpson.c 2014-02-11 14:03:26 UTC (rev 58990)
+++ grass/branches/develbranch_6/raster/r.li/r.li.simpson/simpson.c 2014-02-11 14:03:40 UTC (rev 58991)
@@ -62,15 +62,10 @@
int simpson(int fd, char **par, struct area_entry *ad, double *result)
{
char *mapset;
-
int ris = RLI_OK;
-
double indice = 0;
-
struct Cell_head hd;
-
-
mapset = G_find_cell(ad->raster, "");
if (G_get_cellhd(ad->raster, mapset, &hd) == -1)
return RLI_ERRORE;
@@ -134,12 +129,10 @@
double t;
avl_tree albero = NULL;
-
AVL_table *array;
generic_cell uc;
-
uc.t = CELL_TYPE;
/* open mask if needed */
@@ -276,7 +269,7 @@
return RLI_ERRORE;
}
- /* claculate index summary */
+ /* calculate index summary */
for (i = 0; i < m; i++) {
t = (double)(array[i]->tot);
p = t / area;
@@ -488,7 +481,6 @@
}
-
double calculateF(struct area_entry *ad, int fd, double *result)
{
FCELL *buf;
@@ -545,7 +537,6 @@
buf = RLI_get_fcell_raster_row(fd, j + ad->y, ad);
-
for (i = 0; i < ad->cl; i++) { /* for each fcell in the row */
area++;
@@ -605,7 +596,6 @@
precCell = corrCell;
}
-
}
}
More information about the grass-commit
mailing list