[GRASS-dev] Re: [GRASS GIS] #610: r.sun: incidout uses 0 instead of
NULL
Markus Neteler
neteler at osgeo.org
Fri May 22 06:01:42 EDT 2009
On Fri, May 22, 2009 at 9:36 AM, GRASS GIS <trac at osgeo.org> wrote:
> #610: r.sun: incidout uses 0 instead of NULL
...
> --
> Ticket URL: <http://trac.osgeo.org/grass/ticket/610#comment:5>
Since trac sucks again today, here the manual copy-paste from the ticket
for this list:
05/22/09 05:39:21 changed by neteler
I contacted Jaro:
On Fri, May 22, 2009 at 11:09, Jaro Hofierka wrote:
> ... I believe that it is in rsunlib.c in lumcline2() function. If s < 0 (shadow) it returns 0, what in fact should be null.
>
> Also please note that the s variable in lumcline() is initiated to 0.
>
> double s = 0;
>
> (this covers also other causes of shadows)
>
> So what is returned from the lumcline() as 0 should be written as null in the output.
Markus
More information about the grass-dev
mailing list