<div dir="ltr"><div>Hi,</div><div><br></div><div>I might missed it but I don't know about r.sum module. (I know only r.sun).</div><div><br></div><div>Saving standard output of module (if it prints something to standard output) is the same as for any other command line tool in bash. If the output is a map (in GRASS) just use it as input to some other module (using the map name).</div>

<div><br></div><div>Examples bellow show saving outputs of echo command to variables (echo command just print its parameters to standard output, i.e. to command line). Working with numbers (additions, multiplications) can be more difficult (requires different syntax) but there should be some online guides.</div>

<div><br></div><div>Vaclav</div><div><br></div><div><br></div><div>$ A="some text"</div><div>$ echo $A</div><div>some text</div><div><br></div><div>$ B=`echo "this is printed to stdout"`</div><div>$ echo $B</div>

<div>this is printed to stdout</div><div><br></div><div>$ C=$(echo "this is printed to stdout")</div><div>$ echo $C</div><div>this is printed to stdout</div><div><br></div><div>(lines beginning with $ are lines with command which are meant to by typed into the command line, the other lines are output)</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 11, 2014 at 9:32 AM, BLANDENIER Lucien <span dir="ltr"><<a href="mailto:lucien.blandenier@unine.ch" target="_blank">lucien.blandenier@unine.ch</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I would like to know if there is a way to store results of a calculation done with r.sum on many raster with a bash script.<br>
<br>
I need to reuse these results in later calculations.<br>
<br>
Thanks<br>
<br>
<br>
Lucien<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div><br></div>