[GRASS-SVN] r64725 - grass-addons/grass7/raster/r.green/r.green.biomassfor/r.green.biomassfor.legal

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 23 00:49:50 PST 2015


Author: osfraid
Date: 2015-02-23 00:49:50 -0800 (Mon, 23 Feb 2015)
New Revision: 64725

Modified:
   grass-addons/grass7/raster/r.green/r.green.biomassfor/r.green.biomassfor.legal/r.green.biomassfor.legal.py
Log:
fix bug to r.green.biomassfor.legal

Modified: grass-addons/grass7/raster/r.green/r.green.biomassfor/r.green.biomassfor.legal/r.green.biomassfor.legal.py
===================================================================
--- grass-addons/grass7/raster/r.green/r.green.biomassfor/r.green.biomassfor.legal/r.green.biomassfor.legal.py	2015-02-22 12:36:15 UTC (rev 64724)
+++ grass-addons/grass7/raster/r.green/r.green.biomassfor/r.green.biomassfor.legal/r.green.biomassfor.legal.py	2015-02-23 08:49:50 UTC (rev 64725)
@@ -107,7 +107,7 @@
 
     ECOT=l_bioenergy+' = ('+l_bioenergyHF+' + '+l_bioenergyC+')'
 
-    run_command("r.mapcalc", overwrite=ow,expression='yield_pix1 = (yield/'+yield_surface+')*((ewres()*nsres())/10000)')
+    run_command("r.mapcalc", overwrite=ow,expression='yield_pix1 = ('+yield1+'/'+yield_surface+')*((ewres()*nsres())/10000)')
        
     run_command("r.mapcalc", overwrite=ow,
                 expression=ECOHF % tuple(map(float, (opts['energy_tops_hf'],



More information about the grass-commit mailing list