[GRASS-SVN] r34589 - in grass/branches/develbranch_6/raster:
r.watershed/seg r.watershed2/seg
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 28 02:04:41 EST 2008
Author: hamish
Date: 2008-11-28 02:04:40 -0500 (Fri, 28 Nov 2008)
New Revision: 34589
Modified:
grass/branches/develbranch_6/raster/r.watershed/seg/Gwater.h
grass/branches/develbranch_6/raster/r.watershed2/seg/Gwater.h
Log:
more precise constants
Modified: grass/branches/develbranch_6/raster/r.watershed/seg/Gwater.h
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed/seg/Gwater.h 2008-11-28 07:02:30 UTC (rev 34588)
+++ grass/branches/develbranch_6/raster/r.watershed/seg/Gwater.h 2008-11-28 07:04:40 UTC (rev 34589)
@@ -16,8 +16,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 SROW 9
Modified: grass/branches/develbranch_6/raster/r.watershed2/seg/Gwater.h
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed2/seg/Gwater.h 2008-11-28 07:02:30 UTC (rev 34588)
+++ grass/branches/develbranch_6/raster/r.watershed2/seg/Gwater.h 2008-11-28 07:04:40 UTC (rev 34589)
@@ -16,8 +16,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 10485760
#define PAGE_BLOCK 1024
#define SROW 200
More information about the grass-commit
mailing list