Dear Gabriel,<br><br>In order to obtain the total precipitation within a month, you can just &#39;define acc=sum(pcp, t=1, t=31)&#39;.<br>If I really understand what you want is that you would like to display both daily and accumulation within one graphic. If so, it&#39;s a little bit tricky but what I can suggest is that if you want to display both within one graphic, try to set gxout linefill since linefill can deal with 2 variables, then go back to set gxout line so it will be something like:<br>
<br>&#39;sdfopen <a href="http://file.nc">file.nc</a>&#39;<br>&#39;set lat -23&#39;<br>&#39;set lon -45&#39;<br>&#39;set t 1 31&#39;<br>&#39;define acc=sum(pcp, t=1, t=31)&#39;<br>&#39;set gxout linefill&#39;<br>&#39;set lfcols 0 0&#39;    (----&gt; this is black color and you can refer to <a href="http://www.iges.org/grads/gadoc/colorcontrol.html">http://www.iges.org/grads/gadoc/colorcontrol.html</a>)<br>
&#39;d pcp;acc&#39;         (up til here, you have only the x and y value, without the graphs, so you need to plot the graph)<br>&#39;set gxout line&#39;<br>&#39;set ccolor 3&#39;<br>&#39;d pcp&#39;<br>&#39;set ccolor 5&#39;<br>
&#39;d acc&#39;<br><br>Hope this can help,<br><br>Regards,<br><br>Serge<br><br><div class="gmail_quote">2011/6/21 gabriel gavinho <span dir="ltr">&lt;<a href="mailto:gavinho.gabriel@gmail.com">gavinho.gabriel@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear Serge,<div><br></div><div><div>I belive I did not make myself clear about the graphic I need.</div><div>suppose I select a single point, let&#39;s say lat -23 lon -45, and set the time to a month period, I will have the values of precipitation for each day as it is in any meteogram.</div>

<div>My problem is that I need to continually sum the daily valeus so I can achive the total precipitation within a month but in a way I can present an increasing line in over the daily values.</div><div>I hope I could make it clear and I really appreciate your help</div>

</div><div><br></div><div>Regars,</div><div>Gabriel Gavinho</div><div><font color="#888888">Federal University of Rio de Janeiro.</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/6/21 Rafanoharana Serge Claudio <span dir="ltr">&lt;<a href="mailto:rafanoharana@gmail.com" target="_blank">rafanoharana@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Gabriel,<br><br>What do you mean by &quot;in the same graphic&quot;? because I think it will depends on that. For your precipitation data, if you set your gxout to shaded, I think you won&#39;t see both values, but if you set your gxout, for example to contour, you&#39;ll be able to see both.<br>


<br>Let&#39;s say your precipitaion variable is &quot;pcp&quot;. It will be something like:<br>&#39;sdfopen <a href="http://file.nc" target="_blank">file.nc</a>&#39;<br>&#39;set gxout contour&#39;<br>&#39;define acc=sum(pcp, t=1, t=31)&#39;<br>


&#39;d pcp&#39;<br>&#39;d acc&#39;<br><br>So if you need for the day 17, just set t to 17 by adding &#39;set t 17&#39; right after &#39;sdfopen...&#39;<br>In addition, you can write your accumulation variable to your file using &#39;set sdfwrite <a href="http://file.nc" target="_blank">file.nc</a>&#39; followed by &#39;sdfwrite acc&#39;.<br>


Maybe the following will give you more info.<br><br>I quote from Bob Kuligowski:<br><br>&quot;GrADS can produce numerous types of file displays using gridded data using set gxout:<br><br>bar    (bar chart)    <br>line    (line graph)<br>


barb    (wind barbs)    <br>linefill (color fill between two lines)<br>contour    (contour plot)    <br>scatter    (scatter plot)<br>errbar    (error bars)    <br>shaded    (shaded contour plot)<br>grfill    (shaded grid boxes)    <br>


stream    (wind streamlines)<br>fgrid    (grid boxes shaded for specified values)    <br>vector    (wind vector arrows)<br>grid    (grid boxes with printed values)&quot;<br><br>Hope it can help,<br><br>Regards,<br><br>Serge<br>


<br><br><br><div class="gmail_quote"><div><div></div><div>2011/6/21 gabriel gavinho <span dir="ltr">&lt;<a href="mailto:gavinho.gabriel@gmail.com" target="_blank">gavinho.gabriel@gmail.com</a>&gt;</span><br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
<div>Dear Users</div><div><br></div><div>I am having a hard time trying to sum the values for daily precipitation during a month, in order put together both daily values and the accumulative sum in the same graphic </div>


<div>
<br></div><div>Can you help me?</div><div><br></div><div>regards!</div><div><br></div><font color="#888888"><div>Gabriel Gavinho</div><div>Federal University of Rio de Janeiro</div>
</font><br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Serge<br>
</font><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Serge<br>