瀏覽代碼

allow user to force serial execution mode

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52209 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 13 年之前
父節點
當前提交
c23104a795
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      scripts/i.landsat.rgb/i.landsat.rgb.py

+ 8 - 1
scripts/i.landsat.rgb/i.landsat.rgb.py

@@ -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 @@ def main():
     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 @@ def main():
     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]: