Skip to content

Commit

Permalink
fix saga split rgb bands
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Manghi committed May 14, 2015
1 parent aaabad2 commit 5729227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/saga/SplitRGBBands.py
Expand Up @@ -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)
Expand Down

0 comments on commit 5729227

Please sign in to comment.