[GRASS-SVN] r68254 - grass/branches/releasebranch_7_0/raster/r.sun
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 12 12:54:35 PDT 2016
Author: neteler
Date: 2016-04-12 12:54:35 -0700 (Tue, 12 Apr 2016)
New Revision: 68254
Modified:
grass/branches/releasebranch_7_0/raster/r.sun/main.c
Log:
r.sun: mode 1 fix for time offset due to timezone, see #2941 for explanations
Modified: grass/branches/releasebranch_7_0/raster/r.sun/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.sun/main.c 2016-04-12 19:46:35 UTC (rev 68253)
+++ grass/branches/releasebranch_7_0/raster/r.sun/main.c 2016-04-12 19:54:35 UTC (rev 68254)
@@ -1749,7 +1749,7 @@
* "local clock time". */
dayRad = 2. * M_PI * day / 365.25;
locTimeOffset =
- -0.128 * sin(dayRad - 0.04887) - 0.165 * sin(2 * dayRad +
+ +0.128 * sin(dayRad - 0.04887) + 0.165 * sin(2 * dayRad +
0.34383);
/* Time offset due to timezone as input by user */
More information about the grass-commit
mailing list