Procházet zdrojové kódy

r.li: header standardization; example fix

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59300 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler před 11 roky
rodič
revize
ff8ce5ba3c

+ 1 - 1
raster/r.li/r.li.cwed/r.li.cwed.html

@@ -42,7 +42,7 @@ To calculate the contrast weighted edge density index on map <em>my_map</em>, us
 <em>my_conf</em> configuration file (previously defined with
 <em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run:
 <div class="code"><pre>
-r.li.cwed input=my_map conf=my_conf path=my_file output=my_out \
+r.li.cwed map=my_map conf=my_conf output=my_out \
           path=/path/to/weights.csv
 </pre></div>
 

+ 13 - 8
raster/r.li/r.li.mpa/mpa.c

@@ -1,14 +1,19 @@
-
-/*
- * \brief calculates mean pixel attribute index
+/****************************************************************************
+ *
+ * MODULE:       r.li.mpa
+ * AUTHOR(S):    Serena Pallecchi (original contributor)
+ *                student of Computer Science University of Pisa (Italy)
+ *               Commission from Faunalia Pontedera (PI) www.faunalia.it
+ *               Rewrite: Markus Metz
  *
- *  \AUTHOR: Serena Pallecchi student of Computer Science University of Pisa (Italy)
- *                      Commission from Faunalia Pontedera (PI) www.faunalia.it
+ * PURPOSE:      calculates mean pixel attribute index
+ * COPYRIGHT:    (C) 2007-2014 by the GRASS Development Team
  *
- *   This program is free software under the GPL (>=v2)
- *   Read the COPYING file that comes with GRASS for details.
+ *               This program is free software under the GNU General Public
+ *               License (>=v2). Read the file COPYING that comes with GRASS
+ *               for details.
  *
- */
+ *****************************************************************************/
 
 #include <grass/gis.h>
 #include <grass/raster.h>

+ 1 - 1
raster/r.li/r.li.padsd/padsd.c

@@ -191,7 +191,7 @@ int calculate(int fd, struct area_entry *ad, double *result)
 	    if (read(mask_fd, mask_buf, (ad->cl * sizeof(int))) < 0)
 		return 0;
 	}
-	
+
 	ltmp = pid_sup;
 	pid_sup = pid_corr;
 	pid_corr = ltmp;

+ 0 - 3
raster/r.li/r.li.patchnum/main.c

@@ -1,4 +1,3 @@
-
 /****************************************************************************
  *
  * MODULE:       r.li.patchnum
@@ -53,7 +52,6 @@ int main(int argc, char *argv[])
     G_add_keyword(_("patch index"));
 
     /* define options */
-
     raster = G_define_standard_option(G_OPT_R_INPUT);
 
     conf = G_define_standard_option(G_OPT_F_INPUT);
@@ -70,7 +68,6 @@ int main(int argc, char *argv[])
 			  output->answer);
 }
 
-
 int patch_number(int fd, char **par, struct area_entry *ad, double *result)
 {
     int ris = RLI_OK;

+ 1 - 1
raster/r.li/r.li.renyi/renyi.c

@@ -3,7 +3,7 @@
  *
  * MODULE:	r.li.renyi
  *
- * PURPOSE:	brief calculates renyi's diversity index
+ * PURPOSE:	calculates renyi's diversity index
  *
  * AUTHOR(S):	Luca Delucchi, Fondazione Edmund Mach         
  *		Serena Pallecchi student of Computer Science University of Pisa (Italy)

+ 12 - 8
raster/r.li/r.li.richness/richness.c

@@ -1,14 +1,18 @@
-
-/*
- * \brief calculates richness diversity index
+/****************************************************************************
+ *
+ * MODULE:	r.li.ritchness
  *
- *  \AUTHOR: Serena Pallecchi student of Computer Science University of Pisa (Italy)
- *                      Commission from Faunalia Pontedera (PI) www.faunalia.it
+ * PURPOSE:	calculates richness diversity index
  *
- *   This program is free software under the GPL (>=v2)
- *   Read the COPYING file that comes with GRASS for details.
+ * AUTHOR(S):	Serena Pallecchi student of Computer Science University of Pisa (Italy)
+ *              Commission from Faunalia Pontedera (PI) www.faunalia.it
+ *              Rewrite: Markus Metz
+ *            	
+ * COPYRIGHT:
+ *		This program is free software under the GPL (>=v2)
+ *		Read the COPYING file that comes with GRASS for details.
  *
- */
+ ***************************************************************************/
 
 #include <stdlib.h>
 #include <fcntl.h>

+ 4 - 3
raster/r.li/r.li.shape/main.c

@@ -6,9 +6,10 @@
  *                students of Computer Science University of Pisa (Italy)
  *               Commission from Faunalia Pontedera (PI) www.faunalia.it
  *               Fixes: Markus Neteler <neteler itc.it>
- *               
- * PURPOSE:      calculates shape index
- * COPYRIGHT:    (C) 2006-2007 by the GRASS Development Team
+ *               Rewrite: Markus Metz
+ *
+ * PURPOSE:      calculates patch number index
+ * COPYRIGHT:    (C) 2007-2014 by the GRASS Development Team
  *
  *               This program is free software under the GNU General Public
  *               License (>=v2). Read the file COPYING that comes with GRASS