[GRASS-SVN] r42937 - grass/branches/develbranch_6/raster/r.sun2
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 29 06:38:39 EDT 2010
Author: hamish
Date: 2010-07-29 10:38:39 +0000 (Thu, 29 Jul 2010)
New Revision: 42937
Modified:
grass/branches/develbranch_6/raster/r.sun2/rsunlib.c
Log:
please comment random coeffs
Modified: grass/branches/develbranch_6/raster/r.sun2/rsunlib.c
===================================================================
--- grass/branches/develbranch_6/raster/r.sun2/rsunlib.c 2010-07-29 10:33:33 UTC (rev 42936)
+++ grass/branches/develbranch_6/raster/r.sun2/rsunlib.c 2010-07-29 10:38:39 UTC (rev 42937)
@@ -462,7 +462,7 @@
locSolarAltitude = sunVarGeom->solarAltitude;
-
+/* FIXME: please document all coefficients */
elevationCorr = exp(-sunVarGeom->z_orig / 8434.5);
temp1 = 0.1594 + locSolarAltitude * (1.123 + 0.065656 * locSolarAltitude);
temp2 = 1. + locSolarAltitude * (28.9344 + 277.3971 * locSolarAltitude);
@@ -508,7 +508,7 @@
locSolarAltitude = sunVarGeom->solarAltitude;
-
+/* FIXME: please document all coefficients */
p = exp(-sunVarGeom->z_orig / 8434.5);
temp1 = 0.1594 + locSolarAltitude * (1.123 + 0.065656 * locSolarAltitude);
temp2 = 1. + locSolarAltitude * (28.9344 + 277.3971 * locSolarAltitude);
@@ -561,6 +561,7 @@
cosslope = cos(sunSlopeGeom->slope);
sinslope = sin(sunSlopeGeom->slope);
+/* FIXME: please document all coefficients */
tn = -0.015843 + locLinke * (0.030543 + 0.0003797 * locLinke);
A1b = 0.26463 + locLinke * (-0.061581 + 0.0031408 * locLinke);
if (A1b * tn < 0.0022)
@@ -633,7 +634,7 @@
cosslope = cos(sunSlopeGeom->slope);
sinslope = sin(sunSlopeGeom->slope);
-
+/* FIXME: please document all coefficients */
tn = -0.015843 + locLinke * (0.030543 + 0.0003797 * locLinke);
A1b = 0.26463 + locLinke * (-0.061581 + 0.0031408 * locLinke);
More information about the grass-commit
mailing list