[GRASS-SVN] r59111 - grass-addons/grass7/imagery/i.histo.match

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 21 08:46:02 PST 2014


Author: neteler
Date: 2014-02-21 08:46:02 -0800 (Fri, 21 Feb 2014)
New Revision: 59111

Modified:
   grass-addons/grass7/imagery/i.histo.match/i.histo.match.py
Log:
i.histo.match: fix use message; cmd history, TODO added

Modified: grass-addons/grass7/imagery/i.histo.match/i.histo.match.py
===================================================================
--- grass-addons/grass7/imagery/i.histo.match/i.histo.match.py	2014-02-21 15:56:58 UTC (rev 59110)
+++ grass-addons/grass7/imagery/i.histo.match/i.histo.match.py	2014-02-21 16:46:02 UTC (rev 59111)
@@ -16,6 +16,7 @@
 #               Public License (>=v2). Read the file COPYING that
 #               comes with GRASS for details.
 #
+# TODO: use "BEGIN TRANSACTION" etc?
 #############################################################################
 #%module
 #% description: Calculate histogram matching of several images.
@@ -203,12 +204,14 @@
             grass.run_command('r.reclass', input= i, out = outname, 
                               rules = outfile.name)
         elif result['fullname'] and not grass.overwrite():
-            grass.warning(_("Raster map %s already exists and it will be not overwrite" % i))
+            grass.warning(_("Raster map %s already exists and will not be overwritten" % i))
         else:
             grass.run_command('r.reclass', input= i, out = outname, 
                               rules = outfile.name)
         # remove the rules file
         grass.try_remove(outfile.name)       
+        # write cmd history:
+        grass.raster_history(outname)
     db.commit()
     db.close()
     



More information about the grass-commit mailing list