Skip to content

Commit 6b8f943

Browse files
Médéric RibreuxMédéric RIBREUX
Médéric Ribreux
authored and
Médéric RIBREUX
committed
Fix i.atcor algorithm
1 parent b40d2ff commit 6b8f943

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

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

+7-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ i.atcorr
22
Performs atmospheric correction using the 6S algorithm.
33
Imagery (i.*)
44
ParameterRaster|input|Name of input raster map|False
5-
ParameterBoolean|-a|Input from ETM+ image taken after July 1, 2000|False
6-
ParameterBoolean|-b|Input from ETM+ image taken before July 1, 2000|False
5+
ParameterRange|range|Input imagery range [0,255]|0,255|True
76
ParameterRaster|elevation|Input altitude raster map in m (optional)|True
87
ParameterRaster|visibility|Input visibility raster map in km (optional)|True
98
ParameterFile|parameters|Name of input text file|False|False
10-
ParameterRange|range|Input imagery range [0,255]|0,255
11-
ParameterBoolean|-o|Try to increase computation speed when altitude and/or visibility map is used|True
9+
ParameterRange|rescale|Rescale output raster map [0,255]|0,255|True
1210
OutputRaster|output|Atmospheric correction
13-
ParameterBoolean|-f|Output raster is floating point|False
14-
ParameterRange|rescale|Rescale output raster map [0,255]|0,255
11+
*ParameterBoolean|-i|Output raster map as integer|False
12+
*ParameterBoolean|-r|Input raster map converted to reflectance (default is radiance)|False
13+
*ParameterBoolean|-a|Input from ETM+ image taken after July 1, 2000|False
14+
*ParameterBoolean|-b|Input from ETM+ image taken before July 1, 2000|False
15+
1516

python/plugins/processing/tests/testdata/grass7_algorithm_tests.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -599,3 +599,21 @@ tests:
599599
output:
600600
hash: f564acd642f6f0ea76cbe55d3565d083e055d2e81dde97365f786bad
601601
type: rasterhash
602+
603+
- algorithm: grass7:i.atcorr
604+
name: GRASS7 i.atcorr
605+
params:
606+
GRASS_REGION_PARAMETER: '344500.0,358400.0,6682800.0,6693700.0'
607+
input:
608+
name: custom/grass7/raster_6class.tif
609+
type: raster
610+
visibility:
611+
name: custom/grass7/raster_5class.tif
612+
type: raster
613+
parameters:
614+
type: file
615+
name: /home/medspx/projects/QGIS/python/plugins/processing/tests/testdata/custom/grass7/i.atcorr.txt
616+
results:
617+
output:
618+
hash: fc3dbc04793ecba0a24400d489f3ebd0660400232602487e6861306c
619+
type: rasterhash

0 commit comments

Comments
 (0)