[GRASS-SVN] r52209 - grass/trunk/scripts/i.landsat.rgb
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 25 16:09:38 PDT 2012
Author: hamish
Date: 2012-06-25 16:09:37 -0700 (Mon, 25 Jun 2012)
New Revision: 52209
Modified:
grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py
Log:
allow user to force serial execution mode
Modified: grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py
===================================================================
--- grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py 2012-06-25 21:50:13 UTC (rev 52208)
+++ grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py 2012-06-25 23:09:37 UTC (rev 52209)
@@ -58,6 +58,10 @@
#% key: r
#% description: Reset to standard color range
#%end
+#%flag
+#% key: s
+#% description: Process bands serially (default: run in parallel)
+#%end
import sys
import os
@@ -117,6 +121,9 @@
preserve = flags['p']
reset = flags['r']
+ if flags['s']:
+ do_mp = False
+
# 90 or 98? MAX value controls brightness
# think of percent (0-100), must be positive or 0
# must be more than "2" ?
@@ -135,7 +142,7 @@
if not preserve:
if do_mp:
grass.message(_("Processing ..."))
- # set up jobs and launch jobs
+ # set up jobs and launch them
proc = {}
conn = {}
for i in [red, green, blue]:
More information about the grass-commit
mailing list