Fix some algorithms

This commit is contained in:
Médéric Ribreux 2016-05-06 11:59:11 +02:00 committed by Médéric RIBREUX
parent 2aab32487a
commit ed97ca5628
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -25,11 +25,15 @@ __copyright__ = '(C) 2016, Médéric Ribreux'
__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')