[GRASS-dev] r.sun: extra user messages added

Markus Neteler neteler at osgeo.org
Tue Nov 24 07:50:40 PST 2015


Hi,

given the possibility of r.sun, to add either constants or maps for
some parameters, I have added some user messages.

See the difference here:

GRASS 7.1.svn (nc_spm_08_grass7):~ > r.sun elevation=elevation
horizon_basename=horangle horizon_step=30  slope=slope.dem
glob_rad=global_rad day=180 time=14
Mode 1: instantaneous solar incidence angle & irradiance using a set local
time
Using Linke constant: 3.000000
Using albedo constant: 0.200000
Using slope map <slope.dem>
Using aspect constant: 270.000000
0%
...


GRASS 7.1.svn (nc_spm_08_grass7):~ > r.sun elevation=elevation
horizon_basename=horangle horizon_step=30  glob_rad=global_rad day=180
time=14
Mode 1: instantaneous solar incidence angle & irradiance using a set local
time
Using Linke constant: 3.000000
Using albedo constant: 0.200000
Using slope constant: 0.000000
Using aspect constant: 270.000000
0%
....

Reason: from the help text it is not quite clear what's taken since
default answers are defined for the optional (!) constants (which
unfortunately also end up in the command history, see related r.info
output).

Any ideas how to beautify this message output?

Markus


More information about the grass-dev mailing list