Bläddra i källkod

message cosmetics

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45406 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 år sedan
förälder
incheckning
a131e4d78d
2 ändrade filer med 11 tillägg och 9 borttagningar
  1. 7 6
      vector/v.kernel/main.c
  2. 4 3
      vector/v.kernel/v.kernel.html

+ 7 - 6
vector/v.kernel/main.c

@@ -4,11 +4,12 @@
 * MODULE:       v.kernel
 *
 * AUTHOR(S):    Stefano Menegon, ITC-irst, Trento, Italy
+*               Radim Blazek (additional kernel functions, network part)
 * PURPOSE:      Generates a raster density map from vector points data using 
-*               a moving 2D isotropic Gaussian kernel or
+*               a moving kernel function or
 *               optionally generates a vector density map on vector network 
 *               with a 1D kernel
-* COPYRIGHT:    (C) 20011 by the GRASS Development Team
+* COPYRIGHT:    (C) 2004-2011 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
@@ -239,7 +240,7 @@ int main(int argc, char **argv)
 	    }
 	}
 	else if (kernel_function != KERNEL_GAUSSIAN) {
-	    G_fatal_error(_("Optimal standard deviation calculation is supported only for and kernel function 'gaussian'."));
+	    G_fatal_error(_("Optimal standard deviation calculation is supported only for kernel function 'gaussian'."));
 	}
     }
 
@@ -318,8 +319,8 @@ int main(int argc, char **argv)
     /* valutazione distanza ottimale */
     if (flag_o->answer) {
 	/* Note: sigmaOptimal calculates using ALL points (also those outside the region) */
-	G_message(_("Automatic choose of smoothing parameter (standard deviation), maximum possible "
-		   "value of standard deviation is was set to %f"), sigma);
+	G_message(_("Automatic choice of smoothing parameter (standard deviation), maximum possible "
+		   "value of standard deviation is set to %f"), sigma);
 
 	/* maximum distance 4*sigma (3.9*sigma ~ 1.0000), keep it small, otherwise it takes 
 	 * too much points and calculation on network becomes slow */
@@ -522,7 +523,7 @@ int main(int argc, char **argv)
 	Rast_close(fdout);
     }
 
-    G_message(_("Maximum value in output: %e."), gausmax);
+    G_message(_("Maximum value in output: %e."), multip * gausmax);
 
     Vect_close(&In);
 

+ 4 - 3
vector/v.kernel/v.kernel.html

@@ -7,9 +7,10 @@ default is <em>gaussian</em>.
 <p>
 The module can also generate a vector density map on a vector network. 
 Conventional kernel functions produce biased estimates by overestimating 
-the densities around network nodes, whereas the equal split kernel 
-function of Okabe et al. (2009) produces unbiased density estimates. 
-The equal split kernel function can be enabled with <em>node=split</em>.
+the densities around network nodes, whereas the equal split method of 
+Okabe et al. (2009) produces unbiased density estimates. The equal split 
+method uses the kernel function selected with the <em>kernel</em> option 
+and can be enabled with <em>node=split</em>.
 
 <H2>NOTES</H2>