r.sun (1)
NAME
r.sun - Solar irradiance and irradiation model.
Computes direct (beam), diffuse and reflected solar irradiation raster maps for given day, latitude, surface and atmospheric conditions. Solar parameters (e.g. sunrise, sunset times, declination, extraterrestrial irradiance, daylight length) are saved in the map history file. Alternatively, a local time can be specified to compute solar incidence angle and/or irradiance raster maps. The shadowing effect of the topography is optionally incorporated.
KEYWORDS
raster, solar, sun energy, shadow
SYNOPSIS
r.sun
r.sun --help
r.sun [-pm] elevation=string [aspect=string] [aspect_value=float] [slope=string] [slope_value=float] [linke=string] [linke_value=float] [albedo=string] [albedo_value=float] [lat=string] [long=string] [coeff_bh=string] [coeff_dh=string] [horizon_basename=basename] [horizon_step=float] [incidout=string] [beam_rad=string] [diff_rad=string] [refl_rad=string] [glob_rad=string] [insol_time=string] day=integer [step=float] [declination=float] [time=float] [distance_step=float] [npartitions=integer] [civil_time=float] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
Flags:
-p
Do not incorporate the shadowing effect of terrain
-m
Use the low-memory version of the program
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog
Parameters:
elevation=string [required]
Name of the input elevation raster map [meters]
aspect=string
Name of the input aspect map (terrain aspect or azimuth of the solar panel) [decimal degrees]
aspect_value=float
A single value of the orientation (aspect), 270 is south
Default: 270
slope=string
Name of the input slope raster map (terrain slope or solar panel inclination) [decimal degrees]
slope_value=float
A single value of inclination (slope)
Default: 0.0
linke=string
Name of the Linke atmospheric turbidity coefficient input raster map [-]
linke_value=float
A single value of the Linke atmospheric turbidity coefficient [-]
Default: 3.0
albedo=string
Name of the ground albedo coefficient input raster map [-]
albedo_value=float
A single value of the ground albedo coefficient [-]
Default: 0.2
lat=string
Name of input raster map containing latitudes [decimal degrees]
long=string
Name of input raster map containing longitudes [decimal degrees]
coeff_bh=string
Name of real-sky beam radiation coefficient (thick cloud) input raster map [0-1]
coeff_dh=string
Name of real-sky diffuse radiation coefficient (haze) input raster map [0-1]
horizon_basename=basename
The horizon information input map basename
horizon_step=float
Angle step size for multidirectional horizon [degrees]
incidout=string
Output incidence angle raster map (mode 1 only)
beam_rad=string
Output beam irradiance [W.m-2] (mode 1) or irradiation raster map [Wh.m-2.day-1] (mode 2)
diff_rad=string
Output diffuse irradiance [W.m-2] (mode 1) or irradiation raster map [Wh.m-2.day-1] (mode 2)
refl_rad=string
Output ground reflected irradiance [W.m-2] (mode 1) or irradiation raster map [Wh.m-2.day-1] (mode 2)
glob_rad=string
Output global (total) irradiance/irradiation [W.m-2] (mode 1) or irradiance/irradiation raster map [Wh.m-2.day-1] (mode 2)
insol_time=string
Output insolation time raster map [h] (mode 2 only)
day=integer [required]
No. of day of the year (1-365)
Options: 1-365
step=float
Time step when computing all-day radiation sums [decimal hours]
Default: 0.5
declination=float
Declination value (overriding the internally computed value) [radians]
time=float
Local (solar) time (to be set for mode 1 only) [decimal hours]
Options: 0-24
distance_step=float
Sampling distance step coefficient (0.5-1.5)
Default: 1.0
npartitions=integer
Read the input files in this number of chunks
Default: 1
civil_time=float
Civil time zone value, if none, the time will be local solar time
DESCRIPTION
r.sun computes beam (direct), diffuse and ground reflected solar irradiation raster maps for given day, latitude, surface and atmospheric conditions. Solar parameters (e.g. time of sunrise and sunset, declination, extraterrestrial irradiance, daylight length) are stored in the resultant maps' history files. Alternatively, the local time can be specified to compute solar incidence angle and/or irradiance raster maps. The shadowing effect of the topography is incorporated by default. This can be done either internally by calculatoion of the shadowing effect directly from the digital elevation model or by specifying raster maps of the horizon height which is much faster. These horizon raster maps can be calculated using r.horizon.
For latitude-longitude coordinates it requires that the elevation map is in meters. The rules are:
o lat/lon coordinates: elevation in meters;
o Other coordinates: elevation in the same unit as the easting-northing coordinates.
The solar geometry of the model is based on the works of Krcho (1990), later improved by Jenco (1992). The equations describing Sun -- Earth position as well as an interaction of the solar radiation with atmosphere were originally based on the formulas suggested by Kitler and Mikler (1986). This component was considerably updated by the results and suggestions of the working group co-ordinated by Scharmer and Greif (2000) (this algorithm might be replaced by SOLPOS algorithm-library included in GRASS within r.sunmask command). The model computes all three components of global radiation (beam, diffuse and reflected) for the clear sky conditions, i.e. not taking into consideration the spatial and temporal variation of clouds. The extent and spatial resolution of the modelled area, as well as integration over time, are limited only by the memory and data storage resources. The model is built to fulfil user needs in various fields of science (hydrology, climatology, ecology and environmental sciences, photovoltaics, engineering, etc.) for continental, regional up to the landscape scales.
The model considers a shadowing effect of the local topography unless switched off with the -p flag. r.sun works in two modes: In the first mode it calculates for the set local time a solar incidence angle [degrees] and solar irradiance values [W.m-2]. In the second mode daily sums of solar radiation [Wh.m-2.day-1] are computed within a set day. By a scripting the two modes can be used separately or in a combination to provide estimates for any desired time interval. The model accounts for sky obstruction by local relief features. Several solar parameters are saved in the resultant maps' history files, which may be viewed with the r.info command.
The solar incidence angle raster map incidout is computed specifying elevation raster map elevation, aspect raster map aspect, slope steepness raster map slope, given the day day and local time time. There is no need to define latitude for locations with known and defined projection/coordinate system (check it with the g.proj command). If you have undefined projection, (x,y) system, etc. then the latitude can be defined explicitly for large areas by input raster map lat_in with interpolated latitude values. All input raster maps must be floating point (FCELL) raster maps. Null data in maps are excluded from the computation (and also speeding-up the computation), so each output raster map will contain null data in cells according to all input raster maps. The user can use r.null command to create/reset null file for your input raster maps.
The specified day day is the number of the day of the general year where January 1 is day no.1 and December 31 is 365. Time time must be a local (solar) time (i.e. NOT a zone time, e.g. GMT, CET) in decimal system, e.g. 7.5 (= 7h 30m A.M.), 16.1 = 4h 6m P.M..
The solar declination parameter is an option to override the value computed by the internal routine for the day of the year. The value of geographical latitude can be set as a constant for the whole computed region or, as an option, a grid representing spatially distributed values over a large region. The geographical latitude must be also in decimal system with positive values for northern hemisphere and negative for southern one. In similar principle the Linke turbidity factor (linke, lin ) and ground albedo (albedo, alb) can be set.
Besides clear-sky radiations, the user can compute a real-sky radiation (beam, diffuse) using coeff_bh and coeff_dh input raster maps defining the fraction of the respective clear-sky radiations reduced by atmospheric factors (e.g. cloudiness). The value is between 0-1. Usually these coefficients can be obtained from a long-terms meteorological measurements provided as raster maps with spatial distribution of these coefficients separately for beam and diffuse radiation (see Suri and Hofierka, 2004, section 3.2).
The solar irradiation or irradiance raster maps beam_rad, diff_rad, refl_rad are computed for a given day day, latitude lat_in, elevation elevation, slope slope and aspect aspect raster maps. For convenience, the output raster given as glob_rad will output the sum of the three radiation components. The program uses the Linke atmosphere turbidity factor and ground albedo coefficient. A default, single value of Linke factor is lin=3.0 and is near the annual average for rural-city areas. The Linke factor for an absolutely clear atmosphere is lin=1.0. See notes below to learn more about this factor. The incidence solar angle is the angle between horizon and solar beam vector.
The solar radiation maps for a given day are computed by integrating the relevant irradiance between sunrise and sunset times for that day. The user can set a finer or coarser time step used for all-day radiation calculations with the step option. The default value of step is 0.5 hour. Larger steps (e.g. 1.0-2.0) can speed-up calculations but produce less reliable (and more jagged) results. As the sun moves through approx. 15 of the sky in an hour, the default step of half an hour will produce 7.5 steps in the data. For relatively smooth output with the sun placed for every degree of movement in the sky you should set the step to 4 minutes or less. step=0.05 is equivalent to every 3 minutes. Of course setting the time step to be very fine proportionally increases the module's running time.
The output units are in Wh per squared meter per given day [Wh/(m*m)/day]. The incidence angle and irradiance/irradiation maps are computed with the shadowing influence of relief by default. It is also possible for them to be computed without this influence using the planar flag (-p). In mountainous areas this can lead to very different results! The user should be aware that taking into account the shadowing effect of relief can slow down the speed of computation, especially when the sun altitude is low.
When considering the shadowing effect, speed and precision of computation can be controlled by the distance_step parameter, which defines the sampling density at which the visibility of a grid cell is computed in the direction of a path of the solar flow. It also defines the method by which the obstacle's altitude is computed. When choosing a distance_step less than 1.0 (i.e. sampling points will be computed at distance_step * cellsize distance), r.sun takes the altitude from the nearest grid point. Values above 1.0 will use the maximum altitude value found in the nearest 4 surrounding grid points. The default value distance_step=1.0 should give reasonable results for most cases (e.g. on DEM). The distance_step value defines a multiplying coefficient for sampling distance. This basic sampling distance equals to the arithmetic average of both cell sizes. The reasonable values are in the range 0.5-1.5. The values below 0.5 will decrease and values above 1.0 will increase the computing speed. Values greater than 2.0 may produce estimates with lower accuracy in highly dissected relief. The fully shadowed areas are written to the output maps as zero values. Areas with NULL data are considered as no barrier with shadowing effect.
The maps' history files are generated containing the following listed parameters used in the computation:
- Solar constant 1367 W.m-2
- Extraterrestrial irradiance on a plane perpendicular to the solar beam [W.m-2]
- Day of the year
- Declination [radians]
- Decimal hour (Alternative 1 only)
- Sunrise and sunset (min-max) over a horizontal plane
- Daylight lengths
- Geographical latitude (min-max)
- Linke turbidity factor (min-max)
- Ground albedo (min-max)
The user can use a nice shellcript with variable day to compute radiation for some time interval within the year (e.g. vegetation or winter period). Elevation, aspect and slope input values should not be reclassified into coarser categories. This could lead to incorrect results.
OPTIONS
Currently, there are two modes of r.sun. In the first mode it calculates solar incidence angle and solar irradiance raster maps using the set local time. In the second mode daily sums of solar irradiation [Wh.m-2.day-1] are computed for a specified day.
NOTES
Solar energy is an important input parameter in different models concerning energy industry, landscape, vegetation, evapotranspiration, snowmelt or remote sensing. Solar rays incidence angle maps can be effectively used in radiometric and topographic corrections in mountainous and hilly terrain where very accurate investigations should be performed.
The clear-sky solar radiation model applied in the r.sun is based on the work undertaken for development of European Solar Radiation Atlas (Scharmer and Greif 2000, Page et al. 2001, Rigollier 2001). The clear sky model estimates the global radiation from the sum of its beam, diffuse and reflected components. The main difference between solar radiation models for inclined surfaces in Europe is the treatment of the diffuse component. In the European climate this component is often the largest source of estimation error. Taking into consideration the existing models and their limitation the European Solar Radiation Atlas team selected the Muneer (1990) model as it has a sound theoretical basis and thus more potential for later improvement.
Details of underlying equations used in this program can be found in the reference literature cited below or book published by Neteler and Mitasova: Open Source GIS: A GRASS GI.lf 1 -
r.sun(1grass) Grass User's Manual r.sun(1grass)
NAME
r.sun - Solar irradiance and irradiation model.
Computes direct (beam), diffuse and reflected solar irradiation raster maps for given day, latitude, surface and atmospheric conditions. Solar parameters (e.g. sunrise, sunset times, declination, extraterrestrial irradiance, daylight length) are saved in the map history file. Alternatively, a local time can be specified to compute solar incidence angle and/or irradiance raster maps. The shadowing effect of the topography is optionally incorporated.
KEYWORDS
raster, solar, sun energy, shadow
SYNOPSIS
r.sun
r.sun --help
r.sun [-pm] elevation=string [aspect=string] [aspect_value=float] [slope=string] [slope_value=float] [linke=string] [linke_value=float] [albedo=string] [albedo_value=float] [lat=string] [long=string] [coeff_bh=string] [coeff_dh=string] [horizon_basename=basename] [horizon_step=float] [incidout=string] [beam_rad=string] [diff_rad=string] [refl_rad=string] [glob_rad=string] [insol_time=string] day=integer [step=float] [declination=float] [time=float] [distance_step=float] [npartitions=integer] [civil_time=float] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
Flags:
-p
Do not incorporate the shadowing effect of terrain
-m
Use the low-memory version of the program
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog
Parameters:
elevation=string [required]
Name of the input elevation raster map [meters]
aspect=string
Name of the input aspect map (terrain aspect or azimuth of the solar panel) [decimal degrees]
aspect_value=float
A single value of the orientation (aspect), 270 is south
Default: 270
slope=string
Name of the input slope raster map (terrain slope or solar panel inclination) [decimal degrees]
slope_value=float
A single value of inclination (slope)
Default: 0.0
linke=string
Name of the Linke atmospheric turbidity coefficient input raster map [-]
linke_value=float
A single value of the Linke atmospheric turbidity coefficient [-]
Default: 3.0
albedo=string
Name of the ground albedo coefficient input raster map [-]
albedo_value=float
A single value of the ground albedo coefficient [-]
Default: 0.2
lat=string
Name of input raster map containing latitudes [decimal degrees]
long=string
Name of input raster map containing longitudes [decimal degrees]
coeff_bh=string
Name of real-sky beam radiation coefficient (thick cloud) input raster map [0-1]
coeff_dh=string
Name of real-sky diffuse radiation coefficient (haze) input raster map [0-1]
horizon_basename=basename
The horizon information input map basename
horizon_step=float
Angle step size for multidirectional horizon [degrees]
incidout=string
Output incidence angle raster map (mode 1 only)
beam_rad=string
Output beam irradiance [W.m-2] (mode 1) or irradiation raster map [Wh.m-2.day-1] (mode 2)
diff_rad=string
Output diffuse irradiance [W.m-2] (mode 1) or irradiation raster map [Wh.m-2.day-1] (mode 2)
refl_rad=string
Output ground reflected irradiance [W.m-2] (mode 1) or irradiation raster map [Wh.m-2.day-1] (mode 2)
glob_rad=string
Output global (total) irradiance/irradiation [W.m-2] (mode 1) or irradiance/irradiation raster map [Wh.m-2.day-1] (mode 2)
insol_time=string
Output insolation time raster map [h] (mode 2 only)
day=integer [required]
No. of day of the year (1-365)
Options: 1-365
step=float
Time step when computing all-day radiation sums [decimal hours]
Default: 0.5
declination=float
Declination value (overriding the internally computed value) [radians]
time=float
Local (solar) time (to be set for mode 1 only) [decimal hours]
Options: 0-24
distance_step=float
Sampling distance step coefficient (0.5-1.5)
Default: 1.0
npartitions=integer
Read the input files in this number of chunks
Default: 1
civil_time=float
Civil time zone value, if none, the time will be local solar time
DESCRIPTION
r.sun computes beam (direct), diffuse and ground reflected solar irradiation raster maps for given day, latitude, surface and atmospheric conditions. Solar parameters (e.g. time of sunrise and sunset, declination, extraterrestrial irradiance, daylight length) are stored in the resultant maps' history files. Alternatively, the local time can be specified to compute solar incidence angle and/or irradiance raster maps. The shadowing effect of the topography is incorporated by default. This can be done either internally by calculatoion of the shadowing effect directly from the digital elevation model or by specifying raster maps of the horizon height which is much faster. These horizon raster maps can be calculated using r.horizon.
For latitude-longitude coordinates it requires that the elevation map is in meters. The rules are:
o lat/lon coordinates: elevation in meters;
o Other coordinates: elevation in the same unit as the easting-northing coordinates.
The solar geometry of the model is based on the works of Krcho (1990), later improved by Jenco (1992). The equations describing Sun -- Earth position as well as an interaction of the solar radiation with atmosphere were originally based on the formulas suggested by Kitler and Mikler (1986). This component was considerably updated by the results and suggestions of the working group co-ordinated by Scharmer and Greif (2000) (this algorithm might be replaced by SOLPOS algorithm-library included in GRASS within r.sunmask command). The model computes all three components of global radiation (beam, diffuse and reflected) for the clear sky conditions, i.e. not taking into consideration the spatial and temporal variation of clouds. The extent and spatial resolution of the modelled area, as well as integration over time, are limited only by the memory and data storage resources. The model is built to fulfil user needs in various fields of science (hydrology, climatology, ecology and environmental sciences, photovoltaics, engineering, etc.) for continental, regional up to the landscape scales.
The model considers a shadowing effect of the lo