Define a function and insert its declaration on file index.h in r.li.daemon
folder, which contains all index declarations. This function must be of this kind:
int index(int fd, char ** par, area_des ad, double * result)
Create a main for command line arguments parsing, and call the function
int calculateIndex(char * file, int f(int, char** area_des, double *), char **parameters, char *raster, char *output);
from the r.li library, for starting raster analysis.
It follows the meaning of parameters:
Using GRASS library function to access raster rows can slow down moving windows execution. It is recommended to use
RLI_get_cell_row(int, int, area_des)
RLI_get_fcell_row(int, int, area_des)
RLI_get_dcell_row(int, int, area_des)
to use an ad hoc build memory management developed to speed up the system. The documentation is in doxygen files.
old r.le manual
r.li - package overview
McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern analysis program for quantifying landscape structure. USDA For. Serv. Gen. Tech. Rep. PNW-351. (PDF)
Claudio Porta and Lucio Davide Spano, students of Computer Science University of Pisa (Italy).
Commission from Faunalia Pontedera (PI)
Rewritten from "r.le.setup" by William L. Baker
Various bug fixes by Markus Metz
This program is free software under the GPL (>=v2) Read the COPYING file that comes with GRASS for details.
Last changed: $Date: 2014-08-17 20:39:21 +0200 (Sun, 17 Aug 2014) $
Main index - Raster index - Full index
|GRASS 6.4.5||R.LI.DAEMON (1)|