Skip to content
Browse files

Fix some algorithms

  • Loading branch information
Médéric Ribreux Médéric RIBREUX
Médéric Ribreux authored and Médéric RIBREUX committed May 6, 2016
1 parent 2aab324 commit ed97ca5628a758da97899edd968bc00bb5cc7cb2
@@ -6,7 +6,7 @@ ParameterBoolean|-a|Input from ETM+ image taken after July 1, 2000|False
ParameterBoolean|-b|Input from ETM+ image taken before July 1, 2000|False
ParameterRaster|elevation|Input altitude raster map in m (optional)|True
ParameterRaster|visibility|Input visibility raster map in km (optional)|True
ParameterFile|parameters|Name of input text file|False
ParameterFile|parameters|Name of input text file|False|False
ParameterRange|range|Input imagery range [0,255]|0,255
ParameterBoolean|-o|Try to increase computation speed when altitude and/or visibility map is used|True
OutputRaster|output|Atmospheric correction
@@ -25,11 +25,15 @@

__revision__ = '$Format:%H$'

from i import regroupRasters, file2Output, moveFile
from i import regroupRasters, file2Output, moveFile, verifyRasterNum
from os import path
from ..Grass7Utils import Grass7Utils

def checkParameterValuesBeforeExecuting(alg):
return verifyRasterNum(alg, 'input', 2)

def processCommand(alg):
# We need to extract the basename of the signature file
signatureFile = alg.getOutputFromName('signaturefile')

0 comments on commit ed97ca5

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