mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix some algorithms
This commit is contained in:
parent
2aab32487a
commit
ed97ca5628
@ -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 @@ __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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user