DavidRA <span dir="ltr"></span>wrote:<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I guess I could use the code of r.series, modifying it a bit to obtain a new<br>
function. The problem is that... man, that code is hard to understand.</blockquote><div><br>Sorry if I gave you the impression that I am a skilled programmer in C.<br>Actually, I forgot the majority of GRASS modules are in C (or python now).<br>
I always use shell scripts to do my stuff, so I was actually thinking of<br>Shell (what would be much easier to tweak).<br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I do<br>
have some notions of C, but here I'm finding a lot of trouble to see what it<br>
does. For example, I don't see where it does the calculations: there is a<br>
section of the code with a comment saying "process the data", but inside of<br>
it, where is the average calculated? The average, or any of the other<br>
methods.<br>
<br></blockquote><div><br>My God, it is indeed complex! I guess, somehow by including stats.h, they<br>are done by a simple call to the functions (somewhere, because I can't see either),<br>so he is not implementing the calculations in the code.<br>
<br>Well, at least that is my most humble (and ignorant) opinion.<br><br>Cheers,<br>Marcello.<br><br></div></div><br>