Skip to content

Commit ed97ca5

Browse files
Médéric RibreuxMédéric RIBREUX
Médéric Ribreux
authored and
Médéric RIBREUX
committedMay 29, 2016
Fix some algorithms
1 parent 2aab324 commit ed97ca5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎python/plugins/processing/algs/grass7/description/i.atcorr.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ParameterBoolean|-a|Input from ETM+ image taken after July 1, 2000|False
66
ParameterBoolean|-b|Input from ETM+ image taken before July 1, 2000|False
77
ParameterRaster|elevation|Input altitude raster map in m (optional)|True
88
ParameterRaster|visibility|Input visibility raster map in km (optional)|True
9-
ParameterFile|parameters|Name of input text file|False
9+
ParameterFile|parameters|Name of input text file|False|False
1010
ParameterRange|range|Input imagery range [0,255]|0,255
1111
ParameterBoolean|-o|Try to increase computation speed when altitude and/or visibility map is used|True
1212
OutputRaster|output|Atmospheric correction

‎python/plugins/processing/algs/grass7/ext/i_cluster.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@
2525

2626
__revision__ = '$Format:%H$'
2727

28-
from i import regroupRasters, file2Output, moveFile
28+
from i import regroupRasters, file2Output, moveFile, verifyRasterNum
2929
from os import path
3030
from ..Grass7Utils import Grass7Utils
3131

3232

33+
def checkParameterValuesBeforeExecuting(alg):
34+
return verifyRasterNum(alg, 'input', 2)
35+
36+
3337
def processCommand(alg):
3438
# We need to extract the basename of the signature file
3539
signatureFile = alg.getOutputFromName('signaturefile')

0 commit comments

Comments
 (0)
Please sign in to comment.