Skip to content

Commit 0c24fdb

Browse files
committedAug 9, 2018
[processing][grass] Fix r.sun parameter definition, resurrect test
1 parent c50c615 commit 0c24fdb

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed
 

‎python/plugins/processing/algs/grass7/description/r.sun.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ QgsProcessingParameterRasterLayer|coeff_dh|Name of real-sky diffuse radiation co
1616
QgsProcessingParameterRasterLayer|horizon_basemap|The horizon information input map basename|None|True
1717
QgsProcessingParameterNumber|horizon_step|Angle step size for multidirectional horizon [degrees]|QgsProcessingParameterNumber.Double|None|True|0.0|360.0
1818
QgsProcessingParameterNumber|day|No. of day of the year (1-365)|QgsProcessingParameterNumber.Integer|1|False|1|365
19-
*QgsProcessingParameterNumber|step|Time step when computing all-day radiation sums [decimal hours]|QgsProcessingParameterNumber.Double|0.5|True|None|0
19+
*QgsProcessingParameterNumber|step|Time step when computing all-day radiation sums [decimal hours]|QgsProcessingParameterNumber.Double|0.5|True|0
2020
*QgsProcessingParameterNumber|declination|Declination value (overriding the internally computed value) [radians]|QgsProcessingParameterNumber.Double|None|True|None|None
2121
*QgsProcessingParameterNumber|distance_step|Sampling distance step coefficient (0.5-1.5)|QgsProcessingParameterNumber.Double|1.0|True|0.5|1.5
2222
*QgsProcessingParameterNumber|npartitions|Read the input files in this number of chunks|QgsProcessingParameterNumber.Integer|1|True|1|None

‎python/plugins/processing/tests/testdata/grass7_algorithms_raster_tests.yaml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -461,42 +461,42 @@ tests:
461461
hash: 95e064f05759606bc60f1dfa88931f545c066629c1f07919156ac03b
462462
type: rasterhash
463463

464-
# - algorithm: grass7:r.sun
465-
# name: GRASS7 r.sun
466-
# params:
467-
# -m: false
468-
# -p: false
469-
# GRASS_REGION_CELLSIZE_PARAMETER: 0.0
470-
# GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
471-
# aspect:
472-
# name: custom/grass7/float_raster.tif
473-
# type: raster
474-
# day: 1
475-
# declination: 0.0
476-
# distance_step: 1.0
477-
# elevation:
478-
# name: custom/grass7/raster_6class.tif
479-
# type: raster
480-
# slope:
481-
# name: custom/grass7/float_raster.tif
482-
# type: raster
483-
# step: 0.5
484-
# results:
485-
# beam_rad:
486-
# hash: c43a64c35cd5999888b1dc7099249a54f37df8658cbe9c30b92627e5
487-
# type: rasterhash
488-
# diff_rad:
489-
# hash: ecaa83578ab6eaf24a48f2fc265e8f1deff743c145af9c85cd39bceb
490-
# type: rasterhash
491-
# glob_rad:
492-
# hash: 3917bc5633ce2225c864055d4b3c952b87461cbe48093b8fd9738215
493-
# type: rasterhash
494-
# insol_time:
495-
# hash: 64851f59edafe67d007da78f33b7491b949d5be3eca83ef513e2b11f
496-
# type: rasterhash
497-
# refl_rad:
498-
# hash: cd2002486c5117db9c493e365ff6983faf1ea92b1bbea87569d3ebdd
499-
# type: rasterhash
464+
- algorithm: grass7:r.sun
465+
name: GRASS7 r.sun
466+
params:
467+
-m: false
468+
-p: false
469+
GRASS_REGION_CELLSIZE_PARAMETER: 0.0
470+
GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
471+
aspect:
472+
name: custom/grass7/float_raster.tif
473+
type: raster
474+
day: 1
475+
declination: 0.0
476+
distance_step: 1.0
477+
elevation:
478+
name: custom/grass7/raster_6class.tif
479+
type: raster
480+
slope:
481+
name: custom/grass7/float_raster.tif
482+
type: raster
483+
step: 0.5
484+
results:
485+
beam_rad:
486+
hash: c43a64c35cd5999888b1dc7099249a54f37df8658cbe9c30b92627e5
487+
type: rasterhash
488+
diff_rad:
489+
hash: ecaa83578ab6eaf24a48f2fc265e8f1deff743c145af9c85cd39bceb
490+
type: rasterhash
491+
glob_rad:
492+
hash: 3917bc5633ce2225c864055d4b3c952b87461cbe48093b8fd9738215
493+
type: rasterhash
494+
insol_time:
495+
hash: 64851f59edafe67d007da78f33b7491b949d5be3eca83ef513e2b11f
496+
type: rasterhash
497+
refl_rad:
498+
hash: cd2002486c5117db9c493e365ff6983faf1ea92b1bbea87569d3ebdd
499+
type: rasterhash
500500

501501
# - algorithm: grass7:r.stats.quantile.out
502502
# name: GRASS7 r.stats.quantile.out

0 commit comments

Comments
 (0)