Skip to content
Permalink
Browse files

fix saga split rgb bands

  • Loading branch information
Giovanni Manghi
Giovanni Manghi committed May 14, 2015
1 parent aaabad2 commit 5729227ca063d20f3f4463092a79596f507c9ee6
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/algs/saga/SplitRGBBands.py
@@ -71,10 +71,10 @@ def processAlgorithm(self, progress):
b = self.getOutputValue(SplitRGBBands.B)
commands = []
version = SagaUtils.getSagaInstalledVersion(True)
trailing = "000" if version != "2.1.4" else ""
lib = "" if isWindows() else "lib"
trailing = ""
lib = ""
commands.append('%sio_gdal 0 -GRIDS "%s" -FILES "%s"' % (lib, temp, input)
+ '"')
)
commands.append('%sio_gdal 1 -GRIDS "%s_%s1.sgrd" -FORMAT 1 -TYPE 0 -FILE "%s"' %(lib, temp, trailing, r)
)
commands.append('%sio_gdal 1 -GRIDS "%s_%s2.sgrd" -FORMAT 1 -TYPE 0 -FILE "%s"' %(lib, temp, trailing, g)

0 comments on commit 5729227

Please sign in to comment.
You can’t perform that action at this time.