Skip to content

Commit ed38d5d

Browse files
committed
Merge pull request #2819 from NaturalGIS/processing_fix_grass_grass7_r_sunmask
[processing] fix GRASS and GRASS7 r.sunmask
2 parents 70ff8b5 + 3f9263b commit ed38d5d

File tree

5 files changed

+41
-22
lines changed

5 files changed

+41
-22
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
r.sunmask
2+
r.sunmask.datetime - Calculates cast shadow areas from sun position and elevation raster map.
3+
Raster (r.*)
4+
ParameterRaster|elevation|Elevation raster layer [meters]|False
5+
ParameterNumber|year|year|1950|2050|2000
6+
ParameterNumber|month|month|0|12|1
7+
ParameterNumber|day|day|0|31|1
8+
ParameterNumber|hour|hour|0|24|1
9+
ParameterNumber|minute|minute|0|60|0
10+
ParameterNumber|second|second|0|60|0
11+
ParameterNumber|timezone|East positive, offset from GMT|0|None|0.0
12+
ParameterString|east|Easting coordinate (point of interest)|
13+
ParameterString|north|Northing coordinate (point of interest)|
14+
ParameterBoolean|-z|Do not ignore zero elevation|True
15+
ParameterBoolean|-s|Calculate sun position only and exit|False
16+
OutputRaster|output|Shadows
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
r.sunmask
2+
r.sunmask.position - Calculates cast shadow areas from sun position and elevation raster map.
3+
Raster (r.*)
4+
ParameterRaster|elevation|Elevation raster layer [meters]|False
5+
ParameterNumber|altitude|Altitude of the sun in degrees above the horizon|0|90|0.0
6+
ParameterNumber|azimuth|Azimuth of the sun in degrees from north|0|360|0.0
7+
ParameterString|east|Easting coordinate (point of interest)|
8+
ParameterString|north|Northing coordinate (point of interest)|
9+
ParameterBoolean|-z|Do not ignore zero elevation|True
10+
ParameterBoolean|-s|Calculate sun position only and exit|False
11+
OutputRaster|output|Shadows

python/plugins/processing/algs/grass/description/r.sunmask.txt

-17
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
r.sunmask
2-
Calculates cast shadow areas from sun position and elevation raster map.
2+
r.sunmask.datetime - Calculates cast shadow areas from sun position and elevation raster map.
33
Raster (r.*)
44
ParameterRaster|elevation|Elevation raster layer [meters]|False
5-
ParameterNumber|altitude|Altitude of the sun in degrees above the horizon|0|90|0.0
6-
ParameterNumber|azimuth|Azimuth of the sun in degrees from north|0|360|0.0
75
ParameterNumber|year|year|1950|2050|2000
86
ParameterNumber|month|month|0|12|1
97
ParameterNumber|day|day|0|31|1
108
ParameterNumber|hour|hour|0|24|1
119
ParameterNumber|minute|minute|0|60|0
1210
ParameterNumber|second|second|0|60|0
1311
ParameterNumber|timezone|East positive, offset from GMT|0|None|0.0
14-
ParameterNumber|east|Easting coordinate (point of interest)|None|None|0.0
15-
ParameterNumber|north|Northing coordinate (point of interest)|None|None|0.0
12+
ParameterString|east|Easting coordinate (point of interest)|
13+
ParameterString|north|Northing coordinate (point of interest)|
1614
ParameterBoolean|-z|Do not ignore zero elevation|True
1715
ParameterBoolean|-s|Calculate sun position only and exit|False
1816
OutputRaster|output|Shadows
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
r.sunmask
2+
r.sunmask.position - Calculates cast shadow areas from sun position and elevation raster map.
3+
Raster (r.*)
4+
ParameterRaster|elevation|Elevation raster layer [meters]|False
5+
ParameterNumber|altitude|Altitude of the sun in degrees above the horizon|0|90|0.0
6+
ParameterNumber|azimuth|Azimuth of the sun in degrees from north|0|360|0.0
7+
ParameterString|east|Easting coordinate (point of interest)|
8+
ParameterString|north|Northing coordinate (point of interest)|
9+
ParameterBoolean|-z|Do not ignore zero elevation|True
10+
ParameterBoolean|-s|Calculate sun position only and exit|False
11+
OutputRaster|output|Shadows

0 commit comments

Comments
 (0)