[GRASS-SVN] r68735 - grass-addons/grass7/raster/r.forestfrag

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 22 12:23:49 PDT 2016


Author: wenzeslaus
Date: 2016-06-22 12:23:49 -0700 (Wed, 22 Jun 2016)
New Revision: 68735

Modified:
   grass-addons/grass7/raster/r.forestfrag/r.forestfrag.py
Log:
r.forestfrag: finish accidentally committed r68734

Now: uses raster_history, doesn't repeat
what is in category file, no units are
stored for categorical map.


Modified: grass-addons/grass7/raster/r.forestfrag/r.forestfrag.py
===================================================================
--- grass-addons/grass7/raster/r.forestfrag/r.forestfrag.py	2016-06-22 19:13:16 UTC (rev 68734)
+++ grass-addons/grass7/raster/r.forestfrag/r.forestfrag.py	2016-06-22 19:23:49 UTC (rev 68735)
@@ -309,27 +309,14 @@
     os.close(fd5)
     os.remove(tmpcol)
 
-    # Function call
-    if flag_r:rflag="\n\t-r"
-    else: rflag=""
-    if flag_t: tflag="\n\t-t"
-    else: tflag=""
-    if flag_s: sflag="\n\t-s"
-    else: sflag=""
-    if flag_a: aflag="\n\t-a"
-    else: aflag=""
-    desctxt = "r.forestfrag \n\tinput=" + ipl + "\n\toutput=" + opl + \
-            "\n\twindow=" + str(wz) + rflag + tflag + sflag + aflag
-
     # Write metadata for main layer
     grass.run_command("r.support", map=opl,
                       title="Forest fragmentation",
                       source1="Based on %s" % ipl,
                       source2="",  # to remove what r.recode creates
                       description="Forest fragmentation index (6 classes)")
-
     grass.raster_history(opl)
-    
+
     # Write metadata for intermediate layers
     if flag_t:
         # pf layer



More information about the grass-commit mailing list