[GRASS5] Re: r.sun improvements

Jaro Hofierka hofierka at geomodel.sk
Thu Apr 10 02:08:48 EDT 2003


>> - memory usage: can anything be done to keep this under control? it
>> chews through my gigabyte of memory pretty quickly.. I suppose if the
>> above target mask is implemented, this would not be such an issue?
>
Hamish,

memory usage is r.sun's one of the weakest points. Thomas Huld who 
helped me with the latest improvements is currently working on this as well.
However, there is another problem with memory associated with proj 
library. If you have latitude defined via region settings (i.e. you 
don't define lat and latin options) then memory usage is unbelievably 
high. I guess it is some memory allocation/freeing problem in  proj 
library. I have used proj library functions to get latitude/longitute 
for each ratser cell using examples from grass programmers manual. I 
hadn't time to figure out the problem in detail. I would appreciate if 
could look at it - perhaps you could check if such problems with proj 
library functions are also in other grass programs or check the source 
code of these functions. Thanks.

Jaro




More information about the grass-dev mailing list