|
NAMEr.sunmask - Calculates cast shadow areas from sun
position and elevation raster map.
KEYWORDSraster, solar, sun position, shadow SYNOPSISr.sunmask
Flags:
Parameters:
DESCRIPTIONr.sunmask creates an output map layer based on an input elevation raster map layer and the position of the sun. The output map layer contains the cast shadow areas resulting from sunlight and elevation. The user can either specify the sun position directly or the module calculates it from given location and date/time parameters using the SOLPOS (Solar and Moon Position Algorithm) developed by the National Renewable Energy Laboratory (NREL). SOLPOS operates in two modes, either
The module performs sunset/sunrise checks and refraction correction for sun position calculation. Local coordinate systems are internally transformed to latitude/longitude for the SOLPOS algorithm. Elevation is not taken into account for sunset/sunrise calculations. The solar zenith angle ("sun angle above horizon") is defined as the angle between the horizon and the vertical (directly overhead or zenith). Its values can range from 90°, when the sun is directly overhead, to 0°, when the sun is on the horizon. Values lower than 0° indicate that the sun is below the horizon. The solar azimuth angle ("sun azimuth") defines the direction of the sun. It is the angle between north and the projection of the sun’s rays onto the horizontal plane. This angle is measured in a clockwise direction and can vary between 0° and 360°. Specifically, an azimuth of 0° means the sun is in the north, 90° in the east, 180° in the south and 270° in the west. NOTESr.sunmask and daylight saving time: Instead of converting the local time to GMT, the SOLPOS algorithm uses what is known as Local Standard Time, which is generally defined as an offset from GMT. So the key is the offset from GMT, which is the solpos Time Zone parameter. If the user specifies clock time (different for winter and summer), s/he would have to change the Time Zone parameter in r.sunmask (timezone parameter) seasonally. See also Daylight saving time by region and country. Note: In latitude/longitude projects the position coordinates pair (east/west) has to be specified in decimal degree (not DD:MM:SS). If not specified, the map center’s coordinates will be used. Also g.region -l displays the map center’s coordinates in latitude/longitude (or g.region -c in the actual coordinate system). Note for module usage with the -g flag, when performing
calculations close to sunset/sunrise:
In above calculation it appears to be a mistake as the program indicates that we are before sunrise while the sun angle above horizon is already positive. The reason is that sun angle above horizon is calculated with correction for atmosphere refraction while sunrise and sunset are calculated without correction for atmosphere refraction. The output without -g flag contains related indications. EXAMPLEExample for North Carolina sample data set for the calculation of
sun position angles and more:
# set the region to a place near Raleigh (NC) g.region raster=elev_lid792_1m -p # compute only sun position and no output map r.sunmask -s elev_lid792_1m year=2012 month=2 \ AcknowledgementsAcknowledgements: National Renewable Energy Laboratory for their SOLPOS 2.0 sun position algorithm. SEE ALSOg.region, r.sun, r.sunhours, r.slope.aspect AUTHORSJanne Soimasuo, Finland, 1994
SOURCE CODEAvailable at: r.sunmask source code (history) Latest change: Wednesday Nov 27 22:53:26 2024 in commit: b90ce69e88409469369ec1edb86fde8ec822af8b Main index | Raster index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|