[GRASS-SVN] r61531 - grass-addons/grass7/raster/r.bioclim
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 5 08:10:58 PDT 2014
Author: neteler
Date: 2014-08-05 08:10:58 -0700 (Tue, 05 Aug 2014)
New Revision: 61531
Modified:
grass-addons/grass7/raster/r.bioclim/r.bioclim.py
Log:
r.bioclim: attempt to fix BIO04 scaling
Modified: grass-addons/grass7/raster/r.bioclim/r.bioclim.py
===================================================================
--- grass-addons/grass7/raster/r.bioclim/r.bioclim.py 2014-08-05 09:24:40 UTC (rev 61530)
+++ grass-addons/grass7/raster/r.bioclim/r.bioclim.py 2014-08-05 15:10:58 UTC (rev 61531)
@@ -211,10 +211,11 @@
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 * $biotmp)",
+ grass.mapcalc("$bio = round(100.0 * $biotmp / $iscale * $oscale)",
bio = outpre + '.bio04',
biotmp = output,
- iscale = tinscale)
+ iscale = tinscale,
+ oscale = toutscale)
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