[GRASS-SVN] r68255 - grass/trunk/raster/r.sun
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 12 12:57:43 PDT 2016
Author: neteler
Date: 2016-04-12 12:57:43 -0700 (Tue, 12 Apr 2016)
New Revision: 68255
Modified:
grass/trunk/raster/r.sun/main.c
Log:
r.sun: mode 1 fix for time offset due to timezone, see #2941 for explanations (merge of r68254)
Modified: grass/trunk/raster/r.sun/main.c
===================================================================
--- grass/trunk/raster/r.sun/main.c 2016-04-12 19:54:35 UTC (rev 68254)
+++ grass/trunk/raster/r.sun/main.c 2016-04-12 19:57:43 UTC (rev 68255)
@@ -1766,7 +1766,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