[GRASS-SVN] r34587 - grass/trunk/raster/r.watershed/ram
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 28 02:00:34 EST 2008
Author: hamish
Date: 2008-11-28 02:00:34 -0500 (Fri, 28 Nov 2008)
New Revision: 34587
Modified:
grass/trunk/raster/r.watershed/ram/Gwater.h
Log:
more precise constants; merge from r.watershed1 in devbr6
Modified: grass/trunk/raster/r.watershed/ram/Gwater.h
===================================================================
--- grass/trunk/raster/r.watershed/ram/Gwater.h 2008-11-28 06:58:12 UTC (rev 34586)
+++ grass/trunk/raster/r.watershed/ram/Gwater.h 2008-11-28 07:00:34 UTC (rev 34587)
@@ -21,8 +21,8 @@
#define NOMASK 1
#define MIN_SLOPE .00001
#define MIN_GRADIENT_DEGREES 1
-#define DEG_TO_RAD .017453293 /* pi / 180 */
-#define METER_TO_FOOT 3.281
+#define DEG_TO_RAD ((2 * M_PI) / 360.)
+#define METER_TO_FOOT (1 / 0.3048)
#define MAX_BYTES 2000000
#define PAGE_BLOCK 512
#define RITE 1
More information about the grass-commit
mailing list