[GRASS-SVN] r73124 - grass-addons/grass7/imagery/i.histo.match
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 20 05:26:30 PDT 2018
Author: neteler
Date: 2018-08-20 05:26:30 -0700 (Mon, 20 Aug 2018)
New Revision: 73124
Modified:
grass-addons/grass7/imagery/i.histo.match/i.histo.match.py
Log:
i.histo.match addon: message cosmetics
Modified: grass-addons/grass7/imagery/i.histo.match/i.histo.match.py
===================================================================
--- grass-addons/grass7/imagery/i.histo.match/i.histo.match.py 2018-08-20 04:41:47 UTC (rev 73123)
+++ grass-addons/grass7/imagery/i.histo.match/i.histo.match.py 2018-08-20 12:26:30 UTC (rev 73124)
@@ -24,7 +24,7 @@
#% keyword: histogram matching
#%end
#%option G_OPT_R_INPUTS
-#% description: Name of raster maps to analize
+#% description: Name of raster maps to be analyzed
#% required: yes
#%end
#%option
@@ -93,6 +93,7 @@
# connect to the db
db = sqlite3.connect(dbpath)
curs = db.cursor()
+ grass.message(_("Calculating Cumulative Distribution Functions ..."))
# for each image
for i in images:
iname = i.split('@')[0]
@@ -190,6 +191,7 @@
curs.execute(insert)
db.commit()
# for each image
+ grass.message(_("Reclassifying bands based on average histogram..."))
for i in images:
iname = i.split('@')[0]
grass.use_temp_region()
@@ -233,6 +235,7 @@
db.close()
if mosaic:
grass.use_temp_region()
+ grass.message(_("Processing mosaic <%s>..." % mosaic)
grass.run_command('g.region', raster=all_images)
grass.run_command('r.patch', input=output_names, output=mosaic)
More information about the grass-commit
mailing list