Dear Gabriel,<br><br>What do you mean by "in the same graphic"? because I think it will depends on that. For your precipitation data, if you set your gxout to shaded, I think you won't see both values, but if you set your gxout, for example to contour, you'll be able to see both.<br>
<br>Let's say your precipitaion variable is "pcp". It will be something like:<br>'sdfopen <a href="http://file.nc">file.nc</a>'<br>'set gxout contour'<br>'define acc=sum(pcp, t=1, t=31)'<br>
'd pcp'<br>'d acc'<br><br>So if you need for the day 17, just set t to 17 by adding 'set t 17' right after 'sdfopen...'<br>In addition, you can write your accumulation variable to your file using 'set sdfwrite <a href="http://file.nc">file.nc</a>' followed by 'sdfwrite acc'.<br>
Maybe the following will give you more info.<br><br>I quote from Bob Kuligowski:<br><br>"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)"<br><br>Hope it can help,<br><br>Regards,<br><br>Serge<br>
<br><br><br><div class="gmail_quote">2011/6/21 gabriel gavinho <span dir="ltr"><<a href="mailto:gavinho.gabriel@gmail.com">gavinho.gabriel@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">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>Serge<br>