[GRASS-SVN] r61559 - grass-addons/grass7/raster/r.bioclim

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 7 00:16:30 PDT 2014


Author: mmetz
Date: 2014-08-07 00:16:30 -0700 (Thu, 07 Aug 2014)
New Revision: 61559

Modified:
   grass-addons/grass7/raster/r.bioclim/r.bioclim.py
Log:
r.bioclim: fix BIO04

Modified: grass-addons/grass7/raster/r.bioclim/r.bioclim.py
===================================================================
--- grass-addons/grass7/raster/r.bioclim/r.bioclim.py	2014-08-06 22:55:28 UTC (rev 61558)
+++ grass-addons/grass7/raster/r.bioclim/r.bioclim.py	2014-08-07 07:16:30 UTC (rev 61559)
@@ -211,11 +211,10 @@
     grass.message(_("BIO4 = Temperature Seasonality ..."))
     output = outpre + '.bio04.' + str(pid)
     grass.run_command('r.series', input = tavg, output = output, method = 'stddev')
-    grass.mapcalc("$bio = round(100.0 * $biotmp / $iscale * $oscale)",
+    grass.mapcalc("$bio = round(100.0 * $biotmp / $iscale)",
                   bio = outpre + '.bio04',
                   biotmp = output,
-                  iscale = tinscale,
-                  oscale = toutscale)
+                  iscale = tinscale)
     grass.run_command('r.support', map = outpre + '.bio04',
                       description = 'BIOCLIM04: Generated by r.bioclim')
     grass.run_command('r.support', map = outpre + '.bio04',history = os.environ['CMDLINE'])



More information about the grass-commit mailing list