| 1 |
|
| 2 |
r.sunmask can be used in two ways: |
| 3 |
|
| 4 |
a) define sun position: |
| 5 |
r.sunmask elev=dgm25 output=dgm25.shadow alt=47.394203 azim=138.604904 |
| 6 |
|
| 7 |
b) define location, date, time |
| 8 |
r.sunmask -v el=dgm5 out=shadow year=1997 month=9 day=25 hour=11 minute=15 \ |
| 9 |
sec=0 timezone=1 east=3570720 north=5766095 |
| 10 |
|
| 11 |
or (using map center coordinates) |
| 12 |
r.sunmask -v el=dgm5 out=shadow year=1997 month=9 day=25 hour=11 minute=15 \ |
| 13 |
sec=0 timezone=1 |
| 14 |
|
| 15 |
Calculating sun position... (using solpos (V. 11 April 2001) from NREL) |
| 16 |
1997.09.25, daynum 268, time: 11:15:00 |
| 17 |
long: 10.030458, lat: 52.025555, timezone: 2.000000 |
| 18 |
Solar position: sun azimuth 145.121445, |
| 19 |
sun angle above horz.(refraction corrected) 31.662413 |
| 20 |
Sunrise time (without refraction): 07:16 |
| 21 |
Sunset time (without refraction): 19:07 |
| 22 |
Calculating shadows from DEM... |
| 23 |
|
| 24 |
-------------------------- |
| 25 |
|
| 26 |
Since the solpos algorithm expects lat/long coordinates, the module |
| 27 |
transforms the local coordinates to lat/long on-the-fly |
| 28 |
|
| 29 |
-------------------------- |
| 30 |
daylight savings: Rather than convert time to GMT, the solpos |
| 31 |
algorithm uses what is called Local Standard Time, which is generally |
| 32 |
defined politically as an offset from GMT. So the key is the offset from |
| 33 |
GMT, which the solpos Time Zone parameter. If the user specifies clock time |
| 34 |
(different for winter and summer), he/she would have to change the Time Zone |
| 35 |
parameter seasonally in r.sunmask (timezone parameter). |
| 36 |
|
| 37 |
|
| 38 |
-------------------------- |
| 39 |
|
| 40 |
solpos questions can be directed to |
| 41 |
> Steve Wilcox ([email protected]) |
| 42 |
> National Renewable Energy Laboratory |
| 43 |
> 1617 Cole Boulevard, Golden, CO 80401-3393 |
| 44 |
> voice: 1-303-275-4061; fax: 1-303-275-4675 |
| 45 |
http://rredc.nrel.gov/solar/codes_algs/solpos/ |