[GRASS-SVN] r58854 - grass/branches/develbranch_6/raster/r.li/r.li.daemon
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 3 08:39:01 PST 2014
Author: neteler
Date: 2014-02-03 08:39:01 -0800 (Mon, 03 Feb 2014)
New Revision: 58854
Modified:
grass/branches/develbranch_6/raster/r.li/r.li.daemon/daemon.c
grass/branches/develbranch_6/raster/r.li/r.li.daemon/description.html
Log:
r.li.daemon: compilation fix (needed due to r56730); HTML cosmetics
Modified: grass/branches/develbranch_6/raster/r.li/r.li.daemon/daemon.c
===================================================================
--- grass/branches/develbranch_6/raster/r.li/r.li.daemon/daemon.c 2014-02-03 16:37:07 UTC (rev 58853)
+++ grass/branches/develbranch_6/raster/r.li/r.li.daemon/daemon.c 2014-02-03 16:39:01 UTC (rev 58854)
@@ -176,8 +176,7 @@
int j = 0, donePid;
receive(receiveChannel, &doneJob);
- /* perc++; */
- /* G_percent (perc, num_workers, 1); */
+
if (doneJob.type == DONE) {
double result;
@@ -200,7 +199,7 @@
}
else {
/* printf("todo"); fflush(stdout); */
- /* TODO scrivere su raster NULL ??? */
+ /* TODO write to raster NULL ??? */
}
}
j = 0;
@@ -239,7 +238,7 @@
}
else {
/* printf("todo2 "); fflush(stdout); */
- /* TODO scrivere su raster */
+ /* TODO write to raster */
}
}
@@ -260,7 +259,7 @@
G_verbose_message(_("r.li.worker (pid %i) terminated successfully"),
donePid);
perc++;
- G_percent (perc, WORKERS, 1);
+ G_percent (perc, num_workers, 1);
}
/* remove pipe */
if (close(child[j].channel) != 0)
Modified: grass/branches/develbranch_6/raster/r.li/r.li.daemon/description.html
===================================================================
--- grass/branches/develbranch_6/raster/r.li/r.li.daemon/description.html 2014-02-03 16:37:07 UTC (rev 58853)
+++ grass/branches/develbranch_6/raster/r.li/r.li.daemon/description.html 2014-02-03 16:39:01 UTC (rev 58854)
@@ -9,12 +9,10 @@
<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
-
<H2>NAME</H2>
<EM><B>libgrass_rli</B></EM> - r.li landscape index support library
-
<H2>DESCRIPTION</H2>
<EM>r.li.daemon</EM> provides support for landscape index calculations on raster
@@ -59,7 +57,6 @@
</ol>
Compile it using a changed Makefile based on the file for <em>r.li.patchdensity</em>.
-
<H2>NOTES</H2>
Using GRASS library function to access raster rows can slow down moving windows
@@ -84,6 +81,11 @@
<EM><A HREF="r.li.setup.html">r.li.setup</A></EM>
+<h2>REFERENCES</h2>
+McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
+analysis program for quantifying landscape structure. USDA For. Serv.
+Gen. Tech. Rep. PNW-351. (<a href="http://treesearch.fs.fed.us/pubs/3064">PDF</a>)
+
<H2>AUTHORS</H2>
Claudio Porta and Lucio Davide Spano, students of Computer Science
More information about the grass-commit
mailing list